vrchat 1.4.0 → 1.5.1
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/.github/workflows/ci.yaml +2 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +1 -1
- package/api.ts +1941 -1601
- package/base.ts +3 -3
- package/common.ts +5 -5
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1788 -1624
- package/dist/api.js +727 -348
- package/dist/base.d.ts +3 -3
- package/dist/base.js +1 -1
- package/dist/common.d.ts +3 -3
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/generate.sh +1 -1
- package/index.ts +1 -1
- package/openapitools.json +1 -1
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.1
|
|
8
8
|
* Contact: me@ruby.js.org
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -72,7 +72,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
-
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.ReleaseStatus = exports.PlayerModerationType = exports.NotificationType = exports.MIMEType = exports.InviteMessageType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
|
|
75
|
+
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.ReleaseStatus = exports.PlayerModerationType = exports.NotificationType = exports.MIMEType = exports.InviteMessageType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
|
|
76
76
|
var axios_1 = require("axios");
|
|
77
77
|
// Some imports not used depending on template conditions
|
|
78
78
|
// @ts-ignore
|
|
@@ -159,6 +159,9 @@ var FileStatus;
|
|
|
159
159
|
var InviteMessageType;
|
|
160
160
|
(function (InviteMessageType) {
|
|
161
161
|
InviteMessageType["Message"] = "message";
|
|
162
|
+
InviteMessageType["Response"] = "response";
|
|
163
|
+
InviteMessageType["Request"] = "request";
|
|
164
|
+
InviteMessageType["RequestResponse"] = "requestResponse";
|
|
162
165
|
})(InviteMessageType = exports.InviteMessageType || (exports.InviteMessageType = {}));
|
|
163
166
|
/**
|
|
164
167
|
*
|
|
@@ -288,7 +291,7 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
288
291
|
if (excludeUserId !== undefined) {
|
|
289
292
|
localVarQueryParameter['excludeUserId'] = excludeUserId;
|
|
290
293
|
}
|
|
291
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
294
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
295
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
296
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
294
297
|
return [2 /*return*/, {
|
|
@@ -323,7 +326,7 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
323
326
|
localVarQueryParameter = {};
|
|
324
327
|
// authentication apiKeyCookie required
|
|
325
328
|
// authentication authCookie required
|
|
326
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
329
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
327
330
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
328
331
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
329
332
|
return [2 /*return*/, {
|
|
@@ -357,7 +360,7 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
357
360
|
// http basic authentication required
|
|
358
361
|
common_1.setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
359
362
|
// authentication twoFactorAuthCookie required
|
|
360
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
363
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
361
364
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
362
365
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
363
366
|
return [2 /*return*/, {
|
|
@@ -387,7 +390,7 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
387
390
|
localVarHeaderParameter = {};
|
|
388
391
|
localVarQueryParameter = {};
|
|
389
392
|
// authentication authCookie required
|
|
390
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
393
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
391
394
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
392
395
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
393
396
|
return [2 /*return*/, {
|
|
@@ -400,11 +403,11 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
400
403
|
/**
|
|
401
404
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
402
405
|
* @summary Verify 2FA code
|
|
403
|
-
* @param {
|
|
406
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
404
407
|
* @param {*} [options] Override http request option.
|
|
405
408
|
* @throws {RequiredError}
|
|
406
409
|
*/
|
|
407
|
-
verify2FA: function (
|
|
410
|
+
verify2FA: function (twoFactorAuthCode, options) {
|
|
408
411
|
if (options === void 0) { options = {}; }
|
|
409
412
|
return __awaiter(_this, void 0, void 0, function () {
|
|
410
413
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -419,10 +422,10 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
419
422
|
localVarQueryParameter = {};
|
|
420
423
|
// authentication authCookie required
|
|
421
424
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
422
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
425
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
423
426
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
424
427
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
425
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
428
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(twoFactorAuthCode, localVarRequestOptions, configuration);
|
|
426
429
|
return [2 /*return*/, {
|
|
427
430
|
url: common_1.toPathString(localVarUrlObj),
|
|
428
431
|
options: localVarRequestOptions,
|
|
@@ -450,7 +453,7 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
450
453
|
localVarHeaderParameter = {};
|
|
451
454
|
localVarQueryParameter = {};
|
|
452
455
|
// authentication authCookie required
|
|
453
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
456
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
454
457
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
455
458
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
456
459
|
return [2 /*return*/, {
|
|
@@ -463,11 +466,11 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
463
466
|
/**
|
|
464
467
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
465
468
|
* @summary Verify 2FA code with Recovery code
|
|
466
|
-
* @param {
|
|
469
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
467
470
|
* @param {*} [options] Override http request option.
|
|
468
471
|
* @throws {RequiredError}
|
|
469
472
|
*/
|
|
470
|
-
verifyRecoveryCode: function (
|
|
473
|
+
verifyRecoveryCode: function (twoFactorAuthCode, options) {
|
|
471
474
|
if (options === void 0) { options = {}; }
|
|
472
475
|
return __awaiter(_this, void 0, void 0, function () {
|
|
473
476
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -482,10 +485,10 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
482
485
|
localVarQueryParameter = {};
|
|
483
486
|
// authentication authCookie required
|
|
484
487
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
485
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
488
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
486
489
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
487
490
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
488
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
491
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(twoFactorAuthCode, localVarRequestOptions, configuration);
|
|
489
492
|
return [2 /*return*/, {
|
|
490
493
|
url: common_1.toPathString(localVarUrlObj),
|
|
491
494
|
options: localVarRequestOptions,
|
|
@@ -586,16 +589,16 @@ exports.AuthenticationApiFp = function (configuration) {
|
|
|
586
589
|
/**
|
|
587
590
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
588
591
|
* @summary Verify 2FA code
|
|
589
|
-
* @param {
|
|
592
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
590
593
|
* @param {*} [options] Override http request option.
|
|
591
594
|
* @throws {RequiredError}
|
|
592
595
|
*/
|
|
593
|
-
verify2FA: function (
|
|
596
|
+
verify2FA: function (twoFactorAuthCode, options) {
|
|
594
597
|
return __awaiter(this, void 0, void 0, function () {
|
|
595
598
|
var localVarAxiosArgs;
|
|
596
599
|
return __generator(this, function (_a) {
|
|
597
600
|
switch (_a.label) {
|
|
598
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.verify2FA(
|
|
601
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.verify2FA(twoFactorAuthCode, options)];
|
|
599
602
|
case 1:
|
|
600
603
|
localVarAxiosArgs = _a.sent();
|
|
601
604
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -625,16 +628,16 @@ exports.AuthenticationApiFp = function (configuration) {
|
|
|
625
628
|
/**
|
|
626
629
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
627
630
|
* @summary Verify 2FA code with Recovery code
|
|
628
|
-
* @param {
|
|
631
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
629
632
|
* @param {*} [options] Override http request option.
|
|
630
633
|
* @throws {RequiredError}
|
|
631
634
|
*/
|
|
632
|
-
verifyRecoveryCode: function (
|
|
635
|
+
verifyRecoveryCode: function (twoFactorAuthCode, options) {
|
|
633
636
|
return __awaiter(this, void 0, void 0, function () {
|
|
634
637
|
var localVarAxiosArgs;
|
|
635
638
|
return __generator(this, function (_a) {
|
|
636
639
|
switch (_a.label) {
|
|
637
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyRecoveryCode(
|
|
640
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyRecoveryCode(twoFactorAuthCode, options)];
|
|
638
641
|
case 1:
|
|
639
642
|
localVarAxiosArgs = _a.sent();
|
|
640
643
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -695,12 +698,12 @@ exports.AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
695
698
|
/**
|
|
696
699
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
697
700
|
* @summary Verify 2FA code
|
|
698
|
-
* @param {
|
|
701
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
699
702
|
* @param {*} [options] Override http request option.
|
|
700
703
|
* @throws {RequiredError}
|
|
701
704
|
*/
|
|
702
|
-
verify2FA: function (
|
|
703
|
-
return localVarFp.verify2FA(
|
|
705
|
+
verify2FA: function (twoFactorAuthCode, options) {
|
|
706
|
+
return localVarFp.verify2FA(twoFactorAuthCode, options).then(function (request) { return request(axios, basePath); });
|
|
704
707
|
},
|
|
705
708
|
/**
|
|
706
709
|
* Verify whether the currently provided Auth Token is valid.
|
|
@@ -714,12 +717,12 @@ exports.AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
714
717
|
/**
|
|
715
718
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
716
719
|
* @summary Verify 2FA code with Recovery code
|
|
717
|
-
* @param {
|
|
720
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
718
721
|
* @param {*} [options] Override http request option.
|
|
719
722
|
* @throws {RequiredError}
|
|
720
723
|
*/
|
|
721
|
-
verifyRecoveryCode: function (
|
|
722
|
-
return localVarFp.verifyRecoveryCode(
|
|
724
|
+
verifyRecoveryCode: function (twoFactorAuthCode, options) {
|
|
725
|
+
return localVarFp.verifyRecoveryCode(twoFactorAuthCode, options).then(function (request) { return request(axios, basePath); });
|
|
723
726
|
},
|
|
724
727
|
};
|
|
725
728
|
};
|
|
@@ -786,14 +789,14 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
786
789
|
/**
|
|
787
790
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
788
791
|
* @summary Verify 2FA code
|
|
789
|
-
* @param {
|
|
792
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
790
793
|
* @param {*} [options] Override http request option.
|
|
791
794
|
* @throws {RequiredError}
|
|
792
795
|
* @memberof AuthenticationApi
|
|
793
796
|
*/
|
|
794
|
-
AuthenticationApi.prototype.verify2FA = function (
|
|
797
|
+
AuthenticationApi.prototype.verify2FA = function (twoFactorAuthCode, options) {
|
|
795
798
|
var _this = this;
|
|
796
|
-
return exports.AuthenticationApiFp(this.configuration).verify2FA(
|
|
799
|
+
return exports.AuthenticationApiFp(this.configuration).verify2FA(twoFactorAuthCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
797
800
|
};
|
|
798
801
|
/**
|
|
799
802
|
* Verify whether the currently provided Auth Token is valid.
|
|
@@ -809,14 +812,14 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
809
812
|
/**
|
|
810
813
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
811
814
|
* @summary Verify 2FA code with Recovery code
|
|
812
|
-
* @param {
|
|
815
|
+
* @param {TwoFactorAuthCode} [twoFactorAuthCode]
|
|
813
816
|
* @param {*} [options] Override http request option.
|
|
814
817
|
* @throws {RequiredError}
|
|
815
818
|
* @memberof AuthenticationApi
|
|
816
819
|
*/
|
|
817
|
-
AuthenticationApi.prototype.verifyRecoveryCode = function (
|
|
820
|
+
AuthenticationApi.prototype.verifyRecoveryCode = function (twoFactorAuthCode, options) {
|
|
818
821
|
var _this = this;
|
|
819
|
-
return exports.AuthenticationApiFp(this.configuration).verifyRecoveryCode(
|
|
822
|
+
return exports.AuthenticationApiFp(this.configuration).verifyRecoveryCode(twoFactorAuthCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
820
823
|
};
|
|
821
824
|
return AuthenticationApi;
|
|
822
825
|
}(base_1.BaseAPI));
|
|
@@ -831,11 +834,11 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
831
834
|
/**
|
|
832
835
|
* Create an avatar. It\'s possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
|
|
833
836
|
* @summary Create Avatar
|
|
834
|
-
* @param {
|
|
837
|
+
* @param {CreateAvatarRequest} [createAvatarRequest]
|
|
835
838
|
* @param {*} [options] Override http request option.
|
|
836
839
|
* @throws {RequiredError}
|
|
837
840
|
*/
|
|
838
|
-
createAvatar: function (
|
|
841
|
+
createAvatar: function (createAvatarRequest, options) {
|
|
839
842
|
if (options === void 0) { options = {}; }
|
|
840
843
|
return __awaiter(_this, void 0, void 0, function () {
|
|
841
844
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -851,10 +854,10 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
851
854
|
// authentication apiKeyCookie required
|
|
852
855
|
// authentication authCookie required
|
|
853
856
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
854
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
857
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
855
858
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
856
859
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
857
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
860
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createAvatarRequest, localVarRequestOptions, configuration);
|
|
858
861
|
return [2 /*return*/, {
|
|
859
862
|
url: common_1.toPathString(localVarUrlObj),
|
|
860
863
|
options: localVarRequestOptions,
|
|
@@ -887,7 +890,7 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
887
890
|
localVarQueryParameter = {};
|
|
888
891
|
// authentication apiKeyCookie required
|
|
889
892
|
// authentication authCookie required
|
|
890
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
893
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
891
894
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
892
895
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
893
896
|
return [2 /*return*/, {
|
|
@@ -922,7 +925,7 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
922
925
|
localVarQueryParameter = {};
|
|
923
926
|
// authentication apiKeyCookie required
|
|
924
927
|
// authentication authCookie required
|
|
925
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
928
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
926
929
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
927
930
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
928
931
|
return [2 /*return*/, {
|
|
@@ -1005,7 +1008,7 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
1005
1008
|
if (userId !== undefined) {
|
|
1006
1009
|
localVarQueryParameter['userId'] = userId;
|
|
1007
1010
|
}
|
|
1008
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1011
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1009
1012
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1010
1013
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1011
1014
|
return [2 /*return*/, {
|
|
@@ -1088,7 +1091,7 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
1088
1091
|
if (platform !== undefined) {
|
|
1089
1092
|
localVarQueryParameter['platform'] = platform;
|
|
1090
1093
|
}
|
|
1091
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1094
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1092
1095
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1093
1096
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1094
1097
|
return [2 /*return*/, {
|
|
@@ -1123,7 +1126,42 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
1123
1126
|
localVarQueryParameter = {};
|
|
1124
1127
|
// authentication apiKeyCookie required
|
|
1125
1128
|
// authentication authCookie required
|
|
1126
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1129
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1130
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1131
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1132
|
+
return [2 /*return*/, {
|
|
1133
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1134
|
+
options: localVarRequestOptions,
|
|
1135
|
+
}];
|
|
1136
|
+
});
|
|
1137
|
+
});
|
|
1138
|
+
},
|
|
1139
|
+
/**
|
|
1140
|
+
* Switches into that avatar as your fallback avatar.
|
|
1141
|
+
* @summary Select Fallback Avatar
|
|
1142
|
+
* @param {string} avatarId
|
|
1143
|
+
* @param {*} [options] Override http request option.
|
|
1144
|
+
* @throws {RequiredError}
|
|
1145
|
+
*/
|
|
1146
|
+
selectFallbackAvatar: function (avatarId, options) {
|
|
1147
|
+
if (options === void 0) { options = {}; }
|
|
1148
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1149
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1150
|
+
return __generator(this, function (_a) {
|
|
1151
|
+
// verify required parameter 'avatarId' is not null or undefined
|
|
1152
|
+
common_1.assertParamExists('selectFallbackAvatar', 'avatarId', avatarId);
|
|
1153
|
+
localVarPath = "/avatars/{avatarId}/selectFallback"
|
|
1154
|
+
.replace("{" + "avatarId" + "}", encodeURIComponent(String(avatarId)));
|
|
1155
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1156
|
+
if (configuration) {
|
|
1157
|
+
baseOptions = configuration.baseOptions;
|
|
1158
|
+
}
|
|
1159
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1160
|
+
localVarHeaderParameter = {};
|
|
1161
|
+
localVarQueryParameter = {};
|
|
1162
|
+
// authentication apiKeyCookie required
|
|
1163
|
+
// authentication authCookie required
|
|
1164
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1127
1165
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1128
1166
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1129
1167
|
return [2 /*return*/, {
|
|
@@ -1137,11 +1175,11 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
1137
1175
|
* Update information about a specific avatar.
|
|
1138
1176
|
* @summary Update Avatar
|
|
1139
1177
|
* @param {string} avatarId
|
|
1140
|
-
* @param {
|
|
1178
|
+
* @param {UpdateAvatarRequest} [updateAvatarRequest]
|
|
1141
1179
|
* @param {*} [options] Override http request option.
|
|
1142
1180
|
* @throws {RequiredError}
|
|
1143
1181
|
*/
|
|
1144
|
-
updateAvatar: function (avatarId,
|
|
1182
|
+
updateAvatar: function (avatarId, updateAvatarRequest, options) {
|
|
1145
1183
|
if (options === void 0) { options = {}; }
|
|
1146
1184
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1147
1185
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1160,10 +1198,10 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
1160
1198
|
// authentication apiKeyCookie required
|
|
1161
1199
|
// authentication authCookie required
|
|
1162
1200
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1163
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1201
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1164
1202
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1165
1203
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1166
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
1204
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateAvatarRequest, localVarRequestOptions, configuration);
|
|
1167
1205
|
return [2 /*return*/, {
|
|
1168
1206
|
url: common_1.toPathString(localVarUrlObj),
|
|
1169
1207
|
options: localVarRequestOptions,
|
|
@@ -1183,16 +1221,16 @@ exports.AvatarsApiFp = function (configuration) {
|
|
|
1183
1221
|
/**
|
|
1184
1222
|
* Create an avatar. It\'s possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
|
|
1185
1223
|
* @summary Create Avatar
|
|
1186
|
-
* @param {
|
|
1224
|
+
* @param {CreateAvatarRequest} [createAvatarRequest]
|
|
1187
1225
|
* @param {*} [options] Override http request option.
|
|
1188
1226
|
* @throws {RequiredError}
|
|
1189
1227
|
*/
|
|
1190
|
-
createAvatar: function (
|
|
1228
|
+
createAvatar: function (createAvatarRequest, options) {
|
|
1191
1229
|
return __awaiter(this, void 0, void 0, function () {
|
|
1192
1230
|
var localVarAxiosArgs;
|
|
1193
1231
|
return __generator(this, function (_a) {
|
|
1194
1232
|
switch (_a.label) {
|
|
1195
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAvatar(
|
|
1233
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAvatar(createAvatarRequest, options)];
|
|
1196
1234
|
case 1:
|
|
1197
1235
|
localVarAxiosArgs = _a.sent();
|
|
1198
1236
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1324,20 +1362,40 @@ exports.AvatarsApiFp = function (configuration) {
|
|
|
1324
1362
|
});
|
|
1325
1363
|
});
|
|
1326
1364
|
},
|
|
1365
|
+
/**
|
|
1366
|
+
* Switches into that avatar as your fallback avatar.
|
|
1367
|
+
* @summary Select Fallback Avatar
|
|
1368
|
+
* @param {string} avatarId
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
*/
|
|
1372
|
+
selectFallbackAvatar: function (avatarId, options) {
|
|
1373
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1374
|
+
var localVarAxiosArgs;
|
|
1375
|
+
return __generator(this, function (_a) {
|
|
1376
|
+
switch (_a.label) {
|
|
1377
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.selectFallbackAvatar(avatarId, options)];
|
|
1378
|
+
case 1:
|
|
1379
|
+
localVarAxiosArgs = _a.sent();
|
|
1380
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
});
|
|
1384
|
+
},
|
|
1327
1385
|
/**
|
|
1328
1386
|
* Update information about a specific avatar.
|
|
1329
1387
|
* @summary Update Avatar
|
|
1330
1388
|
* @param {string} avatarId
|
|
1331
|
-
* @param {
|
|
1389
|
+
* @param {UpdateAvatarRequest} [updateAvatarRequest]
|
|
1332
1390
|
* @param {*} [options] Override http request option.
|
|
1333
1391
|
* @throws {RequiredError}
|
|
1334
1392
|
*/
|
|
1335
|
-
updateAvatar: function (avatarId,
|
|
1393
|
+
updateAvatar: function (avatarId, updateAvatarRequest, options) {
|
|
1336
1394
|
return __awaiter(this, void 0, void 0, function () {
|
|
1337
1395
|
var localVarAxiosArgs;
|
|
1338
1396
|
return __generator(this, function (_a) {
|
|
1339
1397
|
switch (_a.label) {
|
|
1340
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAvatar(avatarId,
|
|
1398
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAvatar(avatarId, updateAvatarRequest, options)];
|
|
1341
1399
|
case 1:
|
|
1342
1400
|
localVarAxiosArgs = _a.sent();
|
|
1343
1401
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1357,12 +1415,12 @@ exports.AvatarsApiFactory = function (configuration, basePath, axios) {
|
|
|
1357
1415
|
/**
|
|
1358
1416
|
* Create an avatar. It\'s possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
|
|
1359
1417
|
* @summary Create Avatar
|
|
1360
|
-
* @param {
|
|
1418
|
+
* @param {CreateAvatarRequest} [createAvatarRequest]
|
|
1361
1419
|
* @param {*} [options] Override http request option.
|
|
1362
1420
|
* @throws {RequiredError}
|
|
1363
1421
|
*/
|
|
1364
|
-
createAvatar: function (
|
|
1365
|
-
return localVarFp.createAvatar(
|
|
1422
|
+
createAvatar: function (createAvatarRequest, options) {
|
|
1423
|
+
return localVarFp.createAvatar(createAvatarRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1366
1424
|
},
|
|
1367
1425
|
/**
|
|
1368
1426
|
* Delete an avatar. Notice an avatar is never fully \"deleted\", only its ReleaseStatus is set to \"hidden\" and the linked Files are deleted. The AvatarID is permanently reserved.
|
|
@@ -1438,16 +1496,26 @@ exports.AvatarsApiFactory = function (configuration, basePath, axios) {
|
|
|
1438
1496
|
selectAvatar: function (avatarId, options) {
|
|
1439
1497
|
return localVarFp.selectAvatar(avatarId, options).then(function (request) { return request(axios, basePath); });
|
|
1440
1498
|
},
|
|
1499
|
+
/**
|
|
1500
|
+
* Switches into that avatar as your fallback avatar.
|
|
1501
|
+
* @summary Select Fallback Avatar
|
|
1502
|
+
* @param {string} avatarId
|
|
1503
|
+
* @param {*} [options] Override http request option.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
*/
|
|
1506
|
+
selectFallbackAvatar: function (avatarId, options) {
|
|
1507
|
+
return localVarFp.selectFallbackAvatar(avatarId, options).then(function (request) { return request(axios, basePath); });
|
|
1508
|
+
},
|
|
1441
1509
|
/**
|
|
1442
1510
|
* Update information about a specific avatar.
|
|
1443
1511
|
* @summary Update Avatar
|
|
1444
1512
|
* @param {string} avatarId
|
|
1445
|
-
* @param {
|
|
1513
|
+
* @param {UpdateAvatarRequest} [updateAvatarRequest]
|
|
1446
1514
|
* @param {*} [options] Override http request option.
|
|
1447
1515
|
* @throws {RequiredError}
|
|
1448
1516
|
*/
|
|
1449
|
-
updateAvatar: function (avatarId,
|
|
1450
|
-
return localVarFp.updateAvatar(avatarId,
|
|
1517
|
+
updateAvatar: function (avatarId, updateAvatarRequest, options) {
|
|
1518
|
+
return localVarFp.updateAvatar(avatarId, updateAvatarRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1451
1519
|
},
|
|
1452
1520
|
};
|
|
1453
1521
|
};
|
|
@@ -1465,14 +1533,14 @@ var AvatarsApi = /** @class */ (function (_super) {
|
|
|
1465
1533
|
/**
|
|
1466
1534
|
* Create an avatar. It\'s possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
|
|
1467
1535
|
* @summary Create Avatar
|
|
1468
|
-
* @param {
|
|
1536
|
+
* @param {CreateAvatarRequest} [createAvatarRequest]
|
|
1469
1537
|
* @param {*} [options] Override http request option.
|
|
1470
1538
|
* @throws {RequiredError}
|
|
1471
1539
|
* @memberof AvatarsApi
|
|
1472
1540
|
*/
|
|
1473
|
-
AvatarsApi.prototype.createAvatar = function (
|
|
1541
|
+
AvatarsApi.prototype.createAvatar = function (createAvatarRequest, options) {
|
|
1474
1542
|
var _this = this;
|
|
1475
|
-
return exports.AvatarsApiFp(this.configuration).createAvatar(
|
|
1543
|
+
return exports.AvatarsApiFp(this.configuration).createAvatar(createAvatarRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1476
1544
|
};
|
|
1477
1545
|
/**
|
|
1478
1546
|
* Delete an avatar. Notice an avatar is never fully \"deleted\", only its ReleaseStatus is set to \"hidden\" and the linked Files are deleted. The AvatarID is permanently reserved.
|
|
@@ -1558,18 +1626,30 @@ var AvatarsApi = /** @class */ (function (_super) {
|
|
|
1558
1626
|
var _this = this;
|
|
1559
1627
|
return exports.AvatarsApiFp(this.configuration).selectAvatar(avatarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1560
1628
|
};
|
|
1629
|
+
/**
|
|
1630
|
+
* Switches into that avatar as your fallback avatar.
|
|
1631
|
+
* @summary Select Fallback Avatar
|
|
1632
|
+
* @param {string} avatarId
|
|
1633
|
+
* @param {*} [options] Override http request option.
|
|
1634
|
+
* @throws {RequiredError}
|
|
1635
|
+
* @memberof AvatarsApi
|
|
1636
|
+
*/
|
|
1637
|
+
AvatarsApi.prototype.selectFallbackAvatar = function (avatarId, options) {
|
|
1638
|
+
var _this = this;
|
|
1639
|
+
return exports.AvatarsApiFp(this.configuration).selectFallbackAvatar(avatarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1640
|
+
};
|
|
1561
1641
|
/**
|
|
1562
1642
|
* Update information about a specific avatar.
|
|
1563
1643
|
* @summary Update Avatar
|
|
1564
1644
|
* @param {string} avatarId
|
|
1565
|
-
* @param {
|
|
1645
|
+
* @param {UpdateAvatarRequest} [updateAvatarRequest]
|
|
1566
1646
|
* @param {*} [options] Override http request option.
|
|
1567
1647
|
* @throws {RequiredError}
|
|
1568
1648
|
* @memberof AvatarsApi
|
|
1569
1649
|
*/
|
|
1570
|
-
AvatarsApi.prototype.updateAvatar = function (avatarId,
|
|
1650
|
+
AvatarsApi.prototype.updateAvatar = function (avatarId, updateAvatarRequest, options) {
|
|
1571
1651
|
var _this = this;
|
|
1572
|
-
return exports.AvatarsApiFp(this.configuration).updateAvatar(avatarId,
|
|
1652
|
+
return exports.AvatarsApiFp(this.configuration).updateAvatar(avatarId, updateAvatarRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1573
1653
|
};
|
|
1574
1654
|
return AvatarsApi;
|
|
1575
1655
|
}(base_1.BaseAPI));
|
|
@@ -1582,13 +1662,13 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1582
1662
|
var _this = this;
|
|
1583
1663
|
return {
|
|
1584
1664
|
/**
|
|
1585
|
-
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `
|
|
1665
|
+
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatars4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
|
1586
1666
|
* @summary Add Favorite
|
|
1587
|
-
* @param {
|
|
1667
|
+
* @param {AddFavoriteRequest} [addFavoriteRequest]
|
|
1588
1668
|
* @param {*} [options] Override http request option.
|
|
1589
1669
|
* @throws {RequiredError}
|
|
1590
1670
|
*/
|
|
1591
|
-
addFavorite: function (
|
|
1671
|
+
addFavorite: function (addFavoriteRequest, options) {
|
|
1592
1672
|
if (options === void 0) { options = {}; }
|
|
1593
1673
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1594
1674
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1604,10 +1684,10 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1604
1684
|
// authentication apiKeyCookie required
|
|
1605
1685
|
// authentication authCookie required
|
|
1606
1686
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1607
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1687
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1608
1688
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1609
1689
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1610
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
1690
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(addFavoriteRequest, localVarRequestOptions, configuration);
|
|
1611
1691
|
return [2 /*return*/, {
|
|
1612
1692
|
url: common_1.toPathString(localVarUrlObj),
|
|
1613
1693
|
options: localVarRequestOptions,
|
|
@@ -1648,7 +1728,7 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1648
1728
|
localVarQueryParameter = {};
|
|
1649
1729
|
// authentication apiKeyCookie required
|
|
1650
1730
|
// authentication authCookie required
|
|
1651
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1731
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1652
1732
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1653
1733
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1654
1734
|
return [2 /*return*/, {
|
|
@@ -1683,7 +1763,7 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1683
1763
|
localVarQueryParameter = {};
|
|
1684
1764
|
// authentication apiKeyCookie required
|
|
1685
1765
|
// authentication authCookie required
|
|
1686
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1766
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1687
1767
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1688
1768
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1689
1769
|
return [2 /*return*/, {
|
|
@@ -1726,7 +1806,7 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1726
1806
|
localVarQueryParameter = {};
|
|
1727
1807
|
// authentication apiKeyCookie required
|
|
1728
1808
|
// authentication authCookie required
|
|
1729
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1809
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1730
1810
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1731
1811
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1732
1812
|
return [2 /*return*/, {
|
|
@@ -1769,7 +1849,7 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1769
1849
|
if (ownerId !== undefined) {
|
|
1770
1850
|
localVarQueryParameter['ownerId'] = ownerId;
|
|
1771
1851
|
}
|
|
1772
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1852
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1773
1853
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1774
1854
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1775
1855
|
return [2 /*return*/, {
|
|
@@ -1816,7 +1896,7 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1816
1896
|
if (tag !== undefined) {
|
|
1817
1897
|
localVarQueryParameter['tag'] = tag;
|
|
1818
1898
|
}
|
|
1819
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1899
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1820
1900
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1821
1901
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1822
1902
|
return [2 /*return*/, {
|
|
@@ -1851,7 +1931,7 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1851
1931
|
localVarQueryParameter = {};
|
|
1852
1932
|
// authentication apiKeyCookie required
|
|
1853
1933
|
// authentication authCookie required
|
|
1854
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1934
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1855
1935
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1856
1936
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1857
1937
|
return [2 /*return*/, {
|
|
@@ -1867,11 +1947,11 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1867
1947
|
* @param {'world' | 'friend' | 'avatar'} favoriteGroupType The type of group to fetch, must be a valid FavoriteType.
|
|
1868
1948
|
* @param {string} favoriteGroupName
|
|
1869
1949
|
* @param {string} userId
|
|
1870
|
-
* @param {
|
|
1950
|
+
* @param {UpdateFavoriteGroupRequest} [updateFavoriteGroupRequest]
|
|
1871
1951
|
* @param {*} [options] Override http request option.
|
|
1872
1952
|
* @throws {RequiredError}
|
|
1873
1953
|
*/
|
|
1874
|
-
updateFavoriteGroup: function (favoriteGroupType, favoriteGroupName, userId,
|
|
1954
|
+
updateFavoriteGroup: function (favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest, options) {
|
|
1875
1955
|
if (options === void 0) { options = {}; }
|
|
1876
1956
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1877
1957
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1896,10 +1976,10 @@ exports.FavoritesApiAxiosParamCreator = function (configuration) {
|
|
|
1896
1976
|
// authentication apiKeyCookie required
|
|
1897
1977
|
// authentication authCookie required
|
|
1898
1978
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1899
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
1979
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1900
1980
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1901
1981
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1902
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
1982
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateFavoriteGroupRequest, localVarRequestOptions, configuration);
|
|
1903
1983
|
return [2 /*return*/, {
|
|
1904
1984
|
url: common_1.toPathString(localVarUrlObj),
|
|
1905
1985
|
options: localVarRequestOptions,
|
|
@@ -1917,18 +1997,18 @@ exports.FavoritesApiFp = function (configuration) {
|
|
|
1917
1997
|
var localVarAxiosParamCreator = exports.FavoritesApiAxiosParamCreator(configuration);
|
|
1918
1998
|
return {
|
|
1919
1999
|
/**
|
|
1920
|
-
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `
|
|
2000
|
+
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatars4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
|
1921
2001
|
* @summary Add Favorite
|
|
1922
|
-
* @param {
|
|
2002
|
+
* @param {AddFavoriteRequest} [addFavoriteRequest]
|
|
1923
2003
|
* @param {*} [options] Override http request option.
|
|
1924
2004
|
* @throws {RequiredError}
|
|
1925
2005
|
*/
|
|
1926
|
-
addFavorite: function (
|
|
2006
|
+
addFavorite: function (addFavoriteRequest, options) {
|
|
1927
2007
|
return __awaiter(this, void 0, void 0, function () {
|
|
1928
2008
|
var localVarAxiosArgs;
|
|
1929
2009
|
return __generator(this, function (_a) {
|
|
1930
2010
|
switch (_a.label) {
|
|
1931
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addFavorite(
|
|
2011
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addFavorite(addFavoriteRequest, options)];
|
|
1932
2012
|
case 1:
|
|
1933
2013
|
localVarAxiosArgs = _a.sent();
|
|
1934
2014
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2071,16 +2151,16 @@ exports.FavoritesApiFp = function (configuration) {
|
|
|
2071
2151
|
* @param {'world' | 'friend' | 'avatar'} favoriteGroupType The type of group to fetch, must be a valid FavoriteType.
|
|
2072
2152
|
* @param {string} favoriteGroupName
|
|
2073
2153
|
* @param {string} userId
|
|
2074
|
-
* @param {
|
|
2154
|
+
* @param {UpdateFavoriteGroupRequest} [updateFavoriteGroupRequest]
|
|
2075
2155
|
* @param {*} [options] Override http request option.
|
|
2076
2156
|
* @throws {RequiredError}
|
|
2077
2157
|
*/
|
|
2078
|
-
updateFavoriteGroup: function (favoriteGroupType, favoriteGroupName, userId,
|
|
2158
|
+
updateFavoriteGroup: function (favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest, options) {
|
|
2079
2159
|
return __awaiter(this, void 0, void 0, function () {
|
|
2080
2160
|
var localVarAxiosArgs;
|
|
2081
2161
|
return __generator(this, function (_a) {
|
|
2082
2162
|
switch (_a.label) {
|
|
2083
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId,
|
|
2163
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest, options)];
|
|
2084
2164
|
case 1:
|
|
2085
2165
|
localVarAxiosArgs = _a.sent();
|
|
2086
2166
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2098,14 +2178,14 @@ exports.FavoritesApiFactory = function (configuration, basePath, axios) {
|
|
|
2098
2178
|
var localVarFp = exports.FavoritesApiFp(configuration);
|
|
2099
2179
|
return {
|
|
2100
2180
|
/**
|
|
2101
|
-
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `
|
|
2181
|
+
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatars4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
|
2102
2182
|
* @summary Add Favorite
|
|
2103
|
-
* @param {
|
|
2183
|
+
* @param {AddFavoriteRequest} [addFavoriteRequest]
|
|
2104
2184
|
* @param {*} [options] Override http request option.
|
|
2105
2185
|
* @throws {RequiredError}
|
|
2106
2186
|
*/
|
|
2107
|
-
addFavorite: function (
|
|
2108
|
-
return localVarFp.addFavorite(
|
|
2187
|
+
addFavorite: function (addFavoriteRequest, options) {
|
|
2188
|
+
return localVarFp.addFavorite(addFavoriteRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2109
2189
|
},
|
|
2110
2190
|
/**
|
|
2111
2191
|
* Clear ALL contents of a specific favorite group.
|
|
@@ -2182,12 +2262,12 @@ exports.FavoritesApiFactory = function (configuration, basePath, axios) {
|
|
|
2182
2262
|
* @param {'world' | 'friend' | 'avatar'} favoriteGroupType The type of group to fetch, must be a valid FavoriteType.
|
|
2183
2263
|
* @param {string} favoriteGroupName
|
|
2184
2264
|
* @param {string} userId
|
|
2185
|
-
* @param {
|
|
2265
|
+
* @param {UpdateFavoriteGroupRequest} [updateFavoriteGroupRequest]
|
|
2186
2266
|
* @param {*} [options] Override http request option.
|
|
2187
2267
|
* @throws {RequiredError}
|
|
2188
2268
|
*/
|
|
2189
|
-
updateFavoriteGroup: function (favoriteGroupType, favoriteGroupName, userId,
|
|
2190
|
-
return localVarFp.updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId,
|
|
2269
|
+
updateFavoriteGroup: function (favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest, options) {
|
|
2270
|
+
return localVarFp.updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2191
2271
|
},
|
|
2192
2272
|
};
|
|
2193
2273
|
};
|
|
@@ -2203,16 +2283,16 @@ var FavoritesApi = /** @class */ (function (_super) {
|
|
|
2203
2283
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2204
2284
|
}
|
|
2205
2285
|
/**
|
|
2206
|
-
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `
|
|
2286
|
+
* Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatars4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
|
2207
2287
|
* @summary Add Favorite
|
|
2208
|
-
* @param {
|
|
2288
|
+
* @param {AddFavoriteRequest} [addFavoriteRequest]
|
|
2209
2289
|
* @param {*} [options] Override http request option.
|
|
2210
2290
|
* @throws {RequiredError}
|
|
2211
2291
|
* @memberof FavoritesApi
|
|
2212
2292
|
*/
|
|
2213
|
-
FavoritesApi.prototype.addFavorite = function (
|
|
2293
|
+
FavoritesApi.prototype.addFavorite = function (addFavoriteRequest, options) {
|
|
2214
2294
|
var _this = this;
|
|
2215
|
-
return exports.FavoritesApiFp(this.configuration).addFavorite(
|
|
2295
|
+
return exports.FavoritesApiFp(this.configuration).addFavorite(addFavoriteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2216
2296
|
};
|
|
2217
2297
|
/**
|
|
2218
2298
|
* Clear ALL contents of a specific favorite group.
|
|
@@ -2301,14 +2381,14 @@ var FavoritesApi = /** @class */ (function (_super) {
|
|
|
2301
2381
|
* @param {'world' | 'friend' | 'avatar'} favoriteGroupType The type of group to fetch, must be a valid FavoriteType.
|
|
2302
2382
|
* @param {string} favoriteGroupName
|
|
2303
2383
|
* @param {string} userId
|
|
2304
|
-
* @param {
|
|
2384
|
+
* @param {UpdateFavoriteGroupRequest} [updateFavoriteGroupRequest]
|
|
2305
2385
|
* @param {*} [options] Override http request option.
|
|
2306
2386
|
* @throws {RequiredError}
|
|
2307
2387
|
* @memberof FavoritesApi
|
|
2308
2388
|
*/
|
|
2309
|
-
FavoritesApi.prototype.updateFavoriteGroup = function (favoriteGroupType, favoriteGroupName, userId,
|
|
2389
|
+
FavoritesApi.prototype.updateFavoriteGroup = function (favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest, options) {
|
|
2310
2390
|
var _this = this;
|
|
2311
|
-
return exports.FavoritesApiFp(this.configuration).updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId,
|
|
2391
|
+
return exports.FavoritesApiFp(this.configuration).updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2312
2392
|
};
|
|
2313
2393
|
return FavoritesApi;
|
|
2314
2394
|
}(base_1.BaseAPI));
|
|
@@ -2323,11 +2403,11 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2323
2403
|
/**
|
|
2324
2404
|
* Creates a new File object
|
|
2325
2405
|
* @summary Create File
|
|
2326
|
-
* @param {
|
|
2406
|
+
* @param {CreateFileRequest} [createFileRequest]
|
|
2327
2407
|
* @param {*} [options] Override http request option.
|
|
2328
2408
|
* @throws {RequiredError}
|
|
2329
2409
|
*/
|
|
2330
|
-
createFile: function (
|
|
2410
|
+
createFile: function (createFileRequest, options) {
|
|
2331
2411
|
if (options === void 0) { options = {}; }
|
|
2332
2412
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2333
2413
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2343,10 +2423,10 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2343
2423
|
// authentication apiKeyCookie required
|
|
2344
2424
|
// authentication authCookie required
|
|
2345
2425
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2346
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2426
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2347
2427
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2348
2428
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2349
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
2429
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFileRequest, localVarRequestOptions, configuration);
|
|
2350
2430
|
return [2 /*return*/, {
|
|
2351
2431
|
url: common_1.toPathString(localVarUrlObj),
|
|
2352
2432
|
options: localVarRequestOptions,
|
|
@@ -2358,11 +2438,11 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2358
2438
|
* Creates a new FileVersion. Once a Version has been created, proceed to the `/file/{fileId}/{versionId}/file/start` endpoint to start a file upload.
|
|
2359
2439
|
* @summary Create File Version
|
|
2360
2440
|
* @param {string} fileId
|
|
2361
|
-
* @param {
|
|
2441
|
+
* @param {CreateFileVersionRequest} [createFileVersionRequest]
|
|
2362
2442
|
* @param {*} [options] Override http request option.
|
|
2363
2443
|
* @throws {RequiredError}
|
|
2364
2444
|
*/
|
|
2365
|
-
createFileVersion: function (fileId,
|
|
2445
|
+
createFileVersion: function (fileId, createFileVersionRequest, options) {
|
|
2366
2446
|
if (options === void 0) { options = {}; }
|
|
2367
2447
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2368
2448
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2381,10 +2461,10 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2381
2461
|
// authentication apiKeyCookie required
|
|
2382
2462
|
// authentication authCookie required
|
|
2383
2463
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2384
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2464
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2385
2465
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2386
2466
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2387
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
2467
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFileVersionRequest, localVarRequestOptions, configuration);
|
|
2388
2468
|
return [2 /*return*/, {
|
|
2389
2469
|
url: common_1.toPathString(localVarUrlObj),
|
|
2390
2470
|
options: localVarRequestOptions,
|
|
@@ -2417,7 +2497,7 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2417
2497
|
localVarQueryParameter = {};
|
|
2418
2498
|
// authentication apiKeyCookie required
|
|
2419
2499
|
// authentication authCookie required
|
|
2420
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2500
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2421
2501
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2422
2502
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2423
2503
|
return [2 /*return*/, {
|
|
@@ -2456,7 +2536,7 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2456
2536
|
localVarQueryParameter = {};
|
|
2457
2537
|
// authentication apiKeyCookie required
|
|
2458
2538
|
// authentication authCookie required
|
|
2459
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2539
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2460
2540
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2461
2541
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2462
2542
|
return [2 /*return*/, {
|
|
@@ -2495,7 +2575,7 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2495
2575
|
localVarQueryParameter = {};
|
|
2496
2576
|
// authentication apiKeyCookie required
|
|
2497
2577
|
// authentication authCookie required
|
|
2498
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2578
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2499
2579
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2500
2580
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2501
2581
|
return [2 /*return*/, {
|
|
@@ -2511,11 +2591,11 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2511
2591
|
* @param {string} fileId
|
|
2512
2592
|
* @param {number} versionId
|
|
2513
2593
|
* @param {'file' | 'signature' | 'delta'} fileType
|
|
2514
|
-
* @param {
|
|
2594
|
+
* @param {FinishFileDataUploadRequest} [finishFileDataUploadRequest] Please see documentation on ETag\'s: [https://teppen.io/2018/06/23/aws_s3_etags/](https://teppen.io/2018/06/23/aws_s3_etags/) ETag\'s should NOT be present when uploading a `signature`.
|
|
2515
2595
|
* @param {*} [options] Override http request option.
|
|
2516
2596
|
* @throws {RequiredError}
|
|
2517
2597
|
*/
|
|
2518
|
-
finishFileDataUpload: function (fileId, versionId, fileType,
|
|
2598
|
+
finishFileDataUpload: function (fileId, versionId, fileType, finishFileDataUploadRequest, options) {
|
|
2519
2599
|
if (options === void 0) { options = {}; }
|
|
2520
2600
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2521
2601
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2540,10 +2620,10 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2540
2620
|
// authentication apiKeyCookie required
|
|
2541
2621
|
// authentication authCookie required
|
|
2542
2622
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2543
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2623
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2544
2624
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2545
2625
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2546
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
2626
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(finishFileDataUploadRequest, localVarRequestOptions, configuration);
|
|
2547
2627
|
return [2 /*return*/, {
|
|
2548
2628
|
url: common_1.toPathString(localVarUrlObj),
|
|
2549
2629
|
options: localVarRequestOptions,
|
|
@@ -2576,7 +2656,7 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2576
2656
|
localVarQueryParameter = {};
|
|
2577
2657
|
// authentication apiKeyCookie required
|
|
2578
2658
|
// authentication authCookie required
|
|
2579
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2659
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2580
2660
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2581
2661
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2582
2662
|
return [2 /*return*/, {
|
|
@@ -2619,7 +2699,7 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2619
2699
|
localVarQueryParameter = {};
|
|
2620
2700
|
// authentication apiKeyCookie required
|
|
2621
2701
|
// authentication authCookie required
|
|
2622
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2702
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2623
2703
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2624
2704
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2625
2705
|
return [2 /*return*/, {
|
|
@@ -2666,7 +2746,7 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2666
2746
|
if (offset !== undefined) {
|
|
2667
2747
|
localVarQueryParameter['offset'] = offset;
|
|
2668
2748
|
}
|
|
2669
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2749
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2670
2750
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2671
2751
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2672
2752
|
return [2 /*return*/, {
|
|
@@ -2715,7 +2795,7 @@ exports.FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2715
2795
|
if (partNumber !== undefined) {
|
|
2716
2796
|
localVarQueryParameter['partNumber'] = partNumber;
|
|
2717
2797
|
}
|
|
2718
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
2798
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2719
2799
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2720
2800
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2721
2801
|
return [2 /*return*/, {
|
|
@@ -2737,16 +2817,16 @@ exports.FilesApiFp = function (configuration) {
|
|
|
2737
2817
|
/**
|
|
2738
2818
|
* Creates a new File object
|
|
2739
2819
|
* @summary Create File
|
|
2740
|
-
* @param {
|
|
2820
|
+
* @param {CreateFileRequest} [createFileRequest]
|
|
2741
2821
|
* @param {*} [options] Override http request option.
|
|
2742
2822
|
* @throws {RequiredError}
|
|
2743
2823
|
*/
|
|
2744
|
-
createFile: function (
|
|
2824
|
+
createFile: function (createFileRequest, options) {
|
|
2745
2825
|
return __awaiter(this, void 0, void 0, function () {
|
|
2746
2826
|
var localVarAxiosArgs;
|
|
2747
2827
|
return __generator(this, function (_a) {
|
|
2748
2828
|
switch (_a.label) {
|
|
2749
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createFile(
|
|
2829
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createFile(createFileRequest, options)];
|
|
2750
2830
|
case 1:
|
|
2751
2831
|
localVarAxiosArgs = _a.sent();
|
|
2752
2832
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2758,16 +2838,16 @@ exports.FilesApiFp = function (configuration) {
|
|
|
2758
2838
|
* Creates a new FileVersion. Once a Version has been created, proceed to the `/file/{fileId}/{versionId}/file/start` endpoint to start a file upload.
|
|
2759
2839
|
* @summary Create File Version
|
|
2760
2840
|
* @param {string} fileId
|
|
2761
|
-
* @param {
|
|
2841
|
+
* @param {CreateFileVersionRequest} [createFileVersionRequest]
|
|
2762
2842
|
* @param {*} [options] Override http request option.
|
|
2763
2843
|
* @throws {RequiredError}
|
|
2764
2844
|
*/
|
|
2765
|
-
createFileVersion: function (fileId,
|
|
2845
|
+
createFileVersion: function (fileId, createFileVersionRequest, options) {
|
|
2766
2846
|
return __awaiter(this, void 0, void 0, function () {
|
|
2767
2847
|
var localVarAxiosArgs;
|
|
2768
2848
|
return __generator(this, function (_a) {
|
|
2769
2849
|
switch (_a.label) {
|
|
2770
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createFileVersion(fileId,
|
|
2850
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createFileVersion(fileId, createFileVersionRequest, options)];
|
|
2771
2851
|
case 1:
|
|
2772
2852
|
localVarAxiosArgs = _a.sent();
|
|
2773
2853
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2843,16 +2923,16 @@ exports.FilesApiFp = function (configuration) {
|
|
|
2843
2923
|
* @param {string} fileId
|
|
2844
2924
|
* @param {number} versionId
|
|
2845
2925
|
* @param {'file' | 'signature' | 'delta'} fileType
|
|
2846
|
-
* @param {
|
|
2926
|
+
* @param {FinishFileDataUploadRequest} [finishFileDataUploadRequest] Please see documentation on ETag\'s: [https://teppen.io/2018/06/23/aws_s3_etags/](https://teppen.io/2018/06/23/aws_s3_etags/) ETag\'s should NOT be present when uploading a `signature`.
|
|
2847
2927
|
* @param {*} [options] Override http request option.
|
|
2848
2928
|
* @throws {RequiredError}
|
|
2849
2929
|
*/
|
|
2850
|
-
finishFileDataUpload: function (fileId, versionId, fileType,
|
|
2930
|
+
finishFileDataUpload: function (fileId, versionId, fileType, finishFileDataUploadRequest, options) {
|
|
2851
2931
|
return __awaiter(this, void 0, void 0, function () {
|
|
2852
2932
|
var localVarAxiosArgs;
|
|
2853
2933
|
return __generator(this, function (_a) {
|
|
2854
2934
|
switch (_a.label) {
|
|
2855
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.finishFileDataUpload(fileId, versionId, fileType,
|
|
2935
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.finishFileDataUpload(fileId, versionId, fileType, finishFileDataUploadRequest, options)];
|
|
2856
2936
|
case 1:
|
|
2857
2937
|
localVarAxiosArgs = _a.sent();
|
|
2858
2938
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2960,23 +3040,23 @@ exports.FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
2960
3040
|
/**
|
|
2961
3041
|
* Creates a new File object
|
|
2962
3042
|
* @summary Create File
|
|
2963
|
-
* @param {
|
|
3043
|
+
* @param {CreateFileRequest} [createFileRequest]
|
|
2964
3044
|
* @param {*} [options] Override http request option.
|
|
2965
3045
|
* @throws {RequiredError}
|
|
2966
3046
|
*/
|
|
2967
|
-
createFile: function (
|
|
2968
|
-
return localVarFp.createFile(
|
|
3047
|
+
createFile: function (createFileRequest, options) {
|
|
3048
|
+
return localVarFp.createFile(createFileRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2969
3049
|
},
|
|
2970
3050
|
/**
|
|
2971
3051
|
* Creates a new FileVersion. Once a Version has been created, proceed to the `/file/{fileId}/{versionId}/file/start` endpoint to start a file upload.
|
|
2972
3052
|
* @summary Create File Version
|
|
2973
3053
|
* @param {string} fileId
|
|
2974
|
-
* @param {
|
|
3054
|
+
* @param {CreateFileVersionRequest} [createFileVersionRequest]
|
|
2975
3055
|
* @param {*} [options] Override http request option.
|
|
2976
3056
|
* @throws {RequiredError}
|
|
2977
3057
|
*/
|
|
2978
|
-
createFileVersion: function (fileId,
|
|
2979
|
-
return localVarFp.createFileVersion(fileId,
|
|
3058
|
+
createFileVersion: function (fileId, createFileVersionRequest, options) {
|
|
3059
|
+
return localVarFp.createFileVersion(fileId, createFileVersionRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2980
3060
|
},
|
|
2981
3061
|
/**
|
|
2982
3062
|
* Deletes a File object.
|
|
@@ -3016,12 +3096,12 @@ exports.FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
3016
3096
|
* @param {string} fileId
|
|
3017
3097
|
* @param {number} versionId
|
|
3018
3098
|
* @param {'file' | 'signature' | 'delta'} fileType
|
|
3019
|
-
* @param {
|
|
3099
|
+
* @param {FinishFileDataUploadRequest} [finishFileDataUploadRequest] Please see documentation on ETag\'s: [https://teppen.io/2018/06/23/aws_s3_etags/](https://teppen.io/2018/06/23/aws_s3_etags/) ETag\'s should NOT be present when uploading a `signature`.
|
|
3020
3100
|
* @param {*} [options] Override http request option.
|
|
3021
3101
|
* @throws {RequiredError}
|
|
3022
3102
|
*/
|
|
3023
|
-
finishFileDataUpload: function (fileId, versionId, fileType,
|
|
3024
|
-
return localVarFp.finishFileDataUpload(fileId, versionId, fileType,
|
|
3103
|
+
finishFileDataUpload: function (fileId, versionId, fileType, finishFileDataUploadRequest, options) {
|
|
3104
|
+
return localVarFp.finishFileDataUpload(fileId, versionId, fileType, finishFileDataUploadRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3025
3105
|
},
|
|
3026
3106
|
/**
|
|
3027
3107
|
* Shows general information about the \"File\" object. Each File can have several \"Version\"\'s, and each Version can have multiple real files or \"Data\" blobs.
|
|
@@ -3087,27 +3167,27 @@ var FilesApi = /** @class */ (function (_super) {
|
|
|
3087
3167
|
/**
|
|
3088
3168
|
* Creates a new File object
|
|
3089
3169
|
* @summary Create File
|
|
3090
|
-
* @param {
|
|
3170
|
+
* @param {CreateFileRequest} [createFileRequest]
|
|
3091
3171
|
* @param {*} [options] Override http request option.
|
|
3092
3172
|
* @throws {RequiredError}
|
|
3093
3173
|
* @memberof FilesApi
|
|
3094
3174
|
*/
|
|
3095
|
-
FilesApi.prototype.createFile = function (
|
|
3175
|
+
FilesApi.prototype.createFile = function (createFileRequest, options) {
|
|
3096
3176
|
var _this = this;
|
|
3097
|
-
return exports.FilesApiFp(this.configuration).createFile(
|
|
3177
|
+
return exports.FilesApiFp(this.configuration).createFile(createFileRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3098
3178
|
};
|
|
3099
3179
|
/**
|
|
3100
3180
|
* Creates a new FileVersion. Once a Version has been created, proceed to the `/file/{fileId}/{versionId}/file/start` endpoint to start a file upload.
|
|
3101
3181
|
* @summary Create File Version
|
|
3102
3182
|
* @param {string} fileId
|
|
3103
|
-
* @param {
|
|
3183
|
+
* @param {CreateFileVersionRequest} [createFileVersionRequest]
|
|
3104
3184
|
* @param {*} [options] Override http request option.
|
|
3105
3185
|
* @throws {RequiredError}
|
|
3106
3186
|
* @memberof FilesApi
|
|
3107
3187
|
*/
|
|
3108
|
-
FilesApi.prototype.createFileVersion = function (fileId,
|
|
3188
|
+
FilesApi.prototype.createFileVersion = function (fileId, createFileVersionRequest, options) {
|
|
3109
3189
|
var _this = this;
|
|
3110
|
-
return exports.FilesApiFp(this.configuration).createFileVersion(fileId,
|
|
3190
|
+
return exports.FilesApiFp(this.configuration).createFileVersion(fileId, createFileVersionRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3111
3191
|
};
|
|
3112
3192
|
/**
|
|
3113
3193
|
* Deletes a File object.
|
|
@@ -3153,14 +3233,14 @@ var FilesApi = /** @class */ (function (_super) {
|
|
|
3153
3233
|
* @param {string} fileId
|
|
3154
3234
|
* @param {number} versionId
|
|
3155
3235
|
* @param {'file' | 'signature' | 'delta'} fileType
|
|
3156
|
-
* @param {
|
|
3236
|
+
* @param {FinishFileDataUploadRequest} [finishFileDataUploadRequest] Please see documentation on ETag\'s: [https://teppen.io/2018/06/23/aws_s3_etags/](https://teppen.io/2018/06/23/aws_s3_etags/) ETag\'s should NOT be present when uploading a `signature`.
|
|
3157
3237
|
* @param {*} [options] Override http request option.
|
|
3158
3238
|
* @throws {RequiredError}
|
|
3159
3239
|
* @memberof FilesApi
|
|
3160
3240
|
*/
|
|
3161
|
-
FilesApi.prototype.finishFileDataUpload = function (fileId, versionId, fileType,
|
|
3241
|
+
FilesApi.prototype.finishFileDataUpload = function (fileId, versionId, fileType, finishFileDataUploadRequest, options) {
|
|
3162
3242
|
var _this = this;
|
|
3163
|
-
return exports.FilesApiFp(this.configuration).finishFileDataUpload(fileId, versionId, fileType,
|
|
3243
|
+
return exports.FilesApiFp(this.configuration).finishFileDataUpload(fileId, versionId, fileType, finishFileDataUploadRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3164
3244
|
};
|
|
3165
3245
|
/**
|
|
3166
3246
|
* Shows general information about the \"File\" object. Each File can have several \"Version\"\'s, and each Version can have multiple real files or \"Data\" blobs.
|
|
@@ -3253,7 +3333,7 @@ exports.FriendsApiAxiosParamCreator = function (configuration) {
|
|
|
3253
3333
|
localVarQueryParameter = {};
|
|
3254
3334
|
// authentication apiKeyCookie required
|
|
3255
3335
|
// authentication authCookie required
|
|
3256
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
3336
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3257
3337
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3258
3338
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3259
3339
|
return [2 /*return*/, {
|
|
@@ -3288,7 +3368,7 @@ exports.FriendsApiAxiosParamCreator = function (configuration) {
|
|
|
3288
3368
|
localVarQueryParameter = {};
|
|
3289
3369
|
// authentication apiKeyCookie required
|
|
3290
3370
|
// authentication authCookie required
|
|
3291
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
3371
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3292
3372
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3293
3373
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3294
3374
|
return [2 /*return*/, {
|
|
@@ -3323,7 +3403,7 @@ exports.FriendsApiAxiosParamCreator = function (configuration) {
|
|
|
3323
3403
|
localVarQueryParameter = {};
|
|
3324
3404
|
// authentication apiKeyCookie required
|
|
3325
3405
|
// authentication authCookie required
|
|
3326
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
3406
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3327
3407
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3328
3408
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3329
3409
|
return [2 /*return*/, {
|
|
@@ -3366,7 +3446,7 @@ exports.FriendsApiAxiosParamCreator = function (configuration) {
|
|
|
3366
3446
|
if (offline !== undefined) {
|
|
3367
3447
|
localVarQueryParameter['offline'] = offline;
|
|
3368
3448
|
}
|
|
3369
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
3449
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3370
3450
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3371
3451
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3372
3452
|
return [2 /*return*/, {
|
|
@@ -3401,7 +3481,7 @@ exports.FriendsApiAxiosParamCreator = function (configuration) {
|
|
|
3401
3481
|
localVarQueryParameter = {};
|
|
3402
3482
|
// authentication apiKeyCookie required
|
|
3403
3483
|
// authentication authCookie required
|
|
3404
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
3484
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3405
3485
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3406
3486
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3407
3487
|
return [2 /*return*/, {
|
|
@@ -3661,6 +3741,299 @@ var FriendsApi = /** @class */ (function (_super) {
|
|
|
3661
3741
|
return FriendsApi;
|
|
3662
3742
|
}(base_1.BaseAPI));
|
|
3663
3743
|
exports.FriendsApi = FriendsApi;
|
|
3744
|
+
/**
|
|
3745
|
+
* InstancesApi - axios parameter creator
|
|
3746
|
+
* @export
|
|
3747
|
+
*/
|
|
3748
|
+
exports.InstancesApiAxiosParamCreator = function (configuration) {
|
|
3749
|
+
var _this = this;
|
|
3750
|
+
return {
|
|
3751
|
+
/**
|
|
3752
|
+
* Returns an instance.
|
|
3753
|
+
* @summary Get Instance
|
|
3754
|
+
* @param {string} worldId
|
|
3755
|
+
* @param {string} instanceId
|
|
3756
|
+
* @param {*} [options] Override http request option.
|
|
3757
|
+
* @throws {RequiredError}
|
|
3758
|
+
*/
|
|
3759
|
+
getInstance: function (worldId, instanceId, options) {
|
|
3760
|
+
if (options === void 0) { options = {}; }
|
|
3761
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3762
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3763
|
+
return __generator(this, function (_a) {
|
|
3764
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
3765
|
+
common_1.assertParamExists('getInstance', 'worldId', worldId);
|
|
3766
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
3767
|
+
common_1.assertParamExists('getInstance', 'instanceId', instanceId);
|
|
3768
|
+
localVarPath = "/instances/{worldId}:{instanceId}"
|
|
3769
|
+
.replace("{" + "worldId" + "}", encodeURIComponent(String(worldId)))
|
|
3770
|
+
.replace("{" + "instanceId" + "}", encodeURIComponent(String(instanceId)));
|
|
3771
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3772
|
+
if (configuration) {
|
|
3773
|
+
baseOptions = configuration.baseOptions;
|
|
3774
|
+
}
|
|
3775
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3776
|
+
localVarHeaderParameter = {};
|
|
3777
|
+
localVarQueryParameter = {};
|
|
3778
|
+
// authentication apiKeyCookie required
|
|
3779
|
+
// authentication authCookie required
|
|
3780
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3781
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3782
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3783
|
+
return [2 /*return*/, {
|
|
3784
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3785
|
+
options: localVarRequestOptions,
|
|
3786
|
+
}];
|
|
3787
|
+
});
|
|
3788
|
+
});
|
|
3789
|
+
},
|
|
3790
|
+
/**
|
|
3791
|
+
* Returns an instance short name.
|
|
3792
|
+
* @summary Get Instance Short Name
|
|
3793
|
+
* @param {string} worldId
|
|
3794
|
+
* @param {string} instanceId
|
|
3795
|
+
* @param {*} [options] Override http request option.
|
|
3796
|
+
* @throws {RequiredError}
|
|
3797
|
+
*/
|
|
3798
|
+
getShortName: function (worldId, instanceId, options) {
|
|
3799
|
+
if (options === void 0) { options = {}; }
|
|
3800
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3801
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3802
|
+
return __generator(this, function (_a) {
|
|
3803
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
3804
|
+
common_1.assertParamExists('getShortName', 'worldId', worldId);
|
|
3805
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
3806
|
+
common_1.assertParamExists('getShortName', 'instanceId', instanceId);
|
|
3807
|
+
localVarPath = "/instances/{worldId}:{instanceId}/shortName"
|
|
3808
|
+
.replace("{" + "worldId" + "}", encodeURIComponent(String(worldId)))
|
|
3809
|
+
.replace("{" + "instanceId" + "}", encodeURIComponent(String(instanceId)));
|
|
3810
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3811
|
+
if (configuration) {
|
|
3812
|
+
baseOptions = configuration.baseOptions;
|
|
3813
|
+
}
|
|
3814
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3815
|
+
localVarHeaderParameter = {};
|
|
3816
|
+
localVarQueryParameter = {};
|
|
3817
|
+
// authentication apiKeyCookie required
|
|
3818
|
+
// authentication authCookie required
|
|
3819
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3820
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3821
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3822
|
+
return [2 /*return*/, {
|
|
3823
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3824
|
+
options: localVarRequestOptions,
|
|
3825
|
+
}];
|
|
3826
|
+
});
|
|
3827
|
+
});
|
|
3828
|
+
},
|
|
3829
|
+
/**
|
|
3830
|
+
* Sends an invite to the instance to yourself.
|
|
3831
|
+
* @summary Send Self Invite
|
|
3832
|
+
* @param {string} worldId
|
|
3833
|
+
* @param {string} instanceId
|
|
3834
|
+
* @param {*} [options] Override http request option.
|
|
3835
|
+
* @throws {RequiredError}
|
|
3836
|
+
*/
|
|
3837
|
+
sendSelfInvite: function (worldId, instanceId, options) {
|
|
3838
|
+
if (options === void 0) { options = {}; }
|
|
3839
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3840
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3841
|
+
return __generator(this, function (_a) {
|
|
3842
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
3843
|
+
common_1.assertParamExists('sendSelfInvite', 'worldId', worldId);
|
|
3844
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
3845
|
+
common_1.assertParamExists('sendSelfInvite', 'instanceId', instanceId);
|
|
3846
|
+
localVarPath = "/instances/{worldId}:{instanceId}/invite"
|
|
3847
|
+
.replace("{" + "worldId" + "}", encodeURIComponent(String(worldId)))
|
|
3848
|
+
.replace("{" + "instanceId" + "}", encodeURIComponent(String(instanceId)));
|
|
3849
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3850
|
+
if (configuration) {
|
|
3851
|
+
baseOptions = configuration.baseOptions;
|
|
3852
|
+
}
|
|
3853
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
3854
|
+
localVarHeaderParameter = {};
|
|
3855
|
+
localVarQueryParameter = {};
|
|
3856
|
+
// authentication apiKeyCookie required
|
|
3857
|
+
// authentication authCookie required
|
|
3858
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3859
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3860
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3861
|
+
return [2 /*return*/, {
|
|
3862
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3863
|
+
options: localVarRequestOptions,
|
|
3864
|
+
}];
|
|
3865
|
+
});
|
|
3866
|
+
});
|
|
3867
|
+
},
|
|
3868
|
+
};
|
|
3869
|
+
};
|
|
3870
|
+
/**
|
|
3871
|
+
* InstancesApi - functional programming interface
|
|
3872
|
+
* @export
|
|
3873
|
+
*/
|
|
3874
|
+
exports.InstancesApiFp = function (configuration) {
|
|
3875
|
+
var localVarAxiosParamCreator = exports.InstancesApiAxiosParamCreator(configuration);
|
|
3876
|
+
return {
|
|
3877
|
+
/**
|
|
3878
|
+
* Returns an instance.
|
|
3879
|
+
* @summary Get Instance
|
|
3880
|
+
* @param {string} worldId
|
|
3881
|
+
* @param {string} instanceId
|
|
3882
|
+
* @param {*} [options] Override http request option.
|
|
3883
|
+
* @throws {RequiredError}
|
|
3884
|
+
*/
|
|
3885
|
+
getInstance: function (worldId, instanceId, options) {
|
|
3886
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3887
|
+
var localVarAxiosArgs;
|
|
3888
|
+
return __generator(this, function (_a) {
|
|
3889
|
+
switch (_a.label) {
|
|
3890
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstance(worldId, instanceId, options)];
|
|
3891
|
+
case 1:
|
|
3892
|
+
localVarAxiosArgs = _a.sent();
|
|
3893
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
3894
|
+
}
|
|
3895
|
+
});
|
|
3896
|
+
});
|
|
3897
|
+
},
|
|
3898
|
+
/**
|
|
3899
|
+
* Returns an instance short name.
|
|
3900
|
+
* @summary Get Instance Short Name
|
|
3901
|
+
* @param {string} worldId
|
|
3902
|
+
* @param {string} instanceId
|
|
3903
|
+
* @param {*} [options] Override http request option.
|
|
3904
|
+
* @throws {RequiredError}
|
|
3905
|
+
*/
|
|
3906
|
+
getShortName: function (worldId, instanceId, options) {
|
|
3907
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3908
|
+
var localVarAxiosArgs;
|
|
3909
|
+
return __generator(this, function (_a) {
|
|
3910
|
+
switch (_a.label) {
|
|
3911
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getShortName(worldId, instanceId, options)];
|
|
3912
|
+
case 1:
|
|
3913
|
+
localVarAxiosArgs = _a.sent();
|
|
3914
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
3915
|
+
}
|
|
3916
|
+
});
|
|
3917
|
+
});
|
|
3918
|
+
},
|
|
3919
|
+
/**
|
|
3920
|
+
* Sends an invite to the instance to yourself.
|
|
3921
|
+
* @summary Send Self Invite
|
|
3922
|
+
* @param {string} worldId
|
|
3923
|
+
* @param {string} instanceId
|
|
3924
|
+
* @param {*} [options] Override http request option.
|
|
3925
|
+
* @throws {RequiredError}
|
|
3926
|
+
*/
|
|
3927
|
+
sendSelfInvite: function (worldId, instanceId, options) {
|
|
3928
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3929
|
+
var localVarAxiosArgs;
|
|
3930
|
+
return __generator(this, function (_a) {
|
|
3931
|
+
switch (_a.label) {
|
|
3932
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendSelfInvite(worldId, instanceId, options)];
|
|
3933
|
+
case 1:
|
|
3934
|
+
localVarAxiosArgs = _a.sent();
|
|
3935
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
3936
|
+
}
|
|
3937
|
+
});
|
|
3938
|
+
});
|
|
3939
|
+
},
|
|
3940
|
+
};
|
|
3941
|
+
};
|
|
3942
|
+
/**
|
|
3943
|
+
* InstancesApi - factory interface
|
|
3944
|
+
* @export
|
|
3945
|
+
*/
|
|
3946
|
+
exports.InstancesApiFactory = function (configuration, basePath, axios) {
|
|
3947
|
+
var localVarFp = exports.InstancesApiFp(configuration);
|
|
3948
|
+
return {
|
|
3949
|
+
/**
|
|
3950
|
+
* Returns an instance.
|
|
3951
|
+
* @summary Get Instance
|
|
3952
|
+
* @param {string} worldId
|
|
3953
|
+
* @param {string} instanceId
|
|
3954
|
+
* @param {*} [options] Override http request option.
|
|
3955
|
+
* @throws {RequiredError}
|
|
3956
|
+
*/
|
|
3957
|
+
getInstance: function (worldId, instanceId, options) {
|
|
3958
|
+
return localVarFp.getInstance(worldId, instanceId, options).then(function (request) { return request(axios, basePath); });
|
|
3959
|
+
},
|
|
3960
|
+
/**
|
|
3961
|
+
* Returns an instance short name.
|
|
3962
|
+
* @summary Get Instance Short Name
|
|
3963
|
+
* @param {string} worldId
|
|
3964
|
+
* @param {string} instanceId
|
|
3965
|
+
* @param {*} [options] Override http request option.
|
|
3966
|
+
* @throws {RequiredError}
|
|
3967
|
+
*/
|
|
3968
|
+
getShortName: function (worldId, instanceId, options) {
|
|
3969
|
+
return localVarFp.getShortName(worldId, instanceId, options).then(function (request) { return request(axios, basePath); });
|
|
3970
|
+
},
|
|
3971
|
+
/**
|
|
3972
|
+
* Sends an invite to the instance to yourself.
|
|
3973
|
+
* @summary Send Self Invite
|
|
3974
|
+
* @param {string} worldId
|
|
3975
|
+
* @param {string} instanceId
|
|
3976
|
+
* @param {*} [options] Override http request option.
|
|
3977
|
+
* @throws {RequiredError}
|
|
3978
|
+
*/
|
|
3979
|
+
sendSelfInvite: function (worldId, instanceId, options) {
|
|
3980
|
+
return localVarFp.sendSelfInvite(worldId, instanceId, options).then(function (request) { return request(axios, basePath); });
|
|
3981
|
+
},
|
|
3982
|
+
};
|
|
3983
|
+
};
|
|
3984
|
+
/**
|
|
3985
|
+
* InstancesApi - object-oriented interface
|
|
3986
|
+
* @export
|
|
3987
|
+
* @class InstancesApi
|
|
3988
|
+
* @extends {BaseAPI}
|
|
3989
|
+
*/
|
|
3990
|
+
var InstancesApi = /** @class */ (function (_super) {
|
|
3991
|
+
__extends(InstancesApi, _super);
|
|
3992
|
+
function InstancesApi() {
|
|
3993
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3994
|
+
}
|
|
3995
|
+
/**
|
|
3996
|
+
* Returns an instance.
|
|
3997
|
+
* @summary Get Instance
|
|
3998
|
+
* @param {string} worldId
|
|
3999
|
+
* @param {string} instanceId
|
|
4000
|
+
* @param {*} [options] Override http request option.
|
|
4001
|
+
* @throws {RequiredError}
|
|
4002
|
+
* @memberof InstancesApi
|
|
4003
|
+
*/
|
|
4004
|
+
InstancesApi.prototype.getInstance = function (worldId, instanceId, options) {
|
|
4005
|
+
var _this = this;
|
|
4006
|
+
return exports.InstancesApiFp(this.configuration).getInstance(worldId, instanceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4007
|
+
};
|
|
4008
|
+
/**
|
|
4009
|
+
* Returns an instance short name.
|
|
4010
|
+
* @summary Get Instance Short Name
|
|
4011
|
+
* @param {string} worldId
|
|
4012
|
+
* @param {string} instanceId
|
|
4013
|
+
* @param {*} [options] Override http request option.
|
|
4014
|
+
* @throws {RequiredError}
|
|
4015
|
+
* @memberof InstancesApi
|
|
4016
|
+
*/
|
|
4017
|
+
InstancesApi.prototype.getShortName = function (worldId, instanceId, options) {
|
|
4018
|
+
var _this = this;
|
|
4019
|
+
return exports.InstancesApiFp(this.configuration).getShortName(worldId, instanceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4020
|
+
};
|
|
4021
|
+
/**
|
|
4022
|
+
* Sends an invite to the instance to yourself.
|
|
4023
|
+
* @summary Send Self Invite
|
|
4024
|
+
* @param {string} worldId
|
|
4025
|
+
* @param {string} instanceId
|
|
4026
|
+
* @param {*} [options] Override http request option.
|
|
4027
|
+
* @throws {RequiredError}
|
|
4028
|
+
* @memberof InstancesApi
|
|
4029
|
+
*/
|
|
4030
|
+
InstancesApi.prototype.sendSelfInvite = function (worldId, instanceId, options) {
|
|
4031
|
+
var _this = this;
|
|
4032
|
+
return exports.InstancesApiFp(this.configuration).sendSelfInvite(worldId, instanceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4033
|
+
};
|
|
4034
|
+
return InstancesApi;
|
|
4035
|
+
}(base_1.BaseAPI));
|
|
4036
|
+
exports.InstancesApi = InstancesApi;
|
|
3664
4037
|
/**
|
|
3665
4038
|
* InviteApi - axios parameter creator
|
|
3666
4039
|
* @export
|
|
@@ -3670,14 +4043,14 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3670
4043
|
return {
|
|
3671
4044
|
/**
|
|
3672
4045
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
3673
|
-
* @summary Get Invite
|
|
4046
|
+
* @summary Get Invite Message
|
|
3674
4047
|
* @param {string} userId
|
|
3675
4048
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
3676
|
-
* @param {number}
|
|
4049
|
+
* @param {number} slot
|
|
3677
4050
|
* @param {*} [options] Override http request option.
|
|
3678
4051
|
* @throws {RequiredError}
|
|
3679
4052
|
*/
|
|
3680
|
-
getInviteMessage: function (userId, messageType,
|
|
4053
|
+
getInviteMessage: function (userId, messageType, slot, options) {
|
|
3681
4054
|
if (options === void 0) { options = {}; }
|
|
3682
4055
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3683
4056
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3686,12 +4059,12 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3686
4059
|
common_1.assertParamExists('getInviteMessage', 'userId', userId);
|
|
3687
4060
|
// verify required parameter 'messageType' is not null or undefined
|
|
3688
4061
|
common_1.assertParamExists('getInviteMessage', 'messageType', messageType);
|
|
3689
|
-
// verify required parameter '
|
|
3690
|
-
common_1.assertParamExists('getInviteMessage', '
|
|
3691
|
-
localVarPath = "/message/{userId}/{messageType}/{
|
|
4062
|
+
// verify required parameter 'slot' is not null or undefined
|
|
4063
|
+
common_1.assertParamExists('getInviteMessage', 'slot', slot);
|
|
4064
|
+
localVarPath = "/message/{userId}/{messageType}/{slot}"
|
|
3692
4065
|
.replace("{" + "userId" + "}", encodeURIComponent(String(userId)))
|
|
3693
4066
|
.replace("{" + "messageType" + "}", encodeURIComponent(String(messageType)))
|
|
3694
|
-
.replace("{" + "
|
|
4067
|
+
.replace("{" + "slot" + "}", encodeURIComponent(String(slot)));
|
|
3695
4068
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3696
4069
|
if (configuration) {
|
|
3697
4070
|
baseOptions = configuration.baseOptions;
|
|
@@ -3701,7 +4074,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3701
4074
|
localVarQueryParameter = {};
|
|
3702
4075
|
// authentication apiKeyCookie required
|
|
3703
4076
|
// authentication authCookie required
|
|
3704
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4077
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3705
4078
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3706
4079
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3707
4080
|
return [2 /*return*/, {
|
|
@@ -3740,7 +4113,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3740
4113
|
localVarQueryParameter = {};
|
|
3741
4114
|
// authentication apiKeyCookie required
|
|
3742
4115
|
// authentication authCookie required
|
|
3743
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4116
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3744
4117
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3745
4118
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3746
4119
|
return [2 /*return*/, {
|
|
@@ -3754,7 +4127,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3754
4127
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
3755
4128
|
* @summary Invite User
|
|
3756
4129
|
* @param {string} userId
|
|
3757
|
-
* @param {InviteRequest} [inviteRequest]
|
|
4130
|
+
* @param {InviteRequest} [inviteRequest] Slot number of the Invite Message to use when inviting a user.
|
|
3758
4131
|
* @param {*} [options] Override http request option.
|
|
3759
4132
|
* @throws {RequiredError}
|
|
3760
4133
|
*/
|
|
@@ -3777,7 +4150,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3777
4150
|
// authentication apiKeyCookie required
|
|
3778
4151
|
// authentication authCookie required
|
|
3779
4152
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3780
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4153
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3781
4154
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3782
4155
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3783
4156
|
localVarRequestOptions.data = common_1.serializeDataIfNeeded(inviteRequest, localVarRequestOptions, configuration);
|
|
@@ -3813,7 +4186,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3813
4186
|
localVarQueryParameter = {};
|
|
3814
4187
|
// authentication apiKeyCookie required
|
|
3815
4188
|
// authentication authCookie required
|
|
3816
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4189
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3817
4190
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3818
4191
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3819
4192
|
return [2 /*return*/, {
|
|
@@ -3824,15 +4197,15 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3824
4197
|
});
|
|
3825
4198
|
},
|
|
3826
4199
|
/**
|
|
3827
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
4200
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
3828
4201
|
* @summary Reset Invite Message
|
|
3829
4202
|
* @param {string} userId
|
|
3830
4203
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
3831
|
-
* @param {number}
|
|
4204
|
+
* @param {number} slot
|
|
3832
4205
|
* @param {*} [options] Override http request option.
|
|
3833
4206
|
* @throws {RequiredError}
|
|
3834
4207
|
*/
|
|
3835
|
-
resetInviteMessage: function (userId, messageType,
|
|
4208
|
+
resetInviteMessage: function (userId, messageType, slot, options) {
|
|
3836
4209
|
if (options === void 0) { options = {}; }
|
|
3837
4210
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3838
4211
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3841,12 +4214,12 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3841
4214
|
common_1.assertParamExists('resetInviteMessage', 'userId', userId);
|
|
3842
4215
|
// verify required parameter 'messageType' is not null or undefined
|
|
3843
4216
|
common_1.assertParamExists('resetInviteMessage', 'messageType', messageType);
|
|
3844
|
-
// verify required parameter '
|
|
3845
|
-
common_1.assertParamExists('resetInviteMessage', '
|
|
3846
|
-
localVarPath = "/message/{userId}/{messageType}/{
|
|
4217
|
+
// verify required parameter 'slot' is not null or undefined
|
|
4218
|
+
common_1.assertParamExists('resetInviteMessage', 'slot', slot);
|
|
4219
|
+
localVarPath = "/message/{userId}/{messageType}/{slot}"
|
|
3847
4220
|
.replace("{" + "userId" + "}", encodeURIComponent(String(userId)))
|
|
3848
4221
|
.replace("{" + "messageType" + "}", encodeURIComponent(String(messageType)))
|
|
3849
|
-
.replace("{" + "
|
|
4222
|
+
.replace("{" + "slot" + "}", encodeURIComponent(String(slot)));
|
|
3850
4223
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3851
4224
|
if (configuration) {
|
|
3852
4225
|
baseOptions = configuration.baseOptions;
|
|
@@ -3856,7 +4229,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3856
4229
|
localVarQueryParameter = {};
|
|
3857
4230
|
// authentication apiKeyCookie required
|
|
3858
4231
|
// authentication authCookie required
|
|
3859
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4232
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3860
4233
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3861
4234
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3862
4235
|
return [2 /*return*/, {
|
|
@@ -3867,7 +4240,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3867
4240
|
});
|
|
3868
4241
|
},
|
|
3869
4242
|
/**
|
|
3870
|
-
*
|
|
4243
|
+
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
3871
4244
|
* @summary Respond Invite
|
|
3872
4245
|
* @param {string} notificationId
|
|
3873
4246
|
* @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
|
|
@@ -3893,7 +4266,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3893
4266
|
// authentication apiKeyCookie required
|
|
3894
4267
|
// authentication authCookie required
|
|
3895
4268
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3896
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4269
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3897
4270
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3898
4271
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3899
4272
|
localVarRequestOptions.data = common_1.serializeDataIfNeeded(inviteResponse, localVarRequestOptions, configuration);
|
|
@@ -3905,15 +4278,16 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3905
4278
|
});
|
|
3906
4279
|
},
|
|
3907
4280
|
/**
|
|
3908
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4281
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
3909
4282
|
* @summary Update Invite Message
|
|
3910
4283
|
* @param {string} userId
|
|
3911
4284
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
3912
|
-
* @param {number}
|
|
4285
|
+
* @param {number} slot
|
|
4286
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
3913
4287
|
* @param {*} [options] Override http request option.
|
|
3914
4288
|
* @throws {RequiredError}
|
|
3915
4289
|
*/
|
|
3916
|
-
updateInviteMessage: function (userId, messageType,
|
|
4290
|
+
updateInviteMessage: function (userId, messageType, slot, updateInviteMessageRequest, options) {
|
|
3917
4291
|
if (options === void 0) { options = {}; }
|
|
3918
4292
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3919
4293
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3922,12 +4296,12 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3922
4296
|
common_1.assertParamExists('updateInviteMessage', 'userId', userId);
|
|
3923
4297
|
// verify required parameter 'messageType' is not null or undefined
|
|
3924
4298
|
common_1.assertParamExists('updateInviteMessage', 'messageType', messageType);
|
|
3925
|
-
// verify required parameter '
|
|
3926
|
-
common_1.assertParamExists('updateInviteMessage', '
|
|
3927
|
-
localVarPath = "/message/{userId}/{messageType}/{
|
|
4299
|
+
// verify required parameter 'slot' is not null or undefined
|
|
4300
|
+
common_1.assertParamExists('updateInviteMessage', 'slot', slot);
|
|
4301
|
+
localVarPath = "/message/{userId}/{messageType}/{slot}"
|
|
3928
4302
|
.replace("{" + "userId" + "}", encodeURIComponent(String(userId)))
|
|
3929
4303
|
.replace("{" + "messageType" + "}", encodeURIComponent(String(messageType)))
|
|
3930
|
-
.replace("{" + "
|
|
4304
|
+
.replace("{" + "slot" + "}", encodeURIComponent(String(slot)));
|
|
3931
4305
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3932
4306
|
if (configuration) {
|
|
3933
4307
|
baseOptions = configuration.baseOptions;
|
|
@@ -3937,9 +4311,11 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
3937
4311
|
localVarQueryParameter = {};
|
|
3938
4312
|
// authentication apiKeyCookie required
|
|
3939
4313
|
// authentication authCookie required
|
|
3940
|
-
|
|
4314
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4315
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3941
4316
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3942
4317
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4318
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateInviteMessageRequest, localVarRequestOptions, configuration);
|
|
3943
4319
|
return [2 /*return*/, {
|
|
3944
4320
|
url: common_1.toPathString(localVarUrlObj),
|
|
3945
4321
|
options: localVarRequestOptions,
|
|
@@ -3958,19 +4334,19 @@ exports.InviteApiFp = function (configuration) {
|
|
|
3958
4334
|
return {
|
|
3959
4335
|
/**
|
|
3960
4336
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
3961
|
-
* @summary Get Invite
|
|
4337
|
+
* @summary Get Invite Message
|
|
3962
4338
|
* @param {string} userId
|
|
3963
4339
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
3964
|
-
* @param {number}
|
|
4340
|
+
* @param {number} slot
|
|
3965
4341
|
* @param {*} [options] Override http request option.
|
|
3966
4342
|
* @throws {RequiredError}
|
|
3967
4343
|
*/
|
|
3968
|
-
getInviteMessage: function (userId, messageType,
|
|
4344
|
+
getInviteMessage: function (userId, messageType, slot, options) {
|
|
3969
4345
|
return __awaiter(this, void 0, void 0, function () {
|
|
3970
4346
|
var localVarAxiosArgs;
|
|
3971
4347
|
return __generator(this, function (_a) {
|
|
3972
4348
|
switch (_a.label) {
|
|
3973
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInviteMessage(userId, messageType,
|
|
4349
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInviteMessage(userId, messageType, slot, options)];
|
|
3974
4350
|
case 1:
|
|
3975
4351
|
localVarAxiosArgs = _a.sent();
|
|
3976
4352
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4003,7 +4379,7 @@ exports.InviteApiFp = function (configuration) {
|
|
|
4003
4379
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
4004
4380
|
* @summary Invite User
|
|
4005
4381
|
* @param {string} userId
|
|
4006
|
-
* @param {InviteRequest} [inviteRequest]
|
|
4382
|
+
* @param {InviteRequest} [inviteRequest] Slot number of the Invite Message to use when inviting a user.
|
|
4007
4383
|
* @param {*} [options] Override http request option.
|
|
4008
4384
|
* @throws {RequiredError}
|
|
4009
4385
|
*/
|
|
@@ -4041,20 +4417,20 @@ exports.InviteApiFp = function (configuration) {
|
|
|
4041
4417
|
});
|
|
4042
4418
|
},
|
|
4043
4419
|
/**
|
|
4044
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
4420
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
4045
4421
|
* @summary Reset Invite Message
|
|
4046
4422
|
* @param {string} userId
|
|
4047
4423
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4048
|
-
* @param {number}
|
|
4424
|
+
* @param {number} slot
|
|
4049
4425
|
* @param {*} [options] Override http request option.
|
|
4050
4426
|
* @throws {RequiredError}
|
|
4051
4427
|
*/
|
|
4052
|
-
resetInviteMessage: function (userId, messageType,
|
|
4428
|
+
resetInviteMessage: function (userId, messageType, slot, options) {
|
|
4053
4429
|
return __awaiter(this, void 0, void 0, function () {
|
|
4054
4430
|
var localVarAxiosArgs;
|
|
4055
4431
|
return __generator(this, function (_a) {
|
|
4056
4432
|
switch (_a.label) {
|
|
4057
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetInviteMessage(userId, messageType,
|
|
4433
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetInviteMessage(userId, messageType, slot, options)];
|
|
4058
4434
|
case 1:
|
|
4059
4435
|
localVarAxiosArgs = _a.sent();
|
|
4060
4436
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4063,7 +4439,7 @@ exports.InviteApiFp = function (configuration) {
|
|
|
4063
4439
|
});
|
|
4064
4440
|
},
|
|
4065
4441
|
/**
|
|
4066
|
-
*
|
|
4442
|
+
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
4067
4443
|
* @summary Respond Invite
|
|
4068
4444
|
* @param {string} notificationId
|
|
4069
4445
|
* @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
|
|
@@ -4084,20 +4460,21 @@ exports.InviteApiFp = function (configuration) {
|
|
|
4084
4460
|
});
|
|
4085
4461
|
},
|
|
4086
4462
|
/**
|
|
4087
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4463
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4088
4464
|
* @summary Update Invite Message
|
|
4089
4465
|
* @param {string} userId
|
|
4090
4466
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4091
|
-
* @param {number}
|
|
4467
|
+
* @param {number} slot
|
|
4468
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
4092
4469
|
* @param {*} [options] Override http request option.
|
|
4093
4470
|
* @throws {RequiredError}
|
|
4094
4471
|
*/
|
|
4095
|
-
updateInviteMessage: function (userId, messageType,
|
|
4472
|
+
updateInviteMessage: function (userId, messageType, slot, updateInviteMessageRequest, options) {
|
|
4096
4473
|
return __awaiter(this, void 0, void 0, function () {
|
|
4097
4474
|
var localVarAxiosArgs;
|
|
4098
4475
|
return __generator(this, function (_a) {
|
|
4099
4476
|
switch (_a.label) {
|
|
4100
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateInviteMessage(userId, messageType,
|
|
4477
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest, options)];
|
|
4101
4478
|
case 1:
|
|
4102
4479
|
localVarAxiosArgs = _a.sent();
|
|
4103
4480
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4116,15 +4493,15 @@ exports.InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
4116
4493
|
return {
|
|
4117
4494
|
/**
|
|
4118
4495
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4119
|
-
* @summary Get Invite
|
|
4496
|
+
* @summary Get Invite Message
|
|
4120
4497
|
* @param {string} userId
|
|
4121
4498
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4122
|
-
* @param {number}
|
|
4499
|
+
* @param {number} slot
|
|
4123
4500
|
* @param {*} [options] Override http request option.
|
|
4124
4501
|
* @throws {RequiredError}
|
|
4125
4502
|
*/
|
|
4126
|
-
getInviteMessage: function (userId, messageType,
|
|
4127
|
-
return localVarFp.getInviteMessage(userId, messageType,
|
|
4503
|
+
getInviteMessage: function (userId, messageType, slot, options) {
|
|
4504
|
+
return localVarFp.getInviteMessage(userId, messageType, slot, options).then(function (request) { return request(axios, basePath); });
|
|
4128
4505
|
},
|
|
4129
4506
|
/**
|
|
4130
4507
|
* Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
@@ -4141,7 +4518,7 @@ exports.InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
4141
4518
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
4142
4519
|
* @summary Invite User
|
|
4143
4520
|
* @param {string} userId
|
|
4144
|
-
* @param {InviteRequest} [inviteRequest]
|
|
4521
|
+
* @param {InviteRequest} [inviteRequest] Slot number of the Invite Message to use when inviting a user.
|
|
4145
4522
|
* @param {*} [options] Override http request option.
|
|
4146
4523
|
* @throws {RequiredError}
|
|
4147
4524
|
*/
|
|
@@ -4159,19 +4536,19 @@ exports.InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
4159
4536
|
return localVarFp.requestInvite(userId, options).then(function (request) { return request(axios, basePath); });
|
|
4160
4537
|
},
|
|
4161
4538
|
/**
|
|
4162
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
4539
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
4163
4540
|
* @summary Reset Invite Message
|
|
4164
4541
|
* @param {string} userId
|
|
4165
4542
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4166
|
-
* @param {number}
|
|
4543
|
+
* @param {number} slot
|
|
4167
4544
|
* @param {*} [options] Override http request option.
|
|
4168
4545
|
* @throws {RequiredError}
|
|
4169
4546
|
*/
|
|
4170
|
-
resetInviteMessage: function (userId, messageType,
|
|
4171
|
-
return localVarFp.resetInviteMessage(userId, messageType,
|
|
4547
|
+
resetInviteMessage: function (userId, messageType, slot, options) {
|
|
4548
|
+
return localVarFp.resetInviteMessage(userId, messageType, slot, options).then(function (request) { return request(axios, basePath); });
|
|
4172
4549
|
},
|
|
4173
4550
|
/**
|
|
4174
|
-
*
|
|
4551
|
+
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
4175
4552
|
* @summary Respond Invite
|
|
4176
4553
|
* @param {string} notificationId
|
|
4177
4554
|
* @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
|
|
@@ -4182,16 +4559,17 @@ exports.InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
4182
4559
|
return localVarFp.respondInvite(notificationId, inviteResponse, options).then(function (request) { return request(axios, basePath); });
|
|
4183
4560
|
},
|
|
4184
4561
|
/**
|
|
4185
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4562
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4186
4563
|
* @summary Update Invite Message
|
|
4187
4564
|
* @param {string} userId
|
|
4188
4565
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4189
|
-
* @param {number}
|
|
4566
|
+
* @param {number} slot
|
|
4567
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
4190
4568
|
* @param {*} [options] Override http request option.
|
|
4191
4569
|
* @throws {RequiredError}
|
|
4192
4570
|
*/
|
|
4193
|
-
updateInviteMessage: function (userId, messageType,
|
|
4194
|
-
return localVarFp.updateInviteMessage(userId, messageType,
|
|
4571
|
+
updateInviteMessage: function (userId, messageType, slot, updateInviteMessageRequest, options) {
|
|
4572
|
+
return localVarFp.updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest, options).then(function (request) { return request(axios, basePath); });
|
|
4195
4573
|
},
|
|
4196
4574
|
};
|
|
4197
4575
|
};
|
|
@@ -4208,17 +4586,17 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
4208
4586
|
}
|
|
4209
4587
|
/**
|
|
4210
4588
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4211
|
-
* @summary Get Invite
|
|
4589
|
+
* @summary Get Invite Message
|
|
4212
4590
|
* @param {string} userId
|
|
4213
4591
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4214
|
-
* @param {number}
|
|
4592
|
+
* @param {number} slot
|
|
4215
4593
|
* @param {*} [options] Override http request option.
|
|
4216
4594
|
* @throws {RequiredError}
|
|
4217
4595
|
* @memberof InviteApi
|
|
4218
4596
|
*/
|
|
4219
|
-
InviteApi.prototype.getInviteMessage = function (userId, messageType,
|
|
4597
|
+
InviteApi.prototype.getInviteMessage = function (userId, messageType, slot, options) {
|
|
4220
4598
|
var _this = this;
|
|
4221
|
-
return exports.InviteApiFp(this.configuration).getInviteMessage(userId, messageType,
|
|
4599
|
+
return exports.InviteApiFp(this.configuration).getInviteMessage(userId, messageType, slot, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4222
4600
|
};
|
|
4223
4601
|
/**
|
|
4224
4602
|
* Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
@@ -4237,7 +4615,7 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
4237
4615
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
4238
4616
|
* @summary Invite User
|
|
4239
4617
|
* @param {string} userId
|
|
4240
|
-
* @param {InviteRequest} [inviteRequest]
|
|
4618
|
+
* @param {InviteRequest} [inviteRequest] Slot number of the Invite Message to use when inviting a user.
|
|
4241
4619
|
* @param {*} [options] Override http request option.
|
|
4242
4620
|
* @throws {RequiredError}
|
|
4243
4621
|
* @memberof InviteApi
|
|
@@ -4259,21 +4637,21 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
4259
4637
|
return exports.InviteApiFp(this.configuration).requestInvite(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4260
4638
|
};
|
|
4261
4639
|
/**
|
|
4262
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
4640
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
4263
4641
|
* @summary Reset Invite Message
|
|
4264
4642
|
* @param {string} userId
|
|
4265
4643
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4266
|
-
* @param {number}
|
|
4644
|
+
* @param {number} slot
|
|
4267
4645
|
* @param {*} [options] Override http request option.
|
|
4268
4646
|
* @throws {RequiredError}
|
|
4269
4647
|
* @memberof InviteApi
|
|
4270
4648
|
*/
|
|
4271
|
-
InviteApi.prototype.resetInviteMessage = function (userId, messageType,
|
|
4649
|
+
InviteApi.prototype.resetInviteMessage = function (userId, messageType, slot, options) {
|
|
4272
4650
|
var _this = this;
|
|
4273
|
-
return exports.InviteApiFp(this.configuration).resetInviteMessage(userId, messageType,
|
|
4651
|
+
return exports.InviteApiFp(this.configuration).resetInviteMessage(userId, messageType, slot, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4274
4652
|
};
|
|
4275
4653
|
/**
|
|
4276
|
-
*
|
|
4654
|
+
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
4277
4655
|
* @summary Respond Invite
|
|
4278
4656
|
* @param {string} notificationId
|
|
4279
4657
|
* @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
|
|
@@ -4286,18 +4664,19 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
4286
4664
|
return exports.InviteApiFp(this.configuration).respondInvite(notificationId, inviteResponse, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4287
4665
|
};
|
|
4288
4666
|
/**
|
|
4289
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4667
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
4290
4668
|
* @summary Update Invite Message
|
|
4291
4669
|
* @param {string} userId
|
|
4292
4670
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
4293
|
-
* @param {number}
|
|
4671
|
+
* @param {number} slot
|
|
4672
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
4294
4673
|
* @param {*} [options] Override http request option.
|
|
4295
4674
|
* @throws {RequiredError}
|
|
4296
4675
|
* @memberof InviteApi
|
|
4297
4676
|
*/
|
|
4298
|
-
InviteApi.prototype.updateInviteMessage = function (userId, messageType,
|
|
4677
|
+
InviteApi.prototype.updateInviteMessage = function (userId, messageType, slot, updateInviteMessageRequest, options) {
|
|
4299
4678
|
var _this = this;
|
|
4300
|
-
return exports.InviteApiFp(this.configuration).updateInviteMessage(userId, messageType,
|
|
4679
|
+
return exports.InviteApiFp(this.configuration).updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4301
4680
|
};
|
|
4302
4681
|
return InviteApi;
|
|
4303
4682
|
}(base_1.BaseAPI));
|
|
@@ -4334,7 +4713,7 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
4334
4713
|
localVarQueryParameter = {};
|
|
4335
4714
|
// authentication apiKeyCookie required
|
|
4336
4715
|
// authentication authCookie required
|
|
4337
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4716
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4338
4717
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4339
4718
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4340
4719
|
return [2 /*return*/, {
|
|
@@ -4365,7 +4744,7 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
4365
4744
|
localVarQueryParameter = {};
|
|
4366
4745
|
// authentication apiKeyCookie required
|
|
4367
4746
|
// authentication authCookie required
|
|
4368
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4747
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4369
4748
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4370
4749
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4371
4750
|
return [2 /*return*/, {
|
|
@@ -4400,7 +4779,7 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
4400
4779
|
localVarQueryParameter = {};
|
|
4401
4780
|
// authentication apiKeyCookie required
|
|
4402
4781
|
// authentication authCookie required
|
|
4403
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4782
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4404
4783
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4405
4784
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4406
4785
|
return [2 /*return*/, {
|
|
@@ -4455,7 +4834,7 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
4455
4834
|
if (offset !== undefined) {
|
|
4456
4835
|
localVarQueryParameter['offset'] = offset;
|
|
4457
4836
|
}
|
|
4458
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4837
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4459
4838
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4460
4839
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4461
4840
|
return [2 /*return*/, {
|
|
@@ -4467,7 +4846,7 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
4467
4846
|
},
|
|
4468
4847
|
/**
|
|
4469
4848
|
* Mark a notification as seen.
|
|
4470
|
-
* @summary Mark As Read
|
|
4849
|
+
* @summary Mark Notification As Read
|
|
4471
4850
|
* @param {string} notificationId
|
|
4472
4851
|
* @param {*} [options] Override http request option.
|
|
4473
4852
|
* @throws {RequiredError}
|
|
@@ -4490,7 +4869,7 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
4490
4869
|
localVarQueryParameter = {};
|
|
4491
4870
|
// authentication apiKeyCookie required
|
|
4492
4871
|
// authentication authCookie required
|
|
4493
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
4872
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4494
4873
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4495
4874
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4496
4875
|
return [2 /*return*/, {
|
|
@@ -4595,7 +4974,7 @@ exports.NotificationsApiFp = function (configuration) {
|
|
|
4595
4974
|
},
|
|
4596
4975
|
/**
|
|
4597
4976
|
* Mark a notification as seen.
|
|
4598
|
-
* @summary Mark As Read
|
|
4977
|
+
* @summary Mark Notification As Read
|
|
4599
4978
|
* @param {string} notificationId
|
|
4600
4979
|
* @param {*} [options] Override http request option.
|
|
4601
4980
|
* @throws {RequiredError}
|
|
@@ -4668,7 +5047,7 @@ exports.NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
|
4668
5047
|
},
|
|
4669
5048
|
/**
|
|
4670
5049
|
* Mark a notification as seen.
|
|
4671
|
-
* @summary Mark As Read
|
|
5050
|
+
* @summary Mark Notification As Read
|
|
4672
5051
|
* @param {string} notificationId
|
|
4673
5052
|
* @param {*} [options] Override http request option.
|
|
4674
5053
|
* @throws {RequiredError}
|
|
@@ -4743,7 +5122,7 @@ var NotificationsApi = /** @class */ (function (_super) {
|
|
|
4743
5122
|
};
|
|
4744
5123
|
/**
|
|
4745
5124
|
* Mark a notification as seen.
|
|
4746
|
-
* @summary Mark As Read
|
|
5125
|
+
* @summary Mark Notification As Read
|
|
4747
5126
|
* @param {string} notificationId
|
|
4748
5127
|
* @param {*} [options] Override http request option.
|
|
4749
5128
|
* @throws {RequiredError}
|
|
@@ -4765,7 +5144,7 @@ exports.PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
4765
5144
|
return {
|
|
4766
5145
|
/**
|
|
4767
5146
|
* Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
|
|
4768
|
-
* @summary Get Assigned
|
|
5147
|
+
* @summary Get Assigned Permissions
|
|
4769
5148
|
* @param {*} [options] Override http request option.
|
|
4770
5149
|
* @throws {RequiredError}
|
|
4771
5150
|
*/
|
|
@@ -4784,7 +5163,7 @@ exports.PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
4784
5163
|
localVarQueryParameter = {};
|
|
4785
5164
|
// authentication apiKeyCookie required
|
|
4786
5165
|
// authentication authCookie required
|
|
4787
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5166
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4788
5167
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4789
5168
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4790
5169
|
return [2 /*return*/, {
|
|
@@ -4819,7 +5198,7 @@ exports.PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
4819
5198
|
localVarQueryParameter = {};
|
|
4820
5199
|
// authentication apiKeyCookie required
|
|
4821
5200
|
// authentication authCookie required
|
|
4822
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5201
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4823
5202
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4824
5203
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4825
5204
|
return [2 /*return*/, {
|
|
@@ -4840,7 +5219,7 @@ exports.PermissionsApiFp = function (configuration) {
|
|
|
4840
5219
|
return {
|
|
4841
5220
|
/**
|
|
4842
5221
|
* Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
|
|
4843
|
-
* @summary Get Assigned
|
|
5222
|
+
* @summary Get Assigned Permissions
|
|
4844
5223
|
* @param {*} [options] Override http request option.
|
|
4845
5224
|
* @throws {RequiredError}
|
|
4846
5225
|
*/
|
|
@@ -4888,7 +5267,7 @@ exports.PermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
4888
5267
|
return {
|
|
4889
5268
|
/**
|
|
4890
5269
|
* Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
|
|
4891
|
-
* @summary Get Assigned
|
|
5270
|
+
* @summary Get Assigned Permissions
|
|
4892
5271
|
* @param {*} [options] Override http request option.
|
|
4893
5272
|
* @throws {RequiredError}
|
|
4894
5273
|
*/
|
|
@@ -4920,7 +5299,7 @@ var PermissionsApi = /** @class */ (function (_super) {
|
|
|
4920
5299
|
}
|
|
4921
5300
|
/**
|
|
4922
5301
|
* Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
|
|
4923
|
-
* @summary Get Assigned
|
|
5302
|
+
* @summary Get Assigned Permissions
|
|
4924
5303
|
* @param {*} [options] Override http request option.
|
|
4925
5304
|
* @throws {RequiredError}
|
|
4926
5305
|
* @memberof PermissionsApi
|
|
@@ -4972,7 +5351,7 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
4972
5351
|
localVarQueryParameter = {};
|
|
4973
5352
|
// authentication apiKeyCookie required
|
|
4974
5353
|
// authentication authCookie required
|
|
4975
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5354
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4976
5355
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4977
5356
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4978
5357
|
return [2 /*return*/, {
|
|
@@ -5007,7 +5386,7 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
5007
5386
|
localVarQueryParameter = {};
|
|
5008
5387
|
// authentication apiKeyCookie required
|
|
5009
5388
|
// authentication authCookie required
|
|
5010
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5389
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5011
5390
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5012
5391
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5013
5392
|
return [2 /*return*/, {
|
|
@@ -5042,7 +5421,7 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
5042
5421
|
localVarQueryParameter = {};
|
|
5043
5422
|
// authentication apiKeyCookie required
|
|
5044
5423
|
// authentication authCookie required
|
|
5045
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5424
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5046
5425
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5047
5426
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5048
5427
|
return [2 /*return*/, {
|
|
@@ -5081,7 +5460,7 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
5081
5460
|
if (targetUserId !== undefined) {
|
|
5082
5461
|
localVarQueryParameter['targetUserId'] = targetUserId;
|
|
5083
5462
|
}
|
|
5084
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5463
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5085
5464
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5086
5465
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5087
5466
|
return [2 /*return*/, {
|
|
@@ -5094,11 +5473,11 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
5094
5473
|
/**
|
|
5095
5474
|
* Moderate a user, e.g. unmute them or show their avatar.
|
|
5096
5475
|
* @summary Moderate User
|
|
5097
|
-
* @param {
|
|
5476
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5098
5477
|
* @param {*} [options] Override http request option.
|
|
5099
5478
|
* @throws {RequiredError}
|
|
5100
5479
|
*/
|
|
5101
|
-
moderateUser: function (
|
|
5480
|
+
moderateUser: function (moderateUserRequest, options) {
|
|
5102
5481
|
if (options === void 0) { options = {}; }
|
|
5103
5482
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5104
5483
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5114,10 +5493,10 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
5114
5493
|
// authentication apiKeyCookie required
|
|
5115
5494
|
// authentication authCookie required
|
|
5116
5495
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5117
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5496
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5118
5497
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5119
5498
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5120
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
5499
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(moderateUserRequest, localVarRequestOptions, configuration);
|
|
5121
5500
|
return [2 /*return*/, {
|
|
5122
5501
|
url: common_1.toPathString(localVarUrlObj),
|
|
5123
5502
|
options: localVarRequestOptions,
|
|
@@ -5126,13 +5505,13 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
5126
5505
|
});
|
|
5127
5506
|
},
|
|
5128
5507
|
/**
|
|
5129
|
-
* Removes a player moderation previously added through `moderateUser`. E.g if you
|
|
5508
|
+
* Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
|
|
5130
5509
|
* @summary Unmoderate User
|
|
5131
|
-
* @param {
|
|
5510
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5132
5511
|
* @param {*} [options] Override http request option.
|
|
5133
5512
|
* @throws {RequiredError}
|
|
5134
5513
|
*/
|
|
5135
|
-
unmoderateUser: function (
|
|
5514
|
+
unmoderateUser: function (moderateUserRequest, options) {
|
|
5136
5515
|
if (options === void 0) { options = {}; }
|
|
5137
5516
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5138
5517
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5148,10 +5527,10 @@ exports.PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
5148
5527
|
// authentication apiKeyCookie required
|
|
5149
5528
|
// authentication authCookie required
|
|
5150
5529
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5151
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5530
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5152
5531
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5153
5532
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5154
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
5533
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(moderateUserRequest, localVarRequestOptions, configuration);
|
|
5155
5534
|
return [2 /*return*/, {
|
|
5156
5535
|
url: common_1.toPathString(localVarUrlObj),
|
|
5157
5536
|
options: localVarRequestOptions,
|
|
@@ -5251,16 +5630,16 @@ exports.PlayermoderationApiFp = function (configuration) {
|
|
|
5251
5630
|
/**
|
|
5252
5631
|
* Moderate a user, e.g. unmute them or show their avatar.
|
|
5253
5632
|
* @summary Moderate User
|
|
5254
|
-
* @param {
|
|
5633
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5255
5634
|
* @param {*} [options] Override http request option.
|
|
5256
5635
|
* @throws {RequiredError}
|
|
5257
5636
|
*/
|
|
5258
|
-
moderateUser: function (
|
|
5637
|
+
moderateUser: function (moderateUserRequest, options) {
|
|
5259
5638
|
return __awaiter(this, void 0, void 0, function () {
|
|
5260
5639
|
var localVarAxiosArgs;
|
|
5261
5640
|
return __generator(this, function (_a) {
|
|
5262
5641
|
switch (_a.label) {
|
|
5263
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.moderateUser(
|
|
5642
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.moderateUser(moderateUserRequest, options)];
|
|
5264
5643
|
case 1:
|
|
5265
5644
|
localVarAxiosArgs = _a.sent();
|
|
5266
5645
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -5269,18 +5648,18 @@ exports.PlayermoderationApiFp = function (configuration) {
|
|
|
5269
5648
|
});
|
|
5270
5649
|
},
|
|
5271
5650
|
/**
|
|
5272
|
-
* Removes a player moderation previously added through `moderateUser`. E.g if you
|
|
5651
|
+
* Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
|
|
5273
5652
|
* @summary Unmoderate User
|
|
5274
|
-
* @param {
|
|
5653
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5275
5654
|
* @param {*} [options] Override http request option.
|
|
5276
5655
|
* @throws {RequiredError}
|
|
5277
5656
|
*/
|
|
5278
|
-
unmoderateUser: function (
|
|
5657
|
+
unmoderateUser: function (moderateUserRequest, options) {
|
|
5279
5658
|
return __awaiter(this, void 0, void 0, function () {
|
|
5280
5659
|
var localVarAxiosArgs;
|
|
5281
5660
|
return __generator(this, function (_a) {
|
|
5282
5661
|
switch (_a.label) {
|
|
5283
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unmoderateUser(
|
|
5662
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unmoderateUser(moderateUserRequest, options)];
|
|
5284
5663
|
case 1:
|
|
5285
5664
|
localVarAxiosArgs = _a.sent();
|
|
5286
5665
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -5340,22 +5719,22 @@ exports.PlayermoderationApiFactory = function (configuration, basePath, axios) {
|
|
|
5340
5719
|
/**
|
|
5341
5720
|
* Moderate a user, e.g. unmute them or show their avatar.
|
|
5342
5721
|
* @summary Moderate User
|
|
5343
|
-
* @param {
|
|
5722
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5344
5723
|
* @param {*} [options] Override http request option.
|
|
5345
5724
|
* @throws {RequiredError}
|
|
5346
5725
|
*/
|
|
5347
|
-
moderateUser: function (
|
|
5348
|
-
return localVarFp.moderateUser(
|
|
5726
|
+
moderateUser: function (moderateUserRequest, options) {
|
|
5727
|
+
return localVarFp.moderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
|
|
5349
5728
|
},
|
|
5350
5729
|
/**
|
|
5351
|
-
* Removes a player moderation previously added through `moderateUser`. E.g if you
|
|
5730
|
+
* Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
|
|
5352
5731
|
* @summary Unmoderate User
|
|
5353
|
-
* @param {
|
|
5732
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5354
5733
|
* @param {*} [options] Override http request option.
|
|
5355
5734
|
* @throws {RequiredError}
|
|
5356
5735
|
*/
|
|
5357
|
-
unmoderateUser: function (
|
|
5358
|
-
return localVarFp.unmoderateUser(
|
|
5736
|
+
unmoderateUser: function (moderateUserRequest, options) {
|
|
5737
|
+
return localVarFp.unmoderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
|
|
5359
5738
|
},
|
|
5360
5739
|
};
|
|
5361
5740
|
};
|
|
@@ -5421,26 +5800,26 @@ var PlayermoderationApi = /** @class */ (function (_super) {
|
|
|
5421
5800
|
/**
|
|
5422
5801
|
* Moderate a user, e.g. unmute them or show their avatar.
|
|
5423
5802
|
* @summary Moderate User
|
|
5424
|
-
* @param {
|
|
5803
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5425
5804
|
* @param {*} [options] Override http request option.
|
|
5426
5805
|
* @throws {RequiredError}
|
|
5427
5806
|
* @memberof PlayermoderationApi
|
|
5428
5807
|
*/
|
|
5429
|
-
PlayermoderationApi.prototype.moderateUser = function (
|
|
5808
|
+
PlayermoderationApi.prototype.moderateUser = function (moderateUserRequest, options) {
|
|
5430
5809
|
var _this = this;
|
|
5431
|
-
return exports.PlayermoderationApiFp(this.configuration).moderateUser(
|
|
5810
|
+
return exports.PlayermoderationApiFp(this.configuration).moderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5432
5811
|
};
|
|
5433
5812
|
/**
|
|
5434
|
-
* Removes a player moderation previously added through `moderateUser`. E.g if you
|
|
5813
|
+
* Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
|
|
5435
5814
|
* @summary Unmoderate User
|
|
5436
|
-
* @param {
|
|
5815
|
+
* @param {ModerateUserRequest} [moderateUserRequest]
|
|
5437
5816
|
* @param {*} [options] Override http request option.
|
|
5438
5817
|
* @throws {RequiredError}
|
|
5439
5818
|
* @memberof PlayermoderationApi
|
|
5440
5819
|
*/
|
|
5441
|
-
PlayermoderationApi.prototype.unmoderateUser = function (
|
|
5820
|
+
PlayermoderationApi.prototype.unmoderateUser = function (moderateUserRequest, options) {
|
|
5442
5821
|
var _this = this;
|
|
5443
|
-
return exports.PlayermoderationApiFp(this.configuration).unmoderateUser(
|
|
5822
|
+
return exports.PlayermoderationApiFp(this.configuration).unmoderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5444
5823
|
};
|
|
5445
5824
|
return PlayermoderationApi;
|
|
5446
5825
|
}(base_1.BaseAPI));
|
|
@@ -5454,7 +5833,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5454
5833
|
return {
|
|
5455
5834
|
/**
|
|
5456
5835
|
* Fetches the CSS code to the frontend React website.
|
|
5457
|
-
* @summary Download
|
|
5836
|
+
* @summary Download CSS
|
|
5458
5837
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5459
5838
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5460
5839
|
* @param {*} [options] Override http request option.
|
|
@@ -5465,7 +5844,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5465
5844
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5466
5845
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5467
5846
|
return __generator(this, function (_a) {
|
|
5468
|
-
localVarPath = "/css/app.
|
|
5847
|
+
localVarPath = "/css/app.css";
|
|
5469
5848
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5470
5849
|
if (configuration) {
|
|
5471
5850
|
baseOptions = configuration.baseOptions;
|
|
@@ -5479,7 +5858,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5479
5858
|
if (branch !== undefined) {
|
|
5480
5859
|
localVarQueryParameter['branch'] = branch;
|
|
5481
5860
|
}
|
|
5482
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5861
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5483
5862
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5484
5863
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5485
5864
|
return [2 /*return*/, {
|
|
@@ -5508,7 +5887,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5508
5887
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5509
5888
|
localVarHeaderParameter = {};
|
|
5510
5889
|
localVarQueryParameter = {};
|
|
5511
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5890
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5512
5891
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5513
5892
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5514
5893
|
return [2 /*return*/, {
|
|
@@ -5519,7 +5898,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5519
5898
|
});
|
|
5520
5899
|
},
|
|
5521
5900
|
/**
|
|
5522
|
-
* Returns
|
|
5901
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
5523
5902
|
* @summary Current Online Users
|
|
5524
5903
|
* @param {*} [options] Override http request option.
|
|
5525
5904
|
* @throws {RequiredError}
|
|
@@ -5537,7 +5916,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5537
5916
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5538
5917
|
localVarHeaderParameter = {};
|
|
5539
5918
|
localVarQueryParameter = {};
|
|
5540
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5919
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5541
5920
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5542
5921
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5543
5922
|
return [2 /*return*/, {
|
|
@@ -5567,7 +5946,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5567
5946
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5568
5947
|
localVarHeaderParameter = {};
|
|
5569
5948
|
localVarQueryParameter = {};
|
|
5570
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5949
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5571
5950
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5572
5951
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5573
5952
|
return [2 /*return*/, {
|
|
@@ -5579,7 +5958,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5579
5958
|
},
|
|
5580
5959
|
/**
|
|
5581
5960
|
* Fetches the JavaScript code to the frontend React website.
|
|
5582
|
-
* @summary Download
|
|
5961
|
+
* @summary Download JavaScript
|
|
5583
5962
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5584
5963
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5585
5964
|
* @param {*} [options] Override http request option.
|
|
@@ -5604,7 +5983,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5604
5983
|
if (branch !== undefined) {
|
|
5605
5984
|
localVarQueryParameter['branch'] = branch;
|
|
5606
5985
|
}
|
|
5607
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
5986
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5608
5987
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5609
5988
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5610
5989
|
return [2 /*return*/, {
|
|
@@ -5615,7 +5994,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5615
5994
|
});
|
|
5616
5995
|
},
|
|
5617
5996
|
/**
|
|
5618
|
-
* Returns
|
|
5997
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
5619
5998
|
* @summary Current System Time
|
|
5620
5999
|
* @param {*} [options] Override http request option.
|
|
5621
6000
|
* @throws {RequiredError}
|
|
@@ -5633,7 +6012,7 @@ exports.SystemApiAxiosParamCreator = function (configuration) {
|
|
|
5633
6012
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5634
6013
|
localVarHeaderParameter = {};
|
|
5635
6014
|
localVarQueryParameter = {};
|
|
5636
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6015
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5637
6016
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5638
6017
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5639
6018
|
return [2 /*return*/, {
|
|
@@ -5654,7 +6033,7 @@ exports.SystemApiFp = function (configuration) {
|
|
|
5654
6033
|
return {
|
|
5655
6034
|
/**
|
|
5656
6035
|
* Fetches the CSS code to the frontend React website.
|
|
5657
|
-
* @summary Download
|
|
6036
|
+
* @summary Download CSS
|
|
5658
6037
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5659
6038
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5660
6039
|
* @param {*} [options] Override http request option.
|
|
@@ -5693,7 +6072,7 @@ exports.SystemApiFp = function (configuration) {
|
|
|
5693
6072
|
});
|
|
5694
6073
|
},
|
|
5695
6074
|
/**
|
|
5696
|
-
* Returns
|
|
6075
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
5697
6076
|
* @summary Current Online Users
|
|
5698
6077
|
* @param {*} [options] Override http request option.
|
|
5699
6078
|
* @throws {RequiredError}
|
|
@@ -5733,7 +6112,7 @@ exports.SystemApiFp = function (configuration) {
|
|
|
5733
6112
|
},
|
|
5734
6113
|
/**
|
|
5735
6114
|
* Fetches the JavaScript code to the frontend React website.
|
|
5736
|
-
* @summary Download
|
|
6115
|
+
* @summary Download JavaScript
|
|
5737
6116
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5738
6117
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5739
6118
|
* @param {*} [options] Override http request option.
|
|
@@ -5753,7 +6132,7 @@ exports.SystemApiFp = function (configuration) {
|
|
|
5753
6132
|
});
|
|
5754
6133
|
},
|
|
5755
6134
|
/**
|
|
5756
|
-
* Returns
|
|
6135
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
5757
6136
|
* @summary Current System Time
|
|
5758
6137
|
* @param {*} [options] Override http request option.
|
|
5759
6138
|
* @throws {RequiredError}
|
|
@@ -5782,7 +6161,7 @@ exports.SystemApiFactory = function (configuration, basePath, axios) {
|
|
|
5782
6161
|
return {
|
|
5783
6162
|
/**
|
|
5784
6163
|
* Fetches the CSS code to the frontend React website.
|
|
5785
|
-
* @summary Download
|
|
6164
|
+
* @summary Download CSS
|
|
5786
6165
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5787
6166
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5788
6167
|
* @param {*} [options] Override http request option.
|
|
@@ -5801,7 +6180,7 @@ exports.SystemApiFactory = function (configuration, basePath, axios) {
|
|
|
5801
6180
|
return localVarFp.getConfig(options).then(function (request) { return request(axios, basePath); });
|
|
5802
6181
|
},
|
|
5803
6182
|
/**
|
|
5804
|
-
* Returns
|
|
6183
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
5805
6184
|
* @summary Current Online Users
|
|
5806
6185
|
* @param {*} [options] Override http request option.
|
|
5807
6186
|
* @throws {RequiredError}
|
|
@@ -5821,7 +6200,7 @@ exports.SystemApiFactory = function (configuration, basePath, axios) {
|
|
|
5821
6200
|
},
|
|
5822
6201
|
/**
|
|
5823
6202
|
* Fetches the JavaScript code to the frontend React website.
|
|
5824
|
-
* @summary Download
|
|
6203
|
+
* @summary Download JavaScript
|
|
5825
6204
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5826
6205
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5827
6206
|
* @param {*} [options] Override http request option.
|
|
@@ -5831,7 +6210,7 @@ exports.SystemApiFactory = function (configuration, basePath, axios) {
|
|
|
5831
6210
|
return localVarFp.getJavaScript(variant, branch, options).then(function (request) { return request(axios, basePath); });
|
|
5832
6211
|
},
|
|
5833
6212
|
/**
|
|
5834
|
-
* Returns
|
|
6213
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
5835
6214
|
* @summary Current System Time
|
|
5836
6215
|
* @param {*} [options] Override http request option.
|
|
5837
6216
|
* @throws {RequiredError}
|
|
@@ -5854,7 +6233,7 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
5854
6233
|
}
|
|
5855
6234
|
/**
|
|
5856
6235
|
* Fetches the CSS code to the frontend React website.
|
|
5857
|
-
* @summary Download
|
|
6236
|
+
* @summary Download CSS
|
|
5858
6237
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5859
6238
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5860
6239
|
* @param {*} [options] Override http request option.
|
|
@@ -5877,7 +6256,7 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
5877
6256
|
return exports.SystemApiFp(this.configuration).getConfig(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5878
6257
|
};
|
|
5879
6258
|
/**
|
|
5880
|
-
* Returns
|
|
6259
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
5881
6260
|
* @summary Current Online Users
|
|
5882
6261
|
* @param {*} [options] Override http request option.
|
|
5883
6262
|
* @throws {RequiredError}
|
|
@@ -5901,7 +6280,7 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
5901
6280
|
};
|
|
5902
6281
|
/**
|
|
5903
6282
|
* Fetches the JavaScript code to the frontend React website.
|
|
5904
|
-
* @summary Download
|
|
6283
|
+
* @summary Download JavaScript
|
|
5905
6284
|
* @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
|
|
5906
6285
|
* @param {string} [branch] Specifies which git branch the site should load frontend source code from.
|
|
5907
6286
|
* @param {*} [options] Override http request option.
|
|
@@ -5913,7 +6292,7 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
5913
6292
|
return exports.SystemApiFp(this.configuration).getJavaScript(variant, branch, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5914
6293
|
};
|
|
5915
6294
|
/**
|
|
5916
|
-
* Returns
|
|
6295
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
5917
6296
|
* @summary Current System Time
|
|
5918
6297
|
* @param {*} [options] Override http request option.
|
|
5919
6298
|
* @throws {RequiredError}
|
|
@@ -5958,7 +6337,7 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5958
6337
|
localVarQueryParameter = {};
|
|
5959
6338
|
// authentication apiKeyCookie required
|
|
5960
6339
|
// authentication authCookie required
|
|
5961
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6340
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5962
6341
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5963
6342
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5964
6343
|
return [2 /*return*/, {
|
|
@@ -5993,7 +6372,7 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5993
6372
|
localVarQueryParameter = {};
|
|
5994
6373
|
// authentication apiKeyCookie required
|
|
5995
6374
|
// authentication authCookie required
|
|
5996
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6375
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5997
6376
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5998
6377
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5999
6378
|
return [2 /*return*/, {
|
|
@@ -6040,7 +6419,7 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6040
6419
|
if (offset !== undefined) {
|
|
6041
6420
|
localVarQueryParameter['offset'] = offset;
|
|
6042
6421
|
}
|
|
6043
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6422
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6044
6423
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6045
6424
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6046
6425
|
return [2 /*return*/, {
|
|
@@ -6054,11 +6433,11 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6054
6433
|
* Update a users information such as the email and birthday.
|
|
6055
6434
|
* @summary Update User Info
|
|
6056
6435
|
* @param {string} userId
|
|
6057
|
-
* @param {
|
|
6436
|
+
* @param {UpdateUserRequest} [updateUserRequest]
|
|
6058
6437
|
* @param {*} [options] Override http request option.
|
|
6059
6438
|
* @throws {RequiredError}
|
|
6060
6439
|
*/
|
|
6061
|
-
updateUser: function (userId,
|
|
6440
|
+
updateUser: function (userId, updateUserRequest, options) {
|
|
6062
6441
|
if (options === void 0) { options = {}; }
|
|
6063
6442
|
return __awaiter(_this, void 0, void 0, function () {
|
|
6064
6443
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -6077,10 +6456,10 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6077
6456
|
// authentication apiKeyCookie required
|
|
6078
6457
|
// authentication authCookie required
|
|
6079
6458
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6080
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6459
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6081
6460
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6082
6461
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6083
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
6462
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateUserRequest, localVarRequestOptions, configuration);
|
|
6084
6463
|
return [2 /*return*/, {
|
|
6085
6464
|
url: common_1.toPathString(localVarUrlObj),
|
|
6086
6465
|
options: localVarRequestOptions,
|
|
@@ -6164,16 +6543,16 @@ exports.UsersApiFp = function (configuration) {
|
|
|
6164
6543
|
* Update a users information such as the email and birthday.
|
|
6165
6544
|
* @summary Update User Info
|
|
6166
6545
|
* @param {string} userId
|
|
6167
|
-
* @param {
|
|
6546
|
+
* @param {UpdateUserRequest} [updateUserRequest]
|
|
6168
6547
|
* @param {*} [options] Override http request option.
|
|
6169
6548
|
* @throws {RequiredError}
|
|
6170
6549
|
*/
|
|
6171
|
-
updateUser: function (userId,
|
|
6550
|
+
updateUser: function (userId, updateUserRequest, options) {
|
|
6172
6551
|
return __awaiter(this, void 0, void 0, function () {
|
|
6173
6552
|
var localVarAxiosArgs;
|
|
6174
6553
|
return __generator(this, function (_a) {
|
|
6175
6554
|
switch (_a.label) {
|
|
6176
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateUser(userId,
|
|
6555
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateUser(userId, updateUserRequest, options)];
|
|
6177
6556
|
case 1:
|
|
6178
6557
|
localVarAxiosArgs = _a.sent();
|
|
6179
6558
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -6227,12 +6606,12 @@ exports.UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
6227
6606
|
* Update a users information such as the email and birthday.
|
|
6228
6607
|
* @summary Update User Info
|
|
6229
6608
|
* @param {string} userId
|
|
6230
|
-
* @param {
|
|
6609
|
+
* @param {UpdateUserRequest} [updateUserRequest]
|
|
6231
6610
|
* @param {*} [options] Override http request option.
|
|
6232
6611
|
* @throws {RequiredError}
|
|
6233
6612
|
*/
|
|
6234
|
-
updateUser: function (userId,
|
|
6235
|
-
return localVarFp.updateUser(userId,
|
|
6613
|
+
updateUser: function (userId, updateUserRequest, options) {
|
|
6614
|
+
return localVarFp.updateUser(userId, updateUserRequest, options).then(function (request) { return request(axios, basePath); });
|
|
6236
6615
|
},
|
|
6237
6616
|
};
|
|
6238
6617
|
};
|
|
@@ -6290,14 +6669,14 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
6290
6669
|
* Update a users information such as the email and birthday.
|
|
6291
6670
|
* @summary Update User Info
|
|
6292
6671
|
* @param {string} userId
|
|
6293
|
-
* @param {
|
|
6672
|
+
* @param {UpdateUserRequest} [updateUserRequest]
|
|
6294
6673
|
* @param {*} [options] Override http request option.
|
|
6295
6674
|
* @throws {RequiredError}
|
|
6296
6675
|
* @memberof UsersApi
|
|
6297
6676
|
*/
|
|
6298
|
-
UsersApi.prototype.updateUser = function (userId,
|
|
6677
|
+
UsersApi.prototype.updateUser = function (userId, updateUserRequest, options) {
|
|
6299
6678
|
var _this = this;
|
|
6300
|
-
return exports.UsersApiFp(this.configuration).updateUser(userId,
|
|
6679
|
+
return exports.UsersApiFp(this.configuration).updateUser(userId, updateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6301
6680
|
};
|
|
6302
6681
|
return UsersApi;
|
|
6303
6682
|
}(base_1.BaseAPI));
|
|
@@ -6312,11 +6691,11 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6312
6691
|
/**
|
|
6313
6692
|
* Create a new world. This endpoint requires `assetUrl` to be a valid File object with `.vrcw` file extension, and `imageUrl` to be a valid File object with an image file extension.
|
|
6314
6693
|
* @summary Create World
|
|
6315
|
-
* @param {
|
|
6694
|
+
* @param {CreateWorldRequest} [createWorldRequest]
|
|
6316
6695
|
* @param {*} [options] Override http request option.
|
|
6317
6696
|
* @throws {RequiredError}
|
|
6318
6697
|
*/
|
|
6319
|
-
createWorld: function (
|
|
6698
|
+
createWorld: function (createWorldRequest, options) {
|
|
6320
6699
|
if (options === void 0) { options = {}; }
|
|
6321
6700
|
return __awaiter(_this, void 0, void 0, function () {
|
|
6322
6701
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -6330,10 +6709,10 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6330
6709
|
localVarHeaderParameter = {};
|
|
6331
6710
|
localVarQueryParameter = {};
|
|
6332
6711
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6333
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6712
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6334
6713
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6335
6714
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6336
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
6715
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createWorldRequest, localVarRequestOptions, configuration);
|
|
6337
6716
|
return [2 /*return*/, {
|
|
6338
6717
|
url: common_1.toPathString(localVarUrlObj),
|
|
6339
6718
|
options: localVarRequestOptions,
|
|
@@ -6366,7 +6745,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6366
6745
|
localVarQueryParameter = {};
|
|
6367
6746
|
// authentication apiKeyCookie required
|
|
6368
6747
|
// authentication authCookie required
|
|
6369
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6748
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6370
6749
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6371
6750
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6372
6751
|
return [2 /*return*/, {
|
|
@@ -6445,7 +6824,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6445
6824
|
if (platform !== undefined) {
|
|
6446
6825
|
localVarQueryParameter['platform'] = platform;
|
|
6447
6826
|
}
|
|
6448
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6827
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6449
6828
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6450
6829
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6451
6830
|
return [2 /*return*/, {
|
|
@@ -6528,7 +6907,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6528
6907
|
if (userId !== undefined) {
|
|
6529
6908
|
localVarQueryParameter['userId'] = userId;
|
|
6530
6909
|
}
|
|
6531
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6910
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6532
6911
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6533
6912
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6534
6913
|
return [2 /*return*/, {
|
|
@@ -6611,7 +6990,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6611
6990
|
if (userId !== undefined) {
|
|
6612
6991
|
localVarQueryParameter['userId'] = userId;
|
|
6613
6992
|
}
|
|
6614
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
6993
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6615
6994
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6616
6995
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6617
6996
|
return [2 /*return*/, {
|
|
@@ -6645,7 +7024,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6645
7024
|
localVarHeaderParameter = {};
|
|
6646
7025
|
localVarQueryParameter = {};
|
|
6647
7026
|
// authentication apiKeyCookie required
|
|
6648
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7027
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6649
7028
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6650
7029
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6651
7030
|
return [2 /*return*/, {
|
|
@@ -6684,7 +7063,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6684
7063
|
localVarQueryParameter = {};
|
|
6685
7064
|
// authentication apiKeyCookie required
|
|
6686
7065
|
// authentication authCookie required
|
|
6687
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7066
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6688
7067
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6689
7068
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6690
7069
|
return [2 /*return*/, {
|
|
@@ -6720,7 +7099,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6720
7099
|
localVarQueryParameter = {};
|
|
6721
7100
|
// authentication apiKeyCookie required
|
|
6722
7101
|
// authentication authCookie required
|
|
6723
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7102
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6724
7103
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6725
7104
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6726
7105
|
return [2 /*return*/, {
|
|
@@ -6755,7 +7134,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6755
7134
|
localVarQueryParameter = {};
|
|
6756
7135
|
// authentication apiKeyCookie required
|
|
6757
7136
|
// authentication authCookie required
|
|
6758
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7137
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6759
7138
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6760
7139
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6761
7140
|
return [2 /*return*/, {
|
|
@@ -6790,7 +7169,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6790
7169
|
localVarQueryParameter = {};
|
|
6791
7170
|
// authentication apiKeyCookie required
|
|
6792
7171
|
// authentication authCookie required
|
|
6793
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7172
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6794
7173
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6795
7174
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6796
7175
|
return [2 /*return*/, {
|
|
@@ -6877,7 +7256,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6877
7256
|
if (platform !== undefined) {
|
|
6878
7257
|
localVarQueryParameter['platform'] = platform;
|
|
6879
7258
|
}
|
|
6880
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7259
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6881
7260
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6882
7261
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6883
7262
|
return [2 /*return*/, {
|
|
@@ -6912,7 +7291,7 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6912
7291
|
localVarQueryParameter = {};
|
|
6913
7292
|
// authentication apiKeyCookie required
|
|
6914
7293
|
// authentication authCookie required
|
|
6915
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7294
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6916
7295
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6917
7296
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6918
7297
|
return [2 /*return*/, {
|
|
@@ -6926,11 +7305,11 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6926
7305
|
* Update information about a specific World.
|
|
6927
7306
|
* @summary Update World
|
|
6928
7307
|
* @param {string} worldId
|
|
6929
|
-
* @param {
|
|
7308
|
+
* @param {UpdateWorldRequest} [updateWorldRequest]
|
|
6930
7309
|
* @param {*} [options] Override http request option.
|
|
6931
7310
|
* @throws {RequiredError}
|
|
6932
7311
|
*/
|
|
6933
|
-
updateWorld: function (worldId,
|
|
7312
|
+
updateWorld: function (worldId, updateWorldRequest, options) {
|
|
6934
7313
|
if (options === void 0) { options = {}; }
|
|
6935
7314
|
return __awaiter(_this, void 0, void 0, function () {
|
|
6936
7315
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -6949,10 +7328,10 @@ exports.WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
6949
7328
|
// authentication apiKeyCookie required
|
|
6950
7329
|
// authentication authCookie required
|
|
6951
7330
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6952
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
7331
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6953
7332
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6954
7333
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6955
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
7334
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateWorldRequest, localVarRequestOptions, configuration);
|
|
6956
7335
|
return [2 /*return*/, {
|
|
6957
7336
|
url: common_1.toPathString(localVarUrlObj),
|
|
6958
7337
|
options: localVarRequestOptions,
|
|
@@ -6972,16 +7351,16 @@ exports.WorldsApiFp = function (configuration) {
|
|
|
6972
7351
|
/**
|
|
6973
7352
|
* Create a new world. This endpoint requires `assetUrl` to be a valid File object with `.vrcw` file extension, and `imageUrl` to be a valid File object with an image file extension.
|
|
6974
7353
|
* @summary Create World
|
|
6975
|
-
* @param {
|
|
7354
|
+
* @param {CreateWorldRequest} [createWorldRequest]
|
|
6976
7355
|
* @param {*} [options] Override http request option.
|
|
6977
7356
|
* @throws {RequiredError}
|
|
6978
7357
|
*/
|
|
6979
|
-
createWorld: function (
|
|
7358
|
+
createWorld: function (createWorldRequest, options) {
|
|
6980
7359
|
return __awaiter(this, void 0, void 0, function () {
|
|
6981
7360
|
var localVarAxiosArgs;
|
|
6982
7361
|
return __generator(this, function (_a) {
|
|
6983
7362
|
switch (_a.label) {
|
|
6984
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createWorld(
|
|
7363
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createWorld(createWorldRequest, options)];
|
|
6985
7364
|
case 1:
|
|
6986
7365
|
localVarAxiosArgs = _a.sent();
|
|
6987
7366
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -7263,16 +7642,16 @@ exports.WorldsApiFp = function (configuration) {
|
|
|
7263
7642
|
* Update information about a specific World.
|
|
7264
7643
|
* @summary Update World
|
|
7265
7644
|
* @param {string} worldId
|
|
7266
|
-
* @param {
|
|
7645
|
+
* @param {UpdateWorldRequest} [updateWorldRequest]
|
|
7267
7646
|
* @param {*} [options] Override http request option.
|
|
7268
7647
|
* @throws {RequiredError}
|
|
7269
7648
|
*/
|
|
7270
|
-
updateWorld: function (worldId,
|
|
7649
|
+
updateWorld: function (worldId, updateWorldRequest, options) {
|
|
7271
7650
|
return __awaiter(this, void 0, void 0, function () {
|
|
7272
7651
|
var localVarAxiosArgs;
|
|
7273
7652
|
return __generator(this, function (_a) {
|
|
7274
7653
|
switch (_a.label) {
|
|
7275
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateWorld(worldId,
|
|
7654
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateWorld(worldId, updateWorldRequest, options)];
|
|
7276
7655
|
case 1:
|
|
7277
7656
|
localVarAxiosArgs = _a.sent();
|
|
7278
7657
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -7292,12 +7671,12 @@ exports.WorldsApiFactory = function (configuration, basePath, axios) {
|
|
|
7292
7671
|
/**
|
|
7293
7672
|
* Create a new world. This endpoint requires `assetUrl` to be a valid File object with `.vrcw` file extension, and `imageUrl` to be a valid File object with an image file extension.
|
|
7294
7673
|
* @summary Create World
|
|
7295
|
-
* @param {
|
|
7674
|
+
* @param {CreateWorldRequest} [createWorldRequest]
|
|
7296
7675
|
* @param {*} [options] Override http request option.
|
|
7297
7676
|
* @throws {RequiredError}
|
|
7298
7677
|
*/
|
|
7299
|
-
createWorld: function (
|
|
7300
|
-
return localVarFp.createWorld(
|
|
7678
|
+
createWorld: function (createWorldRequest, options) {
|
|
7679
|
+
return localVarFp.createWorld(createWorldRequest, options).then(function (request) { return request(axios, basePath); });
|
|
7301
7680
|
},
|
|
7302
7681
|
/**
|
|
7303
7682
|
* Delete a world. Notice a world is never fully \"deleted\", only its ReleaseStatus is set to \"hidden\" and the linked Files are deleted. The WorldID is permanently reserved.
|
|
@@ -7463,12 +7842,12 @@ exports.WorldsApiFactory = function (configuration, basePath, axios) {
|
|
|
7463
7842
|
* Update information about a specific World.
|
|
7464
7843
|
* @summary Update World
|
|
7465
7844
|
* @param {string} worldId
|
|
7466
|
-
* @param {
|
|
7845
|
+
* @param {UpdateWorldRequest} [updateWorldRequest]
|
|
7467
7846
|
* @param {*} [options] Override http request option.
|
|
7468
7847
|
* @throws {RequiredError}
|
|
7469
7848
|
*/
|
|
7470
|
-
updateWorld: function (worldId,
|
|
7471
|
-
return localVarFp.updateWorld(worldId,
|
|
7849
|
+
updateWorld: function (worldId, updateWorldRequest, options) {
|
|
7850
|
+
return localVarFp.updateWorld(worldId, updateWorldRequest, options).then(function (request) { return request(axios, basePath); });
|
|
7472
7851
|
},
|
|
7473
7852
|
};
|
|
7474
7853
|
};
|
|
@@ -7486,14 +7865,14 @@ var WorldsApi = /** @class */ (function (_super) {
|
|
|
7486
7865
|
/**
|
|
7487
7866
|
* Create a new world. This endpoint requires `assetUrl` to be a valid File object with `.vrcw` file extension, and `imageUrl` to be a valid File object with an image file extension.
|
|
7488
7867
|
* @summary Create World
|
|
7489
|
-
* @param {
|
|
7868
|
+
* @param {CreateWorldRequest} [createWorldRequest]
|
|
7490
7869
|
* @param {*} [options] Override http request option.
|
|
7491
7870
|
* @throws {RequiredError}
|
|
7492
7871
|
* @memberof WorldsApi
|
|
7493
7872
|
*/
|
|
7494
|
-
WorldsApi.prototype.createWorld = function (
|
|
7873
|
+
WorldsApi.prototype.createWorld = function (createWorldRequest, options) {
|
|
7495
7874
|
var _this = this;
|
|
7496
|
-
return exports.WorldsApiFp(this.configuration).createWorld(
|
|
7875
|
+
return exports.WorldsApiFp(this.configuration).createWorld(createWorldRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7497
7876
|
};
|
|
7498
7877
|
/**
|
|
7499
7878
|
* Delete a world. Notice a world is never fully \"deleted\", only its ReleaseStatus is set to \"hidden\" and the linked Files are deleted. The WorldID is permanently reserved.
|
|
@@ -7681,14 +8060,14 @@ var WorldsApi = /** @class */ (function (_super) {
|
|
|
7681
8060
|
* Update information about a specific World.
|
|
7682
8061
|
* @summary Update World
|
|
7683
8062
|
* @param {string} worldId
|
|
7684
|
-
* @param {
|
|
8063
|
+
* @param {UpdateWorldRequest} [updateWorldRequest]
|
|
7685
8064
|
* @param {*} [options] Override http request option.
|
|
7686
8065
|
* @throws {RequiredError}
|
|
7687
8066
|
* @memberof WorldsApi
|
|
7688
8067
|
*/
|
|
7689
|
-
WorldsApi.prototype.updateWorld = function (worldId,
|
|
8068
|
+
WorldsApi.prototype.updateWorld = function (worldId, updateWorldRequest, options) {
|
|
7690
8069
|
var _this = this;
|
|
7691
|
-
return exports.WorldsApiFp(this.configuration).updateWorld(worldId,
|
|
8070
|
+
return exports.WorldsApiFp(this.configuration).updateWorld(worldId, updateWorldRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7692
8071
|
};
|
|
7693
8072
|
return WorldsApi;
|
|
7694
8073
|
}(base_1.BaseAPI));
|