vrchat 1.19.1 → 1.19.3

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/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.19.1
7
+ * The version of the OpenAPI document: 1.19.3
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -74,9 +74,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  }
75
75
  };
76
76
  Object.defineProperty(exports, "__esModule", { value: true });
77
- exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.ProductType = exports.ProductListingType = exports.PlayerModerationType = exports.PerformanceRatings = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InstanceType = exports.InstanceRegion = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupPostVisibility = exports.GroupPermissions = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = exports.AgeVerificationStatus = void 0;
78
- 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.JamsApi = exports.JamsApiFactory = exports.JamsApiFp = exports.JamsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = void 0;
79
- exports.WorldsApi = void 0;
77
+ exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.ProductType = exports.ProductListingType = exports.PlayerModerationType = exports.PerformanceRatings = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InstanceType = exports.InstanceRegion = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupPostVisibility = exports.GroupPermissions = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.AgeVerificationStatus = void 0;
78
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PrintsApi = exports.PrintsApiFactory = exports.PrintsApiFp = exports.PrintsApiAxiosParamCreator = 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.JamsApi = exports.JamsApiFactory = exports.JamsApiFp = exports.JamsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = void 0;
79
+ exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = void 0;
80
80
  var axios_1 = require("axios");
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -98,17 +98,6 @@ exports.AgeVerificationStatus = {
98
98
  verified: 'verified',
99
99
  plus18: '18+'
100
100
  };
101
- /**
102
- * Used to identify which API deployment cluster is currently responding. `blue` and `green` are used by Production. `grape`and `cherry` are used during Development. [Blue Green Deployment by Martin Fowler](https://martinfowler.com/bliki/BlueGreenDeployment.html)
103
- * @export
104
- * @enum {string}
105
- */
106
- exports.DeploymentGroup = {
107
- Blue: 'blue',
108
- Green: 'green',
109
- Grape: 'grape',
110
- Cherry: 'cherry'
111
- };
112
101
  /**
113
102
  * \"none\" User is a normal user \"trusted\" Unknown \"internal\" Is a VRChat Developer \"moderator\" Is a VRChat Moderator Staff can hide their developerType at will.
114
103
  * @export
@@ -529,6 +518,36 @@ exports.UserStatus = {
529
518
  var AuthenticationApiAxiosParamCreator = function (configuration) {
530
519
  var _this = this;
531
520
  return {
521
+ /**
522
+ * Cancels the sequence for enabling time-based 2FA.
523
+ * @summary Cancel pending enabling of time-based 2FA codes
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ cancelPending2FA: function (options) {
528
+ if (options === void 0) { options = {}; }
529
+ return __awaiter(_this, void 0, void 0, function () {
530
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
531
+ return __generator(this, function (_a) {
532
+ localVarPath = "/auth/twofactorauth/totp/pending";
533
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
534
+ if (configuration) {
535
+ baseOptions = configuration.baseOptions;
536
+ }
537
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
538
+ localVarHeaderParameter = {};
539
+ localVarQueryParameter = {};
540
+ // authentication authCookie required
541
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
542
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
543
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
544
+ return [2 /*return*/, {
545
+ url: (0, common_1.toPathString)(localVarUrlObj),
546
+ options: localVarRequestOptions,
547
+ }];
548
+ });
549
+ });
550
+ },
532
551
  /**
533
552
  * Checks if a user by a given `username`, `displayName` or `email` exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the `excludeUserId` is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** `username`, `displayName` **or** `email` query parameter. Although they can be combined - in addition with `excludeUserId` (generally to exclude yourself) - to further fine-tune the search.
534
553
  * @summary Check User Exists
@@ -574,6 +593,47 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
574
593
  });
575
594
  });
576
595
  },
596
+ /**
597
+ * Confirms the email address for a user
598
+ * @summary Confirm Email
599
+ * @param {string} id Target user for which to verify email.
600
+ * @param {string} verifyEmail Token to verify email.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ confirmEmail: function (id, verifyEmail, options) {
605
+ if (options === void 0) { options = {}; }
606
+ return __awaiter(_this, void 0, void 0, function () {
607
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
608
+ return __generator(this, function (_a) {
609
+ // verify required parameter 'id' is not null or undefined
610
+ (0, common_1.assertParamExists)('confirmEmail', 'id', id);
611
+ // verify required parameter 'verifyEmail' is not null or undefined
612
+ (0, common_1.assertParamExists)('confirmEmail', 'verifyEmail', verifyEmail);
613
+ localVarPath = "/auth/confirmEmail";
614
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
615
+ if (configuration) {
616
+ baseOptions = configuration.baseOptions;
617
+ }
618
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
619
+ localVarHeaderParameter = {};
620
+ localVarQueryParameter = {};
621
+ if (id !== undefined) {
622
+ localVarQueryParameter['id'] = id;
623
+ }
624
+ if (verifyEmail !== undefined) {
625
+ localVarQueryParameter['verify_email'] = verifyEmail;
626
+ }
627
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
628
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
630
+ return [2 /*return*/, {
631
+ url: (0, common_1.toPathString)(localVarUrlObj),
632
+ options: localVarRequestOptions,
633
+ }];
634
+ });
635
+ });
636
+ },
577
637
  /**
578
638
  * Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
579
639
  * @summary Delete User
@@ -608,6 +668,66 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
608
668
  });
609
669
  });
610
670
  },
671
+ /**
672
+ * Disables 2FA for the currently logged in account
673
+ * @summary Disable 2FA
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ disable2FA: function (options) {
678
+ if (options === void 0) { options = {}; }
679
+ return __awaiter(_this, void 0, void 0, function () {
680
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
681
+ return __generator(this, function (_a) {
682
+ localVarPath = "/auth/twofactorauth";
683
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
684
+ if (configuration) {
685
+ baseOptions = configuration.baseOptions;
686
+ }
687
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
688
+ localVarHeaderParameter = {};
689
+ localVarQueryParameter = {};
690
+ // authentication authCookie required
691
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
692
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
694
+ return [2 /*return*/, {
695
+ url: (0, common_1.toPathString)(localVarUrlObj),
696
+ options: localVarRequestOptions,
697
+ }];
698
+ });
699
+ });
700
+ },
701
+ /**
702
+ * Begins the sequence for enabling time-based 2FA.
703
+ * @summary Enable time-based 2FA codes
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ enable2FA: function (options) {
708
+ if (options === void 0) { options = {}; }
709
+ return __awaiter(_this, void 0, void 0, function () {
710
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
711
+ return __generator(this, function (_a) {
712
+ localVarPath = "/auth/twofactorauth/totp/pending";
713
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
714
+ if (configuration) {
715
+ baseOptions = configuration.baseOptions;
716
+ }
717
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
718
+ localVarHeaderParameter = {};
719
+ localVarQueryParameter = {};
720
+ // authentication authCookie required
721
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
722
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
723
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
724
+ return [2 /*return*/, {
725
+ url: (0, common_1.toPathString)(localVarUrlObj),
726
+ options: localVarRequestOptions,
727
+ }];
728
+ });
729
+ });
730
+ },
611
731
  /**
612
732
  * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
613
733
  * @summary Login and/or Get Current User Info
@@ -642,6 +762,36 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
642
762
  });
643
763
  });
644
764
  },
765
+ /**
766
+ * Gets the OTP (One Time Password) recovery codes for accounts with 2FA-protection enabled.
767
+ * @summary Get 2FA Recovery codes
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ getRecoveryCodes: function (options) {
772
+ if (options === void 0) { options = {}; }
773
+ return __awaiter(_this, void 0, void 0, function () {
774
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
775
+ return __generator(this, function (_a) {
776
+ localVarPath = "/auth/user/twofactorauth/otp";
777
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
778
+ if (configuration) {
779
+ baseOptions = configuration.baseOptions;
780
+ }
781
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
782
+ localVarHeaderParameter = {};
783
+ localVarQueryParameter = {};
784
+ // authentication authCookie required
785
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
786
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
787
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
788
+ return [2 /*return*/, {
789
+ url: (0, common_1.toPathString)(localVarUrlObj),
790
+ options: localVarRequestOptions,
791
+ }];
792
+ });
793
+ });
794
+ },
645
795
  /**
646
796
  * Invalidates the login session.
647
797
  * @summary Logout
@@ -672,6 +822,71 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
672
822
  });
673
823
  });
674
824
  },
825
+ /**
826
+ * ~~Register a new user account.~~ **DEPRECATED:** Automated creation of accounts has no legitimate public third-party use case, and would be in violation of ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness
827
+ * @summary Register User Account
828
+ * @param {RegisterUserAccountRequest} registerUserAccountRequest
829
+ * @param {*} [options] Override http request option.
830
+ * @deprecated
831
+ * @throws {RequiredError}
832
+ */
833
+ registerUserAccount: function (registerUserAccountRequest, options) {
834
+ if (options === void 0) { options = {}; }
835
+ return __awaiter(_this, void 0, void 0, function () {
836
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
837
+ return __generator(this, function (_a) {
838
+ // verify required parameter 'registerUserAccountRequest' is not null or undefined
839
+ (0, common_1.assertParamExists)('registerUserAccount', 'registerUserAccountRequest', registerUserAccountRequest);
840
+ localVarPath = "/auth/register";
841
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
842
+ if (configuration) {
843
+ baseOptions = configuration.baseOptions;
844
+ }
845
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
846
+ localVarHeaderParameter = {};
847
+ localVarQueryParameter = {};
848
+ localVarHeaderParameter['Content-Type'] = 'application/json';
849
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
850
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
851
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
852
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerUserAccountRequest, localVarRequestOptions, configuration);
853
+ return [2 /*return*/, {
854
+ url: (0, common_1.toPathString)(localVarUrlObj),
855
+ options: localVarRequestOptions,
856
+ }];
857
+ });
858
+ });
859
+ },
860
+ /**
861
+ * Requests a resend of pending email address confirmation email
862
+ * @summary Resend Email Confirmation
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ resendEmailConfirmation: function (options) {
867
+ if (options === void 0) { options = {}; }
868
+ return __awaiter(_this, void 0, void 0, function () {
869
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
870
+ return __generator(this, function (_a) {
871
+ localVarPath = "/auth/user/resendEmail";
872
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
873
+ if (configuration) {
874
+ baseOptions = configuration.baseOptions;
875
+ }
876
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
877
+ localVarHeaderParameter = {};
878
+ localVarQueryParameter = {};
879
+ // authentication authCookie required
880
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
881
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
882
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
883
+ return [2 /*return*/, {
884
+ url: (0, common_1.toPathString)(localVarUrlObj),
885
+ options: localVarRequestOptions,
886
+ }];
887
+ });
888
+ });
889
+ },
675
890
  /**
676
891
  * Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
677
892
  * @summary Verify 2FA code
@@ -772,6 +987,80 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
772
987
  });
773
988
  });
774
989
  },
990
+ /**
991
+ * Verifies a login attempt for a user
992
+ * @summary Verify Login Place
993
+ * @param {string} token Token to verify login attempt.
994
+ * @param {string} [userId] Filter by UserID.
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ */
998
+ verifyLoginPlace: function (token, userId, options) {
999
+ if (options === void 0) { options = {}; }
1000
+ return __awaiter(_this, void 0, void 0, function () {
1001
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1002
+ return __generator(this, function (_a) {
1003
+ // verify required parameter 'token' is not null or undefined
1004
+ (0, common_1.assertParamExists)('verifyLoginPlace', 'token', token);
1005
+ localVarPath = "/auth/verifyLoginPlace";
1006
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1007
+ if (configuration) {
1008
+ baseOptions = configuration.baseOptions;
1009
+ }
1010
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1011
+ localVarHeaderParameter = {};
1012
+ localVarQueryParameter = {};
1013
+ if (userId !== undefined) {
1014
+ localVarQueryParameter['userId'] = userId;
1015
+ }
1016
+ if (token !== undefined) {
1017
+ localVarQueryParameter['token'] = token;
1018
+ }
1019
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1020
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1021
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1022
+ return [2 /*return*/, {
1023
+ url: (0, common_1.toPathString)(localVarUrlObj),
1024
+ options: localVarRequestOptions,
1025
+ }];
1026
+ });
1027
+ });
1028
+ },
1029
+ /**
1030
+ * Finishes sequence for enabling time-based 2FA.
1031
+ * @summary Verify Pending 2FA code
1032
+ * @param {TwoFactorAuthCode} twoFactorAuthCode
1033
+ * @param {*} [options] Override http request option.
1034
+ * @throws {RequiredError}
1035
+ */
1036
+ verifyPending2FA: function (twoFactorAuthCode, options) {
1037
+ if (options === void 0) { options = {}; }
1038
+ return __awaiter(_this, void 0, void 0, function () {
1039
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1040
+ return __generator(this, function (_a) {
1041
+ // verify required parameter 'twoFactorAuthCode' is not null or undefined
1042
+ (0, common_1.assertParamExists)('verifyPending2FA', 'twoFactorAuthCode', twoFactorAuthCode);
1043
+ localVarPath = "/auth/twofactorauth/totp/pending/verify";
1044
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1045
+ if (configuration) {
1046
+ baseOptions = configuration.baseOptions;
1047
+ }
1048
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1049
+ localVarHeaderParameter = {};
1050
+ localVarQueryParameter = {};
1051
+ // authentication authCookie required
1052
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1053
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1054
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1056
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(twoFactorAuthCode, localVarRequestOptions, configuration);
1057
+ return [2 /*return*/, {
1058
+ url: (0, common_1.toPathString)(localVarUrlObj),
1059
+ options: localVarRequestOptions,
1060
+ }];
1061
+ });
1062
+ });
1063
+ },
775
1064
  /**
776
1065
  * Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
777
1066
  * @summary Verify 2FA code with Recovery code
@@ -818,16 +1107,35 @@ var AuthenticationApiFp = function (configuration) {
818
1107
  var localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
819
1108
  return {
820
1109
  /**
821
- * Checks if a user by a given `username`, `displayName` or `email` exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the `excludeUserId` is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** `username`, `displayName` **or** `email` query parameter. Although they can be combined - in addition with `excludeUserId` (generally to exclude yourself) - to further fine-tune the search.
822
- * @summary Check User Exists
823
- * @param {string} [email] Filter by email.
824
- * @param {string} [displayName] Filter by displayName.
825
- * @param {string} [username] Filter by Username.
826
- * @param {string} [excludeUserId] Exclude by UserID.
1110
+ * Cancels the sequence for enabling time-based 2FA.
1111
+ * @summary Cancel pending enabling of time-based 2FA codes
827
1112
  * @param {*} [options] Override http request option.
828
1113
  * @throws {RequiredError}
829
1114
  */
830
- checkUserExists: function (email, displayName, username, excludeUserId, options) {
1115
+ cancelPending2FA: function (options) {
1116
+ return __awaiter(this, void 0, void 0, function () {
1117
+ var localVarAxiosArgs;
1118
+ return __generator(this, function (_a) {
1119
+ switch (_a.label) {
1120
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.cancelPending2FA(options)];
1121
+ case 1:
1122
+ localVarAxiosArgs = _a.sent();
1123
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1124
+ }
1125
+ });
1126
+ });
1127
+ },
1128
+ /**
1129
+ * Checks if a user by a given `username`, `displayName` or `email` exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the `excludeUserId` is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** `username`, `displayName` **or** `email` query parameter. Although they can be combined - in addition with `excludeUserId` (generally to exclude yourself) - to further fine-tune the search.
1130
+ * @summary Check User Exists
1131
+ * @param {string} [email] Filter by email.
1132
+ * @param {string} [displayName] Filter by displayName.
1133
+ * @param {string} [username] Filter by Username.
1134
+ * @param {string} [excludeUserId] Exclude by UserID.
1135
+ * @param {*} [options] Override http request option.
1136
+ * @throws {RequiredError}
1137
+ */
1138
+ checkUserExists: function (email, displayName, username, excludeUserId, options) {
831
1139
  return __awaiter(this, void 0, void 0, function () {
832
1140
  var localVarAxiosArgs;
833
1141
  return __generator(this, function (_a) {
@@ -840,6 +1148,27 @@ var AuthenticationApiFp = function (configuration) {
840
1148
  });
841
1149
  });
842
1150
  },
1151
+ /**
1152
+ * Confirms the email address for a user
1153
+ * @summary Confirm Email
1154
+ * @param {string} id Target user for which to verify email.
1155
+ * @param {string} verifyEmail Token to verify email.
1156
+ * @param {*} [options] Override http request option.
1157
+ * @throws {RequiredError}
1158
+ */
1159
+ confirmEmail: function (id, verifyEmail, options) {
1160
+ return __awaiter(this, void 0, void 0, function () {
1161
+ var localVarAxiosArgs;
1162
+ return __generator(this, function (_a) {
1163
+ switch (_a.label) {
1164
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.confirmEmail(id, verifyEmail, options)];
1165
+ case 1:
1166
+ localVarAxiosArgs = _a.sent();
1167
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1168
+ }
1169
+ });
1170
+ });
1171
+ },
843
1172
  /**
844
1173
  * Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
845
1174
  * @summary Delete User
@@ -860,6 +1189,44 @@ var AuthenticationApiFp = function (configuration) {
860
1189
  });
861
1190
  });
862
1191
  },
1192
+ /**
1193
+ * Disables 2FA for the currently logged in account
1194
+ * @summary Disable 2FA
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ */
1198
+ disable2FA: function (options) {
1199
+ return __awaiter(this, void 0, void 0, function () {
1200
+ var localVarAxiosArgs;
1201
+ return __generator(this, function (_a) {
1202
+ switch (_a.label) {
1203
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.disable2FA(options)];
1204
+ case 1:
1205
+ localVarAxiosArgs = _a.sent();
1206
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1207
+ }
1208
+ });
1209
+ });
1210
+ },
1211
+ /**
1212
+ * Begins the sequence for enabling time-based 2FA.
1213
+ * @summary Enable time-based 2FA codes
1214
+ * @param {*} [options] Override http request option.
1215
+ * @throws {RequiredError}
1216
+ */
1217
+ enable2FA: function (options) {
1218
+ return __awaiter(this, void 0, void 0, function () {
1219
+ var localVarAxiosArgs;
1220
+ return __generator(this, function (_a) {
1221
+ switch (_a.label) {
1222
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.enable2FA(options)];
1223
+ case 1:
1224
+ localVarAxiosArgs = _a.sent();
1225
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1226
+ }
1227
+ });
1228
+ });
1229
+ },
863
1230
  /**
864
1231
  * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
865
1232
  * @summary Login and/or Get Current User Info
@@ -879,6 +1246,25 @@ var AuthenticationApiFp = function (configuration) {
879
1246
  });
880
1247
  });
881
1248
  },
1249
+ /**
1250
+ * Gets the OTP (One Time Password) recovery codes for accounts with 2FA-protection enabled.
1251
+ * @summary Get 2FA Recovery codes
1252
+ * @param {*} [options] Override http request option.
1253
+ * @throws {RequiredError}
1254
+ */
1255
+ getRecoveryCodes: function (options) {
1256
+ return __awaiter(this, void 0, void 0, function () {
1257
+ var localVarAxiosArgs;
1258
+ return __generator(this, function (_a) {
1259
+ switch (_a.label) {
1260
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecoveryCodes(options)];
1261
+ case 1:
1262
+ localVarAxiosArgs = _a.sent();
1263
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1264
+ }
1265
+ });
1266
+ });
1267
+ },
882
1268
  /**
883
1269
  * Invalidates the login session.
884
1270
  * @summary Logout
@@ -898,6 +1284,46 @@ var AuthenticationApiFp = function (configuration) {
898
1284
  });
899
1285
  });
900
1286
  },
1287
+ /**
1288
+ * ~~Register a new user account.~~ **DEPRECATED:** Automated creation of accounts has no legitimate public third-party use case, and would be in violation of ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness
1289
+ * @summary Register User Account
1290
+ * @param {RegisterUserAccountRequest} registerUserAccountRequest
1291
+ * @param {*} [options] Override http request option.
1292
+ * @deprecated
1293
+ * @throws {RequiredError}
1294
+ */
1295
+ registerUserAccount: function (registerUserAccountRequest, options) {
1296
+ return __awaiter(this, void 0, void 0, function () {
1297
+ var localVarAxiosArgs;
1298
+ return __generator(this, function (_a) {
1299
+ switch (_a.label) {
1300
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerUserAccount(registerUserAccountRequest, options)];
1301
+ case 1:
1302
+ localVarAxiosArgs = _a.sent();
1303
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1304
+ }
1305
+ });
1306
+ });
1307
+ },
1308
+ /**
1309
+ * Requests a resend of pending email address confirmation email
1310
+ * @summary Resend Email Confirmation
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ resendEmailConfirmation: function (options) {
1315
+ return __awaiter(this, void 0, void 0, function () {
1316
+ var localVarAxiosArgs;
1317
+ return __generator(this, function (_a) {
1318
+ switch (_a.label) {
1319
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.resendEmailConfirmation(options)];
1320
+ case 1:
1321
+ localVarAxiosArgs = _a.sent();
1322
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1323
+ }
1324
+ });
1325
+ });
1326
+ },
901
1327
  /**
902
1328
  * Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
903
1329
  * @summary Verify 2FA code
@@ -957,6 +1383,47 @@ var AuthenticationApiFp = function (configuration) {
957
1383
  });
958
1384
  });
959
1385
  },
1386
+ /**
1387
+ * Verifies a login attempt for a user
1388
+ * @summary Verify Login Place
1389
+ * @param {string} token Token to verify login attempt.
1390
+ * @param {string} [userId] Filter by UserID.
1391
+ * @param {*} [options] Override http request option.
1392
+ * @throws {RequiredError}
1393
+ */
1394
+ verifyLoginPlace: function (token, userId, options) {
1395
+ return __awaiter(this, void 0, void 0, function () {
1396
+ var localVarAxiosArgs;
1397
+ return __generator(this, function (_a) {
1398
+ switch (_a.label) {
1399
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyLoginPlace(token, userId, options)];
1400
+ case 1:
1401
+ localVarAxiosArgs = _a.sent();
1402
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1403
+ }
1404
+ });
1405
+ });
1406
+ },
1407
+ /**
1408
+ * Finishes sequence for enabling time-based 2FA.
1409
+ * @summary Verify Pending 2FA code
1410
+ * @param {TwoFactorAuthCode} twoFactorAuthCode
1411
+ * @param {*} [options] Override http request option.
1412
+ * @throws {RequiredError}
1413
+ */
1414
+ verifyPending2FA: function (twoFactorAuthCode, options) {
1415
+ return __awaiter(this, void 0, void 0, function () {
1416
+ var localVarAxiosArgs;
1417
+ return __generator(this, function (_a) {
1418
+ switch (_a.label) {
1419
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyPending2FA(twoFactorAuthCode, options)];
1420
+ case 1:
1421
+ localVarAxiosArgs = _a.sent();
1422
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1423
+ }
1424
+ });
1425
+ });
1426
+ },
960
1427
  /**
961
1428
  * Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
962
1429
  * @summary Verify 2FA code with Recovery code
@@ -987,6 +1454,15 @@ exports.AuthenticationApiFp = AuthenticationApiFp;
987
1454
  var AuthenticationApiFactory = function (configuration, basePath, axios) {
988
1455
  var localVarFp = (0, exports.AuthenticationApiFp)(configuration);
989
1456
  return {
1457
+ /**
1458
+ * Cancels the sequence for enabling time-based 2FA.
1459
+ * @summary Cancel pending enabling of time-based 2FA codes
1460
+ * @param {*} [options] Override http request option.
1461
+ * @throws {RequiredError}
1462
+ */
1463
+ cancelPending2FA: function (options) {
1464
+ return localVarFp.cancelPending2FA(options).then(function (request) { return request(axios, basePath); });
1465
+ },
990
1466
  /**
991
1467
  * Checks if a user by a given `username`, `displayName` or `email` exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the `excludeUserId` is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** `username`, `displayName` **or** `email` query parameter. Although they can be combined - in addition with `excludeUserId` (generally to exclude yourself) - to further fine-tune the search.
992
1468
  * @summary Check User Exists
@@ -1000,6 +1476,17 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
1000
1476
  checkUserExists: function (email, displayName, username, excludeUserId, options) {
1001
1477
  return localVarFp.checkUserExists(email, displayName, username, excludeUserId, options).then(function (request) { return request(axios, basePath); });
1002
1478
  },
1479
+ /**
1480
+ * Confirms the email address for a user
1481
+ * @summary Confirm Email
1482
+ * @param {string} id Target user for which to verify email.
1483
+ * @param {string} verifyEmail Token to verify email.
1484
+ * @param {*} [options] Override http request option.
1485
+ * @throws {RequiredError}
1486
+ */
1487
+ confirmEmail: function (id, verifyEmail, options) {
1488
+ return localVarFp.confirmEmail(id, verifyEmail, options).then(function (request) { return request(axios, basePath); });
1489
+ },
1003
1490
  /**
1004
1491
  * Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
1005
1492
  * @summary Delete User
@@ -1010,6 +1497,24 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
1010
1497
  deleteUser: function (userId, options) {
1011
1498
  return localVarFp.deleteUser(userId, options).then(function (request) { return request(axios, basePath); });
1012
1499
  },
1500
+ /**
1501
+ * Disables 2FA for the currently logged in account
1502
+ * @summary Disable 2FA
1503
+ * @param {*} [options] Override http request option.
1504
+ * @throws {RequiredError}
1505
+ */
1506
+ disable2FA: function (options) {
1507
+ return localVarFp.disable2FA(options).then(function (request) { return request(axios, basePath); });
1508
+ },
1509
+ /**
1510
+ * Begins the sequence for enabling time-based 2FA.
1511
+ * @summary Enable time-based 2FA codes
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ */
1515
+ enable2FA: function (options) {
1516
+ return localVarFp.enable2FA(options).then(function (request) { return request(axios, basePath); });
1517
+ },
1013
1518
  /**
1014
1519
  * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
1015
1520
  * @summary Login and/or Get Current User Info
@@ -1019,6 +1524,15 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
1019
1524
  getCurrentUser: function (options) {
1020
1525
  return localVarFp.getCurrentUser(options).then(function (request) { return request(axios, basePath); });
1021
1526
  },
1527
+ /**
1528
+ * Gets the OTP (One Time Password) recovery codes for accounts with 2FA-protection enabled.
1529
+ * @summary Get 2FA Recovery codes
1530
+ * @param {*} [options] Override http request option.
1531
+ * @throws {RequiredError}
1532
+ */
1533
+ getRecoveryCodes: function (options) {
1534
+ return localVarFp.getRecoveryCodes(options).then(function (request) { return request(axios, basePath); });
1535
+ },
1022
1536
  /**
1023
1537
  * Invalidates the login session.
1024
1538
  * @summary Logout
@@ -1028,6 +1542,26 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
1028
1542
  logout: function (options) {
1029
1543
  return localVarFp.logout(options).then(function (request) { return request(axios, basePath); });
1030
1544
  },
1545
+ /**
1546
+ * ~~Register a new user account.~~ **DEPRECATED:** Automated creation of accounts has no legitimate public third-party use case, and would be in violation of ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness
1547
+ * @summary Register User Account
1548
+ * @param {RegisterUserAccountRequest} registerUserAccountRequest
1549
+ * @param {*} [options] Override http request option.
1550
+ * @deprecated
1551
+ * @throws {RequiredError}
1552
+ */
1553
+ registerUserAccount: function (registerUserAccountRequest, options) {
1554
+ return localVarFp.registerUserAccount(registerUserAccountRequest, options).then(function (request) { return request(axios, basePath); });
1555
+ },
1556
+ /**
1557
+ * Requests a resend of pending email address confirmation email
1558
+ * @summary Resend Email Confirmation
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ resendEmailConfirmation: function (options) {
1563
+ return localVarFp.resendEmailConfirmation(options).then(function (request) { return request(axios, basePath); });
1564
+ },
1031
1565
  /**
1032
1566
  * Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
1033
1567
  * @summary Verify 2FA code
@@ -1057,6 +1591,27 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
1057
1591
  verifyAuthToken: function (options) {
1058
1592
  return localVarFp.verifyAuthToken(options).then(function (request) { return request(axios, basePath); });
1059
1593
  },
1594
+ /**
1595
+ * Verifies a login attempt for a user
1596
+ * @summary Verify Login Place
1597
+ * @param {string} token Token to verify login attempt.
1598
+ * @param {string} [userId] Filter by UserID.
1599
+ * @param {*} [options] Override http request option.
1600
+ * @throws {RequiredError}
1601
+ */
1602
+ verifyLoginPlace: function (token, userId, options) {
1603
+ return localVarFp.verifyLoginPlace(token, userId, options).then(function (request) { return request(axios, basePath); });
1604
+ },
1605
+ /**
1606
+ * Finishes sequence for enabling time-based 2FA.
1607
+ * @summary Verify Pending 2FA code
1608
+ * @param {TwoFactorAuthCode} twoFactorAuthCode
1609
+ * @param {*} [options] Override http request option.
1610
+ * @throws {RequiredError}
1611
+ */
1612
+ verifyPending2FA: function (twoFactorAuthCode, options) {
1613
+ return localVarFp.verifyPending2FA(twoFactorAuthCode, options).then(function (request) { return request(axios, basePath); });
1614
+ },
1060
1615
  /**
1061
1616
  * Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
1062
1617
  * @summary Verify 2FA code with Recovery code
@@ -1081,6 +1636,17 @@ var AuthenticationApi = /** @class */ (function (_super) {
1081
1636
  function AuthenticationApi() {
1082
1637
  return _super !== null && _super.apply(this, arguments) || this;
1083
1638
  }
1639
+ /**
1640
+ * Cancels the sequence for enabling time-based 2FA.
1641
+ * @summary Cancel pending enabling of time-based 2FA codes
1642
+ * @param {*} [options] Override http request option.
1643
+ * @throws {RequiredError}
1644
+ * @memberof AuthenticationApi
1645
+ */
1646
+ AuthenticationApi.prototype.cancelPending2FA = function (options) {
1647
+ var _this = this;
1648
+ return (0, exports.AuthenticationApiFp)(this.configuration).cancelPending2FA(options).then(function (request) { return request(_this.axios, _this.basePath); });
1649
+ };
1084
1650
  /**
1085
1651
  * Checks if a user by a given `username`, `displayName` or `email` exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the `excludeUserId` is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** `username`, `displayName` **or** `email` query parameter. Although they can be combined - in addition with `excludeUserId` (generally to exclude yourself) - to further fine-tune the search.
1086
1652
  * @summary Check User Exists
@@ -1096,6 +1662,19 @@ var AuthenticationApi = /** @class */ (function (_super) {
1096
1662
  var _this = this;
1097
1663
  return (0, exports.AuthenticationApiFp)(this.configuration).checkUserExists(email, displayName, username, excludeUserId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1098
1664
  };
1665
+ /**
1666
+ * Confirms the email address for a user
1667
+ * @summary Confirm Email
1668
+ * @param {string} id Target user for which to verify email.
1669
+ * @param {string} verifyEmail Token to verify email.
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ * @memberof AuthenticationApi
1673
+ */
1674
+ AuthenticationApi.prototype.confirmEmail = function (id, verifyEmail, options) {
1675
+ var _this = this;
1676
+ return (0, exports.AuthenticationApiFp)(this.configuration).confirmEmail(id, verifyEmail, options).then(function (request) { return request(_this.axios, _this.basePath); });
1677
+ };
1099
1678
  /**
1100
1679
  * Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
1101
1680
  * @summary Delete User
@@ -1108,6 +1687,28 @@ var AuthenticationApi = /** @class */ (function (_super) {
1108
1687
  var _this = this;
1109
1688
  return (0, exports.AuthenticationApiFp)(this.configuration).deleteUser(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1110
1689
  };
1690
+ /**
1691
+ * Disables 2FA for the currently logged in account
1692
+ * @summary Disable 2FA
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ * @memberof AuthenticationApi
1696
+ */
1697
+ AuthenticationApi.prototype.disable2FA = function (options) {
1698
+ var _this = this;
1699
+ return (0, exports.AuthenticationApiFp)(this.configuration).disable2FA(options).then(function (request) { return request(_this.axios, _this.basePath); });
1700
+ };
1701
+ /**
1702
+ * Begins the sequence for enabling time-based 2FA.
1703
+ * @summary Enable time-based 2FA codes
1704
+ * @param {*} [options] Override http request option.
1705
+ * @throws {RequiredError}
1706
+ * @memberof AuthenticationApi
1707
+ */
1708
+ AuthenticationApi.prototype.enable2FA = function (options) {
1709
+ var _this = this;
1710
+ return (0, exports.AuthenticationApiFp)(this.configuration).enable2FA(options).then(function (request) { return request(_this.axios, _this.basePath); });
1711
+ };
1111
1712
  /**
1112
1713
  * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
1113
1714
  * @summary Login and/or Get Current User Info
@@ -1119,6 +1720,17 @@ var AuthenticationApi = /** @class */ (function (_super) {
1119
1720
  var _this = this;
1120
1721
  return (0, exports.AuthenticationApiFp)(this.configuration).getCurrentUser(options).then(function (request) { return request(_this.axios, _this.basePath); });
1121
1722
  };
1723
+ /**
1724
+ * Gets the OTP (One Time Password) recovery codes for accounts with 2FA-protection enabled.
1725
+ * @summary Get 2FA Recovery codes
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ * @memberof AuthenticationApi
1729
+ */
1730
+ AuthenticationApi.prototype.getRecoveryCodes = function (options) {
1731
+ var _this = this;
1732
+ return (0, exports.AuthenticationApiFp)(this.configuration).getRecoveryCodes(options).then(function (request) { return request(_this.axios, _this.basePath); });
1733
+ };
1122
1734
  /**
1123
1735
  * Invalidates the login session.
1124
1736
  * @summary Logout
@@ -1130,6 +1742,30 @@ var AuthenticationApi = /** @class */ (function (_super) {
1130
1742
  var _this = this;
1131
1743
  return (0, exports.AuthenticationApiFp)(this.configuration).logout(options).then(function (request) { return request(_this.axios, _this.basePath); });
1132
1744
  };
1745
+ /**
1746
+ * ~~Register a new user account.~~ **DEPRECATED:** Automated creation of accounts has no legitimate public third-party use case, and would be in violation of ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness
1747
+ * @summary Register User Account
1748
+ * @param {RegisterUserAccountRequest} registerUserAccountRequest
1749
+ * @param {*} [options] Override http request option.
1750
+ * @deprecated
1751
+ * @throws {RequiredError}
1752
+ * @memberof AuthenticationApi
1753
+ */
1754
+ AuthenticationApi.prototype.registerUserAccount = function (registerUserAccountRequest, options) {
1755
+ var _this = this;
1756
+ return (0, exports.AuthenticationApiFp)(this.configuration).registerUserAccount(registerUserAccountRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1757
+ };
1758
+ /**
1759
+ * Requests a resend of pending email address confirmation email
1760
+ * @summary Resend Email Confirmation
1761
+ * @param {*} [options] Override http request option.
1762
+ * @throws {RequiredError}
1763
+ * @memberof AuthenticationApi
1764
+ */
1765
+ AuthenticationApi.prototype.resendEmailConfirmation = function (options) {
1766
+ var _this = this;
1767
+ return (0, exports.AuthenticationApiFp)(this.configuration).resendEmailConfirmation(options).then(function (request) { return request(_this.axios, _this.basePath); });
1768
+ };
1133
1769
  /**
1134
1770
  * Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
1135
1771
  * @summary Verify 2FA code
@@ -1166,18 +1802,43 @@ var AuthenticationApi = /** @class */ (function (_super) {
1166
1802
  return (0, exports.AuthenticationApiFp)(this.configuration).verifyAuthToken(options).then(function (request) { return request(_this.axios, _this.basePath); });
1167
1803
  };
1168
1804
  /**
1169
- * Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
1170
- * @summary Verify 2FA code with Recovery code
1805
+ * Verifies a login attempt for a user
1806
+ * @summary Verify Login Place
1807
+ * @param {string} token Token to verify login attempt.
1808
+ * @param {string} [userId] Filter by UserID.
1809
+ * @param {*} [options] Override http request option.
1810
+ * @throws {RequiredError}
1811
+ * @memberof AuthenticationApi
1812
+ */
1813
+ AuthenticationApi.prototype.verifyLoginPlace = function (token, userId, options) {
1814
+ var _this = this;
1815
+ return (0, exports.AuthenticationApiFp)(this.configuration).verifyLoginPlace(token, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1816
+ };
1817
+ /**
1818
+ * Finishes sequence for enabling time-based 2FA.
1819
+ * @summary Verify Pending 2FA code
1171
1820
  * @param {TwoFactorAuthCode} twoFactorAuthCode
1172
1821
  * @param {*} [options] Override http request option.
1173
1822
  * @throws {RequiredError}
1174
1823
  * @memberof AuthenticationApi
1175
1824
  */
1176
- AuthenticationApi.prototype.verifyRecoveryCode = function (twoFactorAuthCode, options) {
1825
+ AuthenticationApi.prototype.verifyPending2FA = function (twoFactorAuthCode, options) {
1177
1826
  var _this = this;
1178
- return (0, exports.AuthenticationApiFp)(this.configuration).verifyRecoveryCode(twoFactorAuthCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
1827
+ return (0, exports.AuthenticationApiFp)(this.configuration).verifyPending2FA(twoFactorAuthCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
1179
1828
  };
1180
- return AuthenticationApi;
1829
+ /**
1830
+ * Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
1831
+ * @summary Verify 2FA code with Recovery code
1832
+ * @param {TwoFactorAuthCode} twoFactorAuthCode
1833
+ * @param {*} [options] Override http request option.
1834
+ * @throws {RequiredError}
1835
+ * @memberof AuthenticationApi
1836
+ */
1837
+ AuthenticationApi.prototype.verifyRecoveryCode = function (twoFactorAuthCode, options) {
1838
+ var _this = this;
1839
+ return (0, exports.AuthenticationApiFp)(this.configuration).verifyRecoveryCode(twoFactorAuthCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
1840
+ };
1841
+ return AuthenticationApi;
1181
1842
  }(base_1.BaseAPI));
1182
1843
  exports.AuthenticationApi = AuthenticationApi;
1183
1844
  /**
@@ -1254,6 +1915,74 @@ var AvatarsApiAxiosParamCreator = function (configuration) {
1254
1915
  });
1255
1916
  });
1256
1917
  },
1918
+ /**
1919
+ * Delete generated Impostor for that avatar.
1920
+ * @summary Delete generated Impostor
1921
+ * @param {string} avatarId Must be a valid avatar ID.
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ */
1925
+ deleteImpostor: function (avatarId, options) {
1926
+ if (options === void 0) { options = {}; }
1927
+ return __awaiter(_this, void 0, void 0, function () {
1928
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1929
+ return __generator(this, function (_a) {
1930
+ // verify required parameter 'avatarId' is not null or undefined
1931
+ (0, common_1.assertParamExists)('deleteImpostor', 'avatarId', avatarId);
1932
+ localVarPath = "/avatars/{avatarId}/impostor"
1933
+ .replace("{".concat("avatarId", "}"), encodeURIComponent(String(avatarId)));
1934
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1935
+ if (configuration) {
1936
+ baseOptions = configuration.baseOptions;
1937
+ }
1938
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1939
+ localVarHeaderParameter = {};
1940
+ localVarQueryParameter = {};
1941
+ // authentication authCookie required
1942
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1943
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1944
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1945
+ return [2 /*return*/, {
1946
+ url: (0, common_1.toPathString)(localVarUrlObj),
1947
+ options: localVarRequestOptions,
1948
+ }];
1949
+ });
1950
+ });
1951
+ },
1952
+ /**
1953
+ * Enqueue Impostor generation for that avatar.
1954
+ * @summary Enqueue Impostor generation
1955
+ * @param {string} avatarId Must be a valid avatar ID.
1956
+ * @param {*} [options] Override http request option.
1957
+ * @throws {RequiredError}
1958
+ */
1959
+ enqueueImpostor: function (avatarId, options) {
1960
+ if (options === void 0) { options = {}; }
1961
+ return __awaiter(_this, void 0, void 0, function () {
1962
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1963
+ return __generator(this, function (_a) {
1964
+ // verify required parameter 'avatarId' is not null or undefined
1965
+ (0, common_1.assertParamExists)('enqueueImpostor', 'avatarId', avatarId);
1966
+ localVarPath = "/avatars/{avatarId}/impostor/enqueue"
1967
+ .replace("{".concat("avatarId", "}"), encodeURIComponent(String(avatarId)));
1968
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1969
+ if (configuration) {
1970
+ baseOptions = configuration.baseOptions;
1971
+ }
1972
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1973
+ localVarHeaderParameter = {};
1974
+ localVarQueryParameter = {};
1975
+ // authentication authCookie required
1976
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1977
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1978
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1979
+ return [2 /*return*/, {
1980
+ url: (0, common_1.toPathString)(localVarUrlObj),
1981
+ options: localVarRequestOptions,
1982
+ }];
1983
+ });
1984
+ });
1985
+ },
1257
1986
  /**
1258
1987
  * Get information about a specific Avatar.
1259
1988
  * @summary Get Avatar
@@ -1370,6 +2099,74 @@ var AvatarsApiAxiosParamCreator = function (configuration) {
1370
2099
  });
1371
2100
  });
1372
2101
  },
2102
+ /**
2103
+ * Gets service stats for queued impostor.
2104
+ * @summary Get Impostor Queue Stats
2105
+ * @param {*} [options] Override http request option.
2106
+ * @throws {RequiredError}
2107
+ */
2108
+ getImpostorQueueStats: function (options) {
2109
+ if (options === void 0) { options = {}; }
2110
+ return __awaiter(_this, void 0, void 0, function () {
2111
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2112
+ return __generator(this, function (_a) {
2113
+ localVarPath = "/avatars/impostor/queue/stats";
2114
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2115
+ if (configuration) {
2116
+ baseOptions = configuration.baseOptions;
2117
+ }
2118
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2119
+ localVarHeaderParameter = {};
2120
+ localVarQueryParameter = {};
2121
+ // authentication authCookie required
2122
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2123
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2124
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2125
+ return [2 /*return*/, {
2126
+ url: (0, common_1.toPathString)(localVarUrlObj),
2127
+ options: localVarRequestOptions,
2128
+ }];
2129
+ });
2130
+ });
2131
+ },
2132
+ /**
2133
+ * List licensed avatars.
2134
+ * @summary List Licensed Avatars
2135
+ * @param {number} [n] The number of objects to return.
2136
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
2137
+ * @param {*} [options] Override http request option.
2138
+ * @throws {RequiredError}
2139
+ */
2140
+ getLicensedAvatars: function (n, offset, options) {
2141
+ if (options === void 0) { options = {}; }
2142
+ return __awaiter(_this, void 0, void 0, function () {
2143
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2144
+ return __generator(this, function (_a) {
2145
+ localVarPath = "/avatars/licensed";
2146
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2147
+ if (configuration) {
2148
+ baseOptions = configuration.baseOptions;
2149
+ }
2150
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2151
+ localVarHeaderParameter = {};
2152
+ localVarQueryParameter = {};
2153
+ // authentication authCookie required
2154
+ if (n !== undefined) {
2155
+ localVarQueryParameter['n'] = n;
2156
+ }
2157
+ if (offset !== undefined) {
2158
+ localVarQueryParameter['offset'] = offset;
2159
+ }
2160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2161
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2162
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2163
+ return [2 /*return*/, {
2164
+ url: (0, common_1.toPathString)(localVarUrlObj),
2165
+ options: localVarRequestOptions,
2166
+ }];
2167
+ });
2168
+ });
2169
+ },
1373
2170
  /**
1374
2171
  * Get the current avatar for the user. This will return an error for any other user than the one logged in.
1375
2172
  * @summary Get Own Avatar
@@ -1641,6 +2438,46 @@ var AvatarsApiFp = function (configuration) {
1641
2438
  });
1642
2439
  });
1643
2440
  },
2441
+ /**
2442
+ * Delete generated Impostor for that avatar.
2443
+ * @summary Delete generated Impostor
2444
+ * @param {string} avatarId Must be a valid avatar ID.
2445
+ * @param {*} [options] Override http request option.
2446
+ * @throws {RequiredError}
2447
+ */
2448
+ deleteImpostor: function (avatarId, options) {
2449
+ return __awaiter(this, void 0, void 0, function () {
2450
+ var localVarAxiosArgs;
2451
+ return __generator(this, function (_a) {
2452
+ switch (_a.label) {
2453
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteImpostor(avatarId, options)];
2454
+ case 1:
2455
+ localVarAxiosArgs = _a.sent();
2456
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2457
+ }
2458
+ });
2459
+ });
2460
+ },
2461
+ /**
2462
+ * Enqueue Impostor generation for that avatar.
2463
+ * @summary Enqueue Impostor generation
2464
+ * @param {string} avatarId Must be a valid avatar ID.
2465
+ * @param {*} [options] Override http request option.
2466
+ * @throws {RequiredError}
2467
+ */
2468
+ enqueueImpostor: function (avatarId, options) {
2469
+ return __awaiter(this, void 0, void 0, function () {
2470
+ var localVarAxiosArgs;
2471
+ return __generator(this, function (_a) {
2472
+ switch (_a.label) {
2473
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.enqueueImpostor(avatarId, options)];
2474
+ case 1:
2475
+ localVarAxiosArgs = _a.sent();
2476
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2477
+ }
2478
+ });
2479
+ });
2480
+ },
1644
2481
  /**
1645
2482
  * Get information about a specific Avatar.
1646
2483
  * @summary Get Avatar
@@ -1693,6 +2530,46 @@ var AvatarsApiFp = function (configuration) {
1693
2530
  });
1694
2531
  });
1695
2532
  },
2533
+ /**
2534
+ * Gets service stats for queued impostor.
2535
+ * @summary Get Impostor Queue Stats
2536
+ * @param {*} [options] Override http request option.
2537
+ * @throws {RequiredError}
2538
+ */
2539
+ getImpostorQueueStats: function (options) {
2540
+ return __awaiter(this, void 0, void 0, function () {
2541
+ var localVarAxiosArgs;
2542
+ return __generator(this, function (_a) {
2543
+ switch (_a.label) {
2544
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getImpostorQueueStats(options)];
2545
+ case 1:
2546
+ localVarAxiosArgs = _a.sent();
2547
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2548
+ }
2549
+ });
2550
+ });
2551
+ },
2552
+ /**
2553
+ * List licensed avatars.
2554
+ * @summary List Licensed Avatars
2555
+ * @param {number} [n] The number of objects to return.
2556
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
2557
+ * @param {*} [options] Override http request option.
2558
+ * @throws {RequiredError}
2559
+ */
2560
+ getLicensedAvatars: function (n, offset, options) {
2561
+ return __awaiter(this, void 0, void 0, function () {
2562
+ var localVarAxiosArgs;
2563
+ return __generator(this, function (_a) {
2564
+ switch (_a.label) {
2565
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLicensedAvatars(n, offset, options)];
2566
+ case 1:
2567
+ localVarAxiosArgs = _a.sent();
2568
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2569
+ }
2570
+ });
2571
+ });
2572
+ },
1696
2573
  /**
1697
2574
  * Get the current avatar for the user. This will return an error for any other user than the one logged in.
1698
2575
  * @summary Get Own Avatar
@@ -1836,6 +2713,26 @@ var AvatarsApiFactory = function (configuration, basePath, axios) {
1836
2713
  deleteAvatar: function (avatarId, options) {
1837
2714
  return localVarFp.deleteAvatar(avatarId, options).then(function (request) { return request(axios, basePath); });
1838
2715
  },
2716
+ /**
2717
+ * Delete generated Impostor for that avatar.
2718
+ * @summary Delete generated Impostor
2719
+ * @param {string} avatarId Must be a valid avatar ID.
2720
+ * @param {*} [options] Override http request option.
2721
+ * @throws {RequiredError}
2722
+ */
2723
+ deleteImpostor: function (avatarId, options) {
2724
+ return localVarFp.deleteImpostor(avatarId, options).then(function (request) { return request(axios, basePath); });
2725
+ },
2726
+ /**
2727
+ * Enqueue Impostor generation for that avatar.
2728
+ * @summary Enqueue Impostor generation
2729
+ * @param {string} avatarId Must be a valid avatar ID.
2730
+ * @param {*} [options] Override http request option.
2731
+ * @throws {RequiredError}
2732
+ */
2733
+ enqueueImpostor: function (avatarId, options) {
2734
+ return localVarFp.enqueueImpostor(avatarId, options).then(function (request) { return request(axios, basePath); });
2735
+ },
1839
2736
  /**
1840
2737
  * Get information about a specific Avatar.
1841
2738
  * @summary Get Avatar
@@ -1868,6 +2765,26 @@ var AvatarsApiFactory = function (configuration, basePath, axios) {
1868
2765
  getFavoritedAvatars: function (featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options) {
1869
2766
  return localVarFp.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then(function (request) { return request(axios, basePath); });
1870
2767
  },
2768
+ /**
2769
+ * Gets service stats for queued impostor.
2770
+ * @summary Get Impostor Queue Stats
2771
+ * @param {*} [options] Override http request option.
2772
+ * @throws {RequiredError}
2773
+ */
2774
+ getImpostorQueueStats: function (options) {
2775
+ return localVarFp.getImpostorQueueStats(options).then(function (request) { return request(axios, basePath); });
2776
+ },
2777
+ /**
2778
+ * List licensed avatars.
2779
+ * @summary List Licensed Avatars
2780
+ * @param {number} [n] The number of objects to return.
2781
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
2782
+ * @param {*} [options] Override http request option.
2783
+ * @throws {RequiredError}
2784
+ */
2785
+ getLicensedAvatars: function (n, offset, options) {
2786
+ return localVarFp.getLicensedAvatars(n, offset, options).then(function (request) { return request(axios, basePath); });
2787
+ },
1871
2788
  /**
1872
2789
  * Get the current avatar for the user. This will return an error for any other user than the one logged in.
1873
2790
  * @summary Get Own Avatar
@@ -1969,6 +2886,30 @@ var AvatarsApi = /** @class */ (function (_super) {
1969
2886
  var _this = this;
1970
2887
  return (0, exports.AvatarsApiFp)(this.configuration).deleteAvatar(avatarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1971
2888
  };
2889
+ /**
2890
+ * Delete generated Impostor for that avatar.
2891
+ * @summary Delete generated Impostor
2892
+ * @param {string} avatarId Must be a valid avatar ID.
2893
+ * @param {*} [options] Override http request option.
2894
+ * @throws {RequiredError}
2895
+ * @memberof AvatarsApi
2896
+ */
2897
+ AvatarsApi.prototype.deleteImpostor = function (avatarId, options) {
2898
+ var _this = this;
2899
+ return (0, exports.AvatarsApiFp)(this.configuration).deleteImpostor(avatarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2900
+ };
2901
+ /**
2902
+ * Enqueue Impostor generation for that avatar.
2903
+ * @summary Enqueue Impostor generation
2904
+ * @param {string} avatarId Must be a valid avatar ID.
2905
+ * @param {*} [options] Override http request option.
2906
+ * @throws {RequiredError}
2907
+ * @memberof AvatarsApi
2908
+ */
2909
+ AvatarsApi.prototype.enqueueImpostor = function (avatarId, options) {
2910
+ var _this = this;
2911
+ return (0, exports.AvatarsApiFp)(this.configuration).enqueueImpostor(avatarId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2912
+ };
1972
2913
  /**
1973
2914
  * Get information about a specific Avatar.
1974
2915
  * @summary Get Avatar
@@ -2005,6 +2946,30 @@ var AvatarsApi = /** @class */ (function (_super) {
2005
2946
  var _this = this;
2006
2947
  return (0, exports.AvatarsApiFp)(this.configuration).getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2007
2948
  };
2949
+ /**
2950
+ * Gets service stats for queued impostor.
2951
+ * @summary Get Impostor Queue Stats
2952
+ * @param {*} [options] Override http request option.
2953
+ * @throws {RequiredError}
2954
+ * @memberof AvatarsApi
2955
+ */
2956
+ AvatarsApi.prototype.getImpostorQueueStats = function (options) {
2957
+ var _this = this;
2958
+ return (0, exports.AvatarsApiFp)(this.configuration).getImpostorQueueStats(options).then(function (request) { return request(_this.axios, _this.basePath); });
2959
+ };
2960
+ /**
2961
+ * List licensed avatars.
2962
+ * @summary List Licensed Avatars
2963
+ * @param {number} [n] The number of objects to return.
2964
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
2965
+ * @param {*} [options] Override http request option.
2966
+ * @throws {RequiredError}
2967
+ * @memberof AvatarsApi
2968
+ */
2969
+ AvatarsApi.prototype.getLicensedAvatars = function (n, offset, options) {
2970
+ var _this = this;
2971
+ return (0, exports.AvatarsApiFp)(this.configuration).getLicensedAvatars(n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
2972
+ };
2008
2973
  /**
2009
2974
  * Get the current avatar for the user. This will return an error for any other user than the one logged in.
2010
2975
  * @summary Get Own Avatar
@@ -3054,40 +4019,6 @@ var FavoritesApiAxiosParamCreator = function (configuration) {
3054
4019
  });
3055
4020
  });
3056
4021
  },
3057
- /**
3058
- * Return information about a specific Favorite.
3059
- * @summary Show Favorite
3060
- * @param {string} favoriteId Must be a valid favorite ID.
3061
- * @param {*} [options] Override http request option.
3062
- * @throws {RequiredError}
3063
- */
3064
- getFavorite: function (favoriteId, options) {
3065
- if (options === void 0) { options = {}; }
3066
- return __awaiter(_this, void 0, void 0, function () {
3067
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3068
- return __generator(this, function (_a) {
3069
- // verify required parameter 'favoriteId' is not null or undefined
3070
- (0, common_1.assertParamExists)('getFavorite', 'favoriteId', favoriteId);
3071
- localVarPath = "/favorites/{favoriteId}"
3072
- .replace("{".concat("favoriteId", "}"), encodeURIComponent(String(favoriteId)));
3073
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3074
- if (configuration) {
3075
- baseOptions = configuration.baseOptions;
3076
- }
3077
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3078
- localVarHeaderParameter = {};
3079
- localVarQueryParameter = {};
3080
- // authentication authCookie required
3081
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3082
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3083
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3084
- return [2 /*return*/, {
3085
- url: (0, common_1.toPathString)(localVarUrlObj),
3086
- options: localVarRequestOptions,
3087
- }];
3088
- });
3089
- });
3090
- },
3091
4022
  /**
3092
4023
  * Fetch information about a specific favorite group.
3093
4024
  * @summary Show Favorite Group
@@ -3135,11 +4066,12 @@ var FavoritesApiAxiosParamCreator = function (configuration) {
3135
4066
  * @summary List Favorite Groups
3136
4067
  * @param {number} [n] The number of objects to return.
3137
4068
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
4069
+ * @param {string} [userId] Target user to see information on, admin-only.
3138
4070
  * @param {string} [ownerId] The owner of whoms favorite groups to return. Must be a UserID.
3139
4071
  * @param {*} [options] Override http request option.
3140
4072
  * @throws {RequiredError}
3141
4073
  */
3142
- getFavoriteGroups: function (n, offset, ownerId, options) {
4074
+ getFavoriteGroups: function (n, offset, userId, ownerId, options) {
3143
4075
  if (options === void 0) { options = {}; }
3144
4076
  return __awaiter(_this, void 0, void 0, function () {
3145
4077
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3159,6 +4091,9 @@ var FavoritesApiAxiosParamCreator = function (configuration) {
3159
4091
  if (offset !== undefined) {
3160
4092
  localVarQueryParameter['offset'] = offset;
3161
4093
  }
4094
+ if (userId !== undefined) {
4095
+ localVarQueryParameter['userId'] = userId;
4096
+ }
3162
4097
  if (ownerId !== undefined) {
3163
4098
  localVarQueryParameter['ownerId'] = ownerId;
3164
4099
  }
@@ -3379,26 +4314,6 @@ var FavoritesApiFp = function (configuration) {
3379
4314
  });
3380
4315
  });
3381
4316
  },
3382
- /**
3383
- * Return information about a specific Favorite.
3384
- * @summary Show Favorite
3385
- * @param {string} favoriteId Must be a valid favorite ID.
3386
- * @param {*} [options] Override http request option.
3387
- * @throws {RequiredError}
3388
- */
3389
- getFavorite: function (favoriteId, options) {
3390
- return __awaiter(this, void 0, void 0, function () {
3391
- var localVarAxiosArgs;
3392
- return __generator(this, function (_a) {
3393
- switch (_a.label) {
3394
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFavorite(favoriteId, options)];
3395
- case 1:
3396
- localVarAxiosArgs = _a.sent();
3397
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3398
- }
3399
- });
3400
- });
3401
- },
3402
4317
  /**
3403
4318
  * Fetch information about a specific favorite group.
3404
4319
  * @summary Show Favorite Group
@@ -3426,16 +4341,17 @@ var FavoritesApiFp = function (configuration) {
3426
4341
  * @summary List Favorite Groups
3427
4342
  * @param {number} [n] The number of objects to return.
3428
4343
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
4344
+ * @param {string} [userId] Target user to see information on, admin-only.
3429
4345
  * @param {string} [ownerId] The owner of whoms favorite groups to return. Must be a UserID.
3430
4346
  * @param {*} [options] Override http request option.
3431
4347
  * @throws {RequiredError}
3432
4348
  */
3433
- getFavoriteGroups: function (n, offset, ownerId, options) {
4349
+ getFavoriteGroups: function (n, offset, userId, ownerId, options) {
3434
4350
  return __awaiter(this, void 0, void 0, function () {
3435
4351
  var localVarAxiosArgs;
3436
4352
  return __generator(this, function (_a) {
3437
4353
  switch (_a.label) {
3438
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFavoriteGroups(n, offset, ownerId, options)];
4354
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFavoriteGroups(n, offset, userId, ownerId, options)];
3439
4355
  case 1:
3440
4356
  localVarAxiosArgs = _a.sent();
3441
4357
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3560,16 +4476,6 @@ var FavoritesApiFactory = function (configuration, basePath, axios) {
3560
4476
  clearFavoriteGroup: function (favoriteGroupType, favoriteGroupName, userId, options) {
3561
4477
  return localVarFp.clearFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, options).then(function (request) { return request(axios, basePath); });
3562
4478
  },
3563
- /**
3564
- * Return information about a specific Favorite.
3565
- * @summary Show Favorite
3566
- * @param {string} favoriteId Must be a valid favorite ID.
3567
- * @param {*} [options] Override http request option.
3568
- * @throws {RequiredError}
3569
- */
3570
- getFavorite: function (favoriteId, options) {
3571
- return localVarFp.getFavorite(favoriteId, options).then(function (request) { return request(axios, basePath); });
3572
- },
3573
4479
  /**
3574
4480
  * Fetch information about a specific favorite group.
3575
4481
  * @summary Show Favorite Group
@@ -3587,12 +4493,13 @@ var FavoritesApiFactory = function (configuration, basePath, axios) {
3587
4493
  * @summary List Favorite Groups
3588
4494
  * @param {number} [n] The number of objects to return.
3589
4495
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
4496
+ * @param {string} [userId] Target user to see information on, admin-only.
3590
4497
  * @param {string} [ownerId] The owner of whoms favorite groups to return. Must be a UserID.
3591
4498
  * @param {*} [options] Override http request option.
3592
4499
  * @throws {RequiredError}
3593
4500
  */
3594
- getFavoriteGroups: function (n, offset, ownerId, options) {
3595
- return localVarFp.getFavoriteGroups(n, offset, ownerId, options).then(function (request) { return request(axios, basePath); });
4501
+ getFavoriteGroups: function (n, offset, userId, ownerId, options) {
4502
+ return localVarFp.getFavoriteGroups(n, offset, userId, ownerId, options).then(function (request) { return request(axios, basePath); });
3596
4503
  },
3597
4504
  /**
3598
4505
  * Return information about a specific Favorite.
@@ -3679,18 +4586,6 @@ var FavoritesApi = /** @class */ (function (_super) {
3679
4586
  var _this = this;
3680
4587
  return (0, exports.FavoritesApiFp)(this.configuration).clearFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3681
4588
  };
3682
- /**
3683
- * Return information about a specific Favorite.
3684
- * @summary Show Favorite
3685
- * @param {string} favoriteId Must be a valid favorite ID.
3686
- * @param {*} [options] Override http request option.
3687
- * @throws {RequiredError}
3688
- * @memberof FavoritesApi
3689
- */
3690
- FavoritesApi.prototype.getFavorite = function (favoriteId, options) {
3691
- var _this = this;
3692
- return (0, exports.FavoritesApiFp)(this.configuration).getFavorite(favoriteId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3693
- };
3694
4589
  /**
3695
4590
  * Fetch information about a specific favorite group.
3696
4591
  * @summary Show Favorite Group
@@ -3710,14 +4605,15 @@ var FavoritesApi = /** @class */ (function (_super) {
3710
4605
  * @summary List Favorite Groups
3711
4606
  * @param {number} [n] The number of objects to return.
3712
4607
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
4608
+ * @param {string} [userId] Target user to see information on, admin-only.
3713
4609
  * @param {string} [ownerId] The owner of whoms favorite groups to return. Must be a UserID.
3714
4610
  * @param {*} [options] Override http request option.
3715
4611
  * @throws {RequiredError}
3716
4612
  * @memberof FavoritesApi
3717
4613
  */
3718
- FavoritesApi.prototype.getFavoriteGroups = function (n, offset, ownerId, options) {
4614
+ FavoritesApi.prototype.getFavoriteGroups = function (n, offset, userId, ownerId, options) {
3719
4615
  var _this = this;
3720
- return (0, exports.FavoritesApiFp)(this.configuration).getFavoriteGroups(n, offset, ownerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4616
+ return (0, exports.FavoritesApiFp)(this.configuration).getFavoriteGroups(n, offset, userId, ownerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3721
4617
  };
3722
4618
  /**
3723
4619
  * Return information about a specific Favorite.
@@ -4289,6 +5185,145 @@ var FilesApiAxiosParamCreator = function (configuration) {
4289
5185
  });
4290
5186
  });
4291
5187
  },
5188
+ /**
5189
+ * Upload a gallery image
5190
+ * @summary Upload gallery image
5191
+ * @param {File} file The binary blob of the png file.
5192
+ * @param {*} [options] Override http request option.
5193
+ * @throws {RequiredError}
5194
+ */
5195
+ uploadGalleryImage: function (file, options) {
5196
+ if (options === void 0) { options = {}; }
5197
+ return __awaiter(_this, void 0, void 0, function () {
5198
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
5199
+ return __generator(this, function (_a) {
5200
+ // verify required parameter 'file' is not null or undefined
5201
+ (0, common_1.assertParamExists)('uploadGalleryImage', 'file', file);
5202
+ localVarPath = "/gallery";
5203
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5204
+ if (configuration) {
5205
+ baseOptions = configuration.baseOptions;
5206
+ }
5207
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
5208
+ localVarHeaderParameter = {};
5209
+ localVarQueryParameter = {};
5210
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
5211
+ // authentication authCookie required
5212
+ if (file !== undefined) {
5213
+ localVarFormParams.append('file', file);
5214
+ }
5215
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
5216
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5217
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5218
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5219
+ localVarRequestOptions.data = localVarFormParams;
5220
+ return [2 /*return*/, {
5221
+ url: (0, common_1.toPathString)(localVarUrlObj),
5222
+ options: localVarRequestOptions,
5223
+ }];
5224
+ });
5225
+ });
5226
+ },
5227
+ /**
5228
+ * Upload an icon
5229
+ * @summary Upload icon
5230
+ * @param {File} file The binary blob of the png file.
5231
+ * @param {*} [options] Override http request option.
5232
+ * @throws {RequiredError}
5233
+ */
5234
+ uploadIcon: function (file, options) {
5235
+ if (options === void 0) { options = {}; }
5236
+ return __awaiter(_this, void 0, void 0, function () {
5237
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
5238
+ return __generator(this, function (_a) {
5239
+ // verify required parameter 'file' is not null or undefined
5240
+ (0, common_1.assertParamExists)('uploadIcon', 'file', file);
5241
+ localVarPath = "/icon";
5242
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5243
+ if (configuration) {
5244
+ baseOptions = configuration.baseOptions;
5245
+ }
5246
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
5247
+ localVarHeaderParameter = {};
5248
+ localVarQueryParameter = {};
5249
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
5250
+ // authentication authCookie required
5251
+ if (file !== undefined) {
5252
+ localVarFormParams.append('file', file);
5253
+ }
5254
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
5255
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5256
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5257
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5258
+ localVarRequestOptions.data = localVarFormParams;
5259
+ return [2 /*return*/, {
5260
+ url: (0, common_1.toPathString)(localVarUrlObj),
5261
+ options: localVarRequestOptions,
5262
+ }];
5263
+ });
5264
+ });
5265
+ },
5266
+ /**
5267
+ * Upload an image, which can be an icon, gallery image, sticker or emoji
5268
+ * @summary Upload gallery image, icon, emoji or sticker
5269
+ * @param {File} file The binary blob of the png file.
5270
+ * @param {string} tag Needs to be either icon, gallery, sticker, emoji, or emojianimated
5271
+ * @param {number} [frames] Required for emojianimated. Total number of frames to be animated (2-64)
5272
+ * @param {number} [framesOverTime] Required for emojianimated. Animation frames per second (1-64)
5273
+ * @param {string} [animationStyle] Animation style for sticker, required for emoji.
5274
+ * @param {string} [maskTag] Mask of the sticker, optional for emoji.
5275
+ * @param {*} [options] Override http request option.
5276
+ * @throws {RequiredError}
5277
+ */
5278
+ uploadImage: function (file, tag, frames, framesOverTime, animationStyle, maskTag, options) {
5279
+ if (options === void 0) { options = {}; }
5280
+ return __awaiter(_this, void 0, void 0, function () {
5281
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
5282
+ return __generator(this, function (_a) {
5283
+ // verify required parameter 'file' is not null or undefined
5284
+ (0, common_1.assertParamExists)('uploadImage', 'file', file);
5285
+ // verify required parameter 'tag' is not null or undefined
5286
+ (0, common_1.assertParamExists)('uploadImage', 'tag', tag);
5287
+ localVarPath = "/file/image";
5288
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5289
+ if (configuration) {
5290
+ baseOptions = configuration.baseOptions;
5291
+ }
5292
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
5293
+ localVarHeaderParameter = {};
5294
+ localVarQueryParameter = {};
5295
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
5296
+ // authentication authCookie required
5297
+ if (file !== undefined) {
5298
+ localVarFormParams.append('file', file);
5299
+ }
5300
+ if (tag !== undefined) {
5301
+ localVarFormParams.append('tag', tag);
5302
+ }
5303
+ if (frames !== undefined) {
5304
+ localVarFormParams.append('frames', frames);
5305
+ }
5306
+ if (framesOverTime !== undefined) {
5307
+ localVarFormParams.append('framesOverTime', framesOverTime);
5308
+ }
5309
+ if (animationStyle !== undefined) {
5310
+ localVarFormParams.append('animationStyle', animationStyle);
5311
+ }
5312
+ if (maskTag !== undefined) {
5313
+ localVarFormParams.append('maskTag', maskTag);
5314
+ }
5315
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
5316
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5317
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5318
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5319
+ localVarRequestOptions.data = localVarFormParams;
5320
+ return [2 /*return*/, {
5321
+ url: (0, common_1.toPathString)(localVarUrlObj),
5322
+ options: localVarRequestOptions,
5323
+ }];
5324
+ });
5325
+ });
5326
+ },
4292
5327
  };
4293
5328
  };
4294
5329
  exports.FilesApiAxiosParamCreator = FilesApiAxiosParamCreator;
@@ -4576,6 +5611,71 @@ var FilesApiFp = function (configuration) {
4576
5611
  });
4577
5612
  });
4578
5613
  },
5614
+ /**
5615
+ * Upload a gallery image
5616
+ * @summary Upload gallery image
5617
+ * @param {File} file The binary blob of the png file.
5618
+ * @param {*} [options] Override http request option.
5619
+ * @throws {RequiredError}
5620
+ */
5621
+ uploadGalleryImage: function (file, options) {
5622
+ return __awaiter(this, void 0, void 0, function () {
5623
+ var localVarAxiosArgs;
5624
+ return __generator(this, function (_a) {
5625
+ switch (_a.label) {
5626
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadGalleryImage(file, options)];
5627
+ case 1:
5628
+ localVarAxiosArgs = _a.sent();
5629
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5630
+ }
5631
+ });
5632
+ });
5633
+ },
5634
+ /**
5635
+ * Upload an icon
5636
+ * @summary Upload icon
5637
+ * @param {File} file The binary blob of the png file.
5638
+ * @param {*} [options] Override http request option.
5639
+ * @throws {RequiredError}
5640
+ */
5641
+ uploadIcon: function (file, options) {
5642
+ return __awaiter(this, void 0, void 0, function () {
5643
+ var localVarAxiosArgs;
5644
+ return __generator(this, function (_a) {
5645
+ switch (_a.label) {
5646
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadIcon(file, options)];
5647
+ case 1:
5648
+ localVarAxiosArgs = _a.sent();
5649
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5650
+ }
5651
+ });
5652
+ });
5653
+ },
5654
+ /**
5655
+ * Upload an image, which can be an icon, gallery image, sticker or emoji
5656
+ * @summary Upload gallery image, icon, emoji or sticker
5657
+ * @param {File} file The binary blob of the png file.
5658
+ * @param {string} tag Needs to be either icon, gallery, sticker, emoji, or emojianimated
5659
+ * @param {number} [frames] Required for emojianimated. Total number of frames to be animated (2-64)
5660
+ * @param {number} [framesOverTime] Required for emojianimated. Animation frames per second (1-64)
5661
+ * @param {string} [animationStyle] Animation style for sticker, required for emoji.
5662
+ * @param {string} [maskTag] Mask of the sticker, optional for emoji.
5663
+ * @param {*} [options] Override http request option.
5664
+ * @throws {RequiredError}
5665
+ */
5666
+ uploadImage: function (file, tag, frames, framesOverTime, animationStyle, maskTag, options) {
5667
+ return __awaiter(this, void 0, void 0, function () {
5668
+ var localVarAxiosArgs;
5669
+ return __generator(this, function (_a) {
5670
+ switch (_a.label) {
5671
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadImage(file, tag, frames, framesOverTime, animationStyle, maskTag, options)];
5672
+ case 1:
5673
+ localVarAxiosArgs = _a.sent();
5674
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5675
+ }
5676
+ });
5677
+ });
5678
+ },
4579
5679
  };
4580
5680
  };
4581
5681
  exports.FilesApiFp = FilesApiFp;
@@ -4733,6 +5833,41 @@ var FilesApiFactory = function (configuration, basePath, axios) {
4733
5833
  startFileDataUpload: function (fileId, versionId, fileType, partNumber, options) {
4734
5834
  return localVarFp.startFileDataUpload(fileId, versionId, fileType, partNumber, options).then(function (request) { return request(axios, basePath); });
4735
5835
  },
5836
+ /**
5837
+ * Upload a gallery image
5838
+ * @summary Upload gallery image
5839
+ * @param {File} file The binary blob of the png file.
5840
+ * @param {*} [options] Override http request option.
5841
+ * @throws {RequiredError}
5842
+ */
5843
+ uploadGalleryImage: function (file, options) {
5844
+ return localVarFp.uploadGalleryImage(file, options).then(function (request) { return request(axios, basePath); });
5845
+ },
5846
+ /**
5847
+ * Upload an icon
5848
+ * @summary Upload icon
5849
+ * @param {File} file The binary blob of the png file.
5850
+ * @param {*} [options] Override http request option.
5851
+ * @throws {RequiredError}
5852
+ */
5853
+ uploadIcon: function (file, options) {
5854
+ return localVarFp.uploadIcon(file, options).then(function (request) { return request(axios, basePath); });
5855
+ },
5856
+ /**
5857
+ * Upload an image, which can be an icon, gallery image, sticker or emoji
5858
+ * @summary Upload gallery image, icon, emoji or sticker
5859
+ * @param {File} file The binary blob of the png file.
5860
+ * @param {string} tag Needs to be either icon, gallery, sticker, emoji, or emojianimated
5861
+ * @param {number} [frames] Required for emojianimated. Total number of frames to be animated (2-64)
5862
+ * @param {number} [framesOverTime] Required for emojianimated. Animation frames per second (1-64)
5863
+ * @param {string} [animationStyle] Animation style for sticker, required for emoji.
5864
+ * @param {string} [maskTag] Mask of the sticker, optional for emoji.
5865
+ * @param {*} [options] Override http request option.
5866
+ * @throws {RequiredError}
5867
+ */
5868
+ uploadImage: function (file, tag, frames, framesOverTime, animationStyle, maskTag, options) {
5869
+ return localVarFp.uploadImage(file, tag, frames, framesOverTime, animationStyle, maskTag, options).then(function (request) { return request(axios, basePath); });
5870
+ },
4736
5871
  };
4737
5872
  };
4738
5873
  exports.FilesApiFactory = FilesApiFactory;
@@ -4920,6 +6055,47 @@ var FilesApi = /** @class */ (function (_super) {
4920
6055
  var _this = this;
4921
6056
  return (0, exports.FilesApiFp)(this.configuration).startFileDataUpload(fileId, versionId, fileType, partNumber, options).then(function (request) { return request(_this.axios, _this.basePath); });
4922
6057
  };
6058
+ /**
6059
+ * Upload a gallery image
6060
+ * @summary Upload gallery image
6061
+ * @param {File} file The binary blob of the png file.
6062
+ * @param {*} [options] Override http request option.
6063
+ * @throws {RequiredError}
6064
+ * @memberof FilesApi
6065
+ */
6066
+ FilesApi.prototype.uploadGalleryImage = function (file, options) {
6067
+ var _this = this;
6068
+ return (0, exports.FilesApiFp)(this.configuration).uploadGalleryImage(file, options).then(function (request) { return request(_this.axios, _this.basePath); });
6069
+ };
6070
+ /**
6071
+ * Upload an icon
6072
+ * @summary Upload icon
6073
+ * @param {File} file The binary blob of the png file.
6074
+ * @param {*} [options] Override http request option.
6075
+ * @throws {RequiredError}
6076
+ * @memberof FilesApi
6077
+ */
6078
+ FilesApi.prototype.uploadIcon = function (file, options) {
6079
+ var _this = this;
6080
+ return (0, exports.FilesApiFp)(this.configuration).uploadIcon(file, options).then(function (request) { return request(_this.axios, _this.basePath); });
6081
+ };
6082
+ /**
6083
+ * Upload an image, which can be an icon, gallery image, sticker or emoji
6084
+ * @summary Upload gallery image, icon, emoji or sticker
6085
+ * @param {File} file The binary blob of the png file.
6086
+ * @param {string} tag Needs to be either icon, gallery, sticker, emoji, or emojianimated
6087
+ * @param {number} [frames] Required for emojianimated. Total number of frames to be animated (2-64)
6088
+ * @param {number} [framesOverTime] Required for emojianimated. Animation frames per second (1-64)
6089
+ * @param {string} [animationStyle] Animation style for sticker, required for emoji.
6090
+ * @param {string} [maskTag] Mask of the sticker, optional for emoji.
6091
+ * @param {*} [options] Override http request option.
6092
+ * @throws {RequiredError}
6093
+ * @memberof FilesApi
6094
+ */
6095
+ FilesApi.prototype.uploadImage = function (file, tag, frames, framesOverTime, animationStyle, maskTag, options) {
6096
+ var _this = this;
6097
+ return (0, exports.FilesApiFp)(this.configuration).uploadImage(file, tag, frames, framesOverTime, animationStyle, maskTag, options).then(function (request) { return request(_this.axios, _this.basePath); });
6098
+ };
4923
6099
  return FilesApi;
4924
6100
  }(base_1.BaseAPI));
4925
6101
  exports.FilesApi = FilesApi;
@@ -6456,13 +7632,13 @@ var GroupsApiAxiosParamCreator = function (configuration) {
6456
7632
  * @param {*} [options] Override http request option.
6457
7633
  * @throws {RequiredError}
6458
7634
  */
6459
- getGroupPost: function (groupId, n, offset, publicOnly, options) {
7635
+ getGroupPosts: function (groupId, n, offset, publicOnly, options) {
6460
7636
  if (options === void 0) { options = {}; }
6461
7637
  return __awaiter(_this, void 0, void 0, function () {
6462
7638
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6463
7639
  return __generator(this, function (_a) {
6464
7640
  // verify required parameter 'groupId' is not null or undefined
6465
- (0, common_1.assertParamExists)('getGroupPost', 'groupId', groupId);
7641
+ (0, common_1.assertParamExists)('getGroupPosts', 'groupId', groupId);
6466
7642
  localVarPath = "/groups/{groupId}/posts"
6467
7643
  .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
6468
7644
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -6539,21 +7715,17 @@ var GroupsApiAxiosParamCreator = function (configuration) {
6539
7715
  });
6540
7716
  },
6541
7717
  /**
6542
- * Returns a Group Role by ID.
6543
- * @summary Get Group Roles
6544
- * @param {string} groupId Must be a valid group ID.
7718
+ * Obtain predefined templates for group roles
7719
+ * @summary Get Group Role Templates
6545
7720
  * @param {*} [options] Override http request option.
6546
7721
  * @throws {RequiredError}
6547
7722
  */
6548
- getGroupRoles: function (groupId, options) {
7723
+ getGroupRoleTemplates: function (options) {
6549
7724
  if (options === void 0) { options = {}; }
6550
7725
  return __awaiter(_this, void 0, void 0, function () {
6551
7726
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6552
7727
  return __generator(this, function (_a) {
6553
- // verify required parameter 'groupId' is not null or undefined
6554
- (0, common_1.assertParamExists)('getGroupRoles', 'groupId', groupId);
6555
- localVarPath = "/groups/{groupId}/roles"
6556
- .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
7728
+ localVarPath = "/groups/roleTemplates";
6557
7729
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6558
7730
  if (configuration) {
6559
7731
  baseOptions = configuration.baseOptions;
@@ -6573,26 +7745,26 @@ var GroupsApiAxiosParamCreator = function (configuration) {
6573
7745
  });
6574
7746
  },
6575
7747
  /**
6576
- * Join a Group by ID and returns the member object.
6577
- * @summary Join Group
7748
+ * Returns a Group Role by ID.
7749
+ * @summary Get Group Roles
6578
7750
  * @param {string} groupId Must be a valid group ID.
6579
7751
  * @param {*} [options] Override http request option.
6580
7752
  * @throws {RequiredError}
6581
7753
  */
6582
- joinGroup: function (groupId, options) {
7754
+ getGroupRoles: function (groupId, options) {
6583
7755
  if (options === void 0) { options = {}; }
6584
7756
  return __awaiter(_this, void 0, void 0, function () {
6585
7757
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6586
7758
  return __generator(this, function (_a) {
6587
7759
  // verify required parameter 'groupId' is not null or undefined
6588
- (0, common_1.assertParamExists)('joinGroup', 'groupId', groupId);
6589
- localVarPath = "/groups/{groupId}/join"
7760
+ (0, common_1.assertParamExists)('getGroupRoles', 'groupId', groupId);
7761
+ localVarPath = "/groups/{groupId}/roles"
6590
7762
  .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
6591
7763
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6592
7764
  if (configuration) {
6593
7765
  baseOptions = configuration.baseOptions;
6594
7766
  }
6595
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7767
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
6596
7768
  localVarHeaderParameter = {};
6597
7769
  localVarQueryParameter = {};
6598
7770
  // authentication authCookie required
@@ -6607,10 +7779,44 @@ var GroupsApiAxiosParamCreator = function (configuration) {
6607
7779
  });
6608
7780
  },
6609
7781
  /**
6610
- * Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission.
6611
- * @summary Kick Group Member
7782
+ * Join a Group by ID and returns the member object.
7783
+ * @summary Join Group
6612
7784
  * @param {string} groupId Must be a valid group ID.
6613
- * @param {string} userId Must be a valid user ID.
7785
+ * @param {*} [options] Override http request option.
7786
+ * @throws {RequiredError}
7787
+ */
7788
+ joinGroup: function (groupId, options) {
7789
+ if (options === void 0) { options = {}; }
7790
+ return __awaiter(_this, void 0, void 0, function () {
7791
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7792
+ return __generator(this, function (_a) {
7793
+ // verify required parameter 'groupId' is not null or undefined
7794
+ (0, common_1.assertParamExists)('joinGroup', 'groupId', groupId);
7795
+ localVarPath = "/groups/{groupId}/join"
7796
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
7797
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7798
+ if (configuration) {
7799
+ baseOptions = configuration.baseOptions;
7800
+ }
7801
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7802
+ localVarHeaderParameter = {};
7803
+ localVarQueryParameter = {};
7804
+ // authentication authCookie required
7805
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7806
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7807
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7808
+ return [2 /*return*/, {
7809
+ url: (0, common_1.toPathString)(localVarUrlObj),
7810
+ options: localVarRequestOptions,
7811
+ }];
7812
+ });
7813
+ });
7814
+ },
7815
+ /**
7816
+ * Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission.
7817
+ * @summary Kick Group Member
7818
+ * @param {string} groupId Must be a valid group ID.
7819
+ * @param {string} userId Must be a valid user ID.
6614
7820
  * @param {*} [options] Override http request option.
6615
7821
  * @throws {RequiredError}
6616
7822
  */
@@ -7642,12 +8848,12 @@ var GroupsApiFp = function (configuration) {
7642
8848
  * @param {*} [options] Override http request option.
7643
8849
  * @throws {RequiredError}
7644
8850
  */
7645
- getGroupPost: function (groupId, n, offset, publicOnly, options) {
8851
+ getGroupPosts: function (groupId, n, offset, publicOnly, options) {
7646
8852
  return __awaiter(this, void 0, void 0, function () {
7647
8853
  var localVarAxiosArgs;
7648
8854
  return __generator(this, function (_a) {
7649
8855
  switch (_a.label) {
7650
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupPost(groupId, n, offset, publicOnly, options)];
8856
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupPosts(groupId, n, offset, publicOnly, options)];
7651
8857
  case 1:
7652
8858
  localVarAxiosArgs = _a.sent();
7653
8859
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7678,6 +8884,25 @@ var GroupsApiFp = function (configuration) {
7678
8884
  });
7679
8885
  });
7680
8886
  },
8887
+ /**
8888
+ * Obtain predefined templates for group roles
8889
+ * @summary Get Group Role Templates
8890
+ * @param {*} [options] Override http request option.
8891
+ * @throws {RequiredError}
8892
+ */
8893
+ getGroupRoleTemplates: function (options) {
8894
+ return __awaiter(this, void 0, void 0, function () {
8895
+ var localVarAxiosArgs;
8896
+ return __generator(this, function (_a) {
8897
+ switch (_a.label) {
8898
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupRoleTemplates(options)];
8899
+ case 1:
8900
+ localVarAxiosArgs = _a.sent();
8901
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8902
+ }
8903
+ });
8904
+ });
8905
+ },
7681
8906
  /**
7682
8907
  * Returns a Group Role by ID.
7683
8908
  * @summary Get Group Roles
@@ -8282,8 +9507,8 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
8282
9507
  * @param {*} [options] Override http request option.
8283
9508
  * @throws {RequiredError}
8284
9509
  */
8285
- getGroupPost: function (groupId, n, offset, publicOnly, options) {
8286
- return localVarFp.getGroupPost(groupId, n, offset, publicOnly, options).then(function (request) { return request(axios, basePath); });
9510
+ getGroupPosts: function (groupId, n, offset, publicOnly, options) {
9511
+ return localVarFp.getGroupPosts(groupId, n, offset, publicOnly, options).then(function (request) { return request(axios, basePath); });
8287
9512
  },
8288
9513
  /**
8289
9514
  * Returns a list of members that have requested to join the Group.
@@ -8298,6 +9523,15 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
8298
9523
  getGroupRequests: function (groupId, n, offset, blocked, options) {
8299
9524
  return localVarFp.getGroupRequests(groupId, n, offset, blocked, options).then(function (request) { return request(axios, basePath); });
8300
9525
  },
9526
+ /**
9527
+ * Obtain predefined templates for group roles
9528
+ * @summary Get Group Role Templates
9529
+ * @param {*} [options] Override http request option.
9530
+ * @throws {RequiredError}
9531
+ */
9532
+ getGroupRoleTemplates: function (options) {
9533
+ return localVarFp.getGroupRoleTemplates(options).then(function (request) { return request(axios, basePath); });
9534
+ },
8301
9535
  /**
8302
9536
  * Returns a Group Role by ID.
8303
9537
  * @summary Get Group Roles
@@ -8831,9 +10065,9 @@ var GroupsApi = /** @class */ (function (_super) {
8831
10065
  * @throws {RequiredError}
8832
10066
  * @memberof GroupsApi
8833
10067
  */
8834
- GroupsApi.prototype.getGroupPost = function (groupId, n, offset, publicOnly, options) {
10068
+ GroupsApi.prototype.getGroupPosts = function (groupId, n, offset, publicOnly, options) {
8835
10069
  var _this = this;
8836
- return (0, exports.GroupsApiFp)(this.configuration).getGroupPost(groupId, n, offset, publicOnly, options).then(function (request) { return request(_this.axios, _this.basePath); });
10070
+ return (0, exports.GroupsApiFp)(this.configuration).getGroupPosts(groupId, n, offset, publicOnly, options).then(function (request) { return request(_this.axios, _this.basePath); });
8837
10071
  };
8838
10072
  /**
8839
10073
  * Returns a list of members that have requested to join the Group.
@@ -8850,6 +10084,17 @@ var GroupsApi = /** @class */ (function (_super) {
8850
10084
  var _this = this;
8851
10085
  return (0, exports.GroupsApiFp)(this.configuration).getGroupRequests(groupId, n, offset, blocked, options).then(function (request) { return request(_this.axios, _this.basePath); });
8852
10086
  };
10087
+ /**
10088
+ * Obtain predefined templates for group roles
10089
+ * @summary Get Group Role Templates
10090
+ * @param {*} [options] Override http request option.
10091
+ * @throws {RequiredError}
10092
+ * @memberof GroupsApi
10093
+ */
10094
+ GroupsApi.prototype.getGroupRoleTemplates = function (options) {
10095
+ var _this = this;
10096
+ return (0, exports.GroupsApiFp)(this.configuration).getGroupRoleTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
10097
+ };
8853
10098
  /**
8854
10099
  * Returns a Group Role by ID.
8855
10100
  * @summary Get Group Roles
@@ -9034,7 +10279,7 @@ var InstancesApiAxiosParamCreator = function (configuration) {
9034
10279
  var _this = this;
9035
10280
  return {
9036
10281
  /**
9037
- * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
10282
+ * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-manage` permission.
9038
10283
  * @summary Close Instance
9039
10284
  * @param {string} worldId Must be a valid world ID.
9040
10285
  * @param {string} instanceId Must be a valid instance ID.
@@ -9237,7 +10482,7 @@ var InstancesApiFp = function (configuration) {
9237
10482
  var localVarAxiosParamCreator = (0, exports.InstancesApiAxiosParamCreator)(configuration);
9238
10483
  return {
9239
10484
  /**
9240
- * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
10485
+ * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-manage` permission.
9241
10486
  * @summary Close Instance
9242
10487
  * @param {string} worldId Must be a valid world ID.
9243
10488
  * @param {string} instanceId Must be a valid instance ID.
@@ -9352,7 +10597,7 @@ var InstancesApiFactory = function (configuration, basePath, axios) {
9352
10597
  var localVarFp = (0, exports.InstancesApiFp)(configuration);
9353
10598
  return {
9354
10599
  /**
9355
- * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
10600
+ * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-manage` permission.
9356
10601
  * @summary Close Instance
9357
10602
  * @param {string} worldId Must be a valid world ID.
9358
10603
  * @param {string} instanceId Must be a valid instance ID.
@@ -9421,7 +10666,7 @@ var InstancesApi = /** @class */ (function (_super) {
9421
10666
  return _super !== null && _super.apply(this, arguments) || this;
9422
10667
  }
9423
10668
  /**
9424
- * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
10669
+ * Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-manage` permission.
9425
10670
  * @summary Close Instance
9426
10671
  * @param {string} worldId Must be a valid world ID.
9427
10672
  * @param {string} instanceId Must be a valid instance ID.
@@ -9652,6 +10897,55 @@ var InviteApiAxiosParamCreator = function (configuration) {
9652
10897
  });
9653
10898
  });
9654
10899
  },
10900
+ /**
10901
+ * Sends an photo invite to a user. Returns the Notification of type `invite` that was sent.
10902
+ * @summary Invite User with photo
10903
+ * @param {string} userId Must be a valid user ID.
10904
+ * @param {File} image The binary blob of the png file.
10905
+ * @param {InviteRequest} data
10906
+ * @param {*} [options] Override http request option.
10907
+ * @throws {RequiredError}
10908
+ */
10909
+ inviteUserWithPhoto: function (userId, image, data, options) {
10910
+ if (options === void 0) { options = {}; }
10911
+ return __awaiter(_this, void 0, void 0, function () {
10912
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
10913
+ return __generator(this, function (_a) {
10914
+ // verify required parameter 'userId' is not null or undefined
10915
+ (0, common_1.assertParamExists)('inviteUserWithPhoto', 'userId', userId);
10916
+ // verify required parameter 'image' is not null or undefined
10917
+ (0, common_1.assertParamExists)('inviteUserWithPhoto', 'image', image);
10918
+ // verify required parameter 'data' is not null or undefined
10919
+ (0, common_1.assertParamExists)('inviteUserWithPhoto', 'data', data);
10920
+ localVarPath = "/invite/{userId}/photo"
10921
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
10922
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10923
+ if (configuration) {
10924
+ baseOptions = configuration.baseOptions;
10925
+ }
10926
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10927
+ localVarHeaderParameter = {};
10928
+ localVarQueryParameter = {};
10929
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
10930
+ // authentication authCookie required
10931
+ if (image !== undefined) {
10932
+ localVarFormParams.append('image', image);
10933
+ }
10934
+ if (data !== undefined) {
10935
+ localVarFormParams.append('data', new Blob([JSON.stringify(data)], { type: "application/json", }));
10936
+ }
10937
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
10938
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10939
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10940
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10941
+ localVarRequestOptions.data = localVarFormParams;
10942
+ return [2 /*return*/, {
10943
+ url: (0, common_1.toPathString)(localVarUrlObj),
10944
+ options: localVarRequestOptions,
10945
+ }];
10946
+ });
10947
+ });
10948
+ },
9655
10949
  /**
9656
10950
  * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
9657
10951
  * @summary Request Invite
@@ -9689,6 +10983,55 @@ var InviteApiAxiosParamCreator = function (configuration) {
9689
10983
  });
9690
10984
  });
9691
10985
  },
10986
+ /**
10987
+ * Requests with photo an invite from a user. Returns the Notification of type `requestInvite` that was sent.
10988
+ * @summary Request Invite with photo
10989
+ * @param {string} userId Must be a valid user ID.
10990
+ * @param {File} image The binary blob of the png file.
10991
+ * @param {RequestInviteRequest} data
10992
+ * @param {*} [options] Override http request option.
10993
+ * @throws {RequiredError}
10994
+ */
10995
+ requestInviteWithPhoto: function (userId, image, data, options) {
10996
+ if (options === void 0) { options = {}; }
10997
+ return __awaiter(_this, void 0, void 0, function () {
10998
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
10999
+ return __generator(this, function (_a) {
11000
+ // verify required parameter 'userId' is not null or undefined
11001
+ (0, common_1.assertParamExists)('requestInviteWithPhoto', 'userId', userId);
11002
+ // verify required parameter 'image' is not null or undefined
11003
+ (0, common_1.assertParamExists)('requestInviteWithPhoto', 'image', image);
11004
+ // verify required parameter 'data' is not null or undefined
11005
+ (0, common_1.assertParamExists)('requestInviteWithPhoto', 'data', data);
11006
+ localVarPath = "/requestInvite/{userId}/photo"
11007
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
11008
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11009
+ if (configuration) {
11010
+ baseOptions = configuration.baseOptions;
11011
+ }
11012
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11013
+ localVarHeaderParameter = {};
11014
+ localVarQueryParameter = {};
11015
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
11016
+ // authentication authCookie required
11017
+ if (image !== undefined) {
11018
+ localVarFormParams.append('image', image);
11019
+ }
11020
+ if (data !== undefined) {
11021
+ localVarFormParams.append('data', new Blob([JSON.stringify(data)], { type: "application/json", }));
11022
+ }
11023
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
11024
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11025
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11026
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11027
+ localVarRequestOptions.data = localVarFormParams;
11028
+ return [2 /*return*/, {
11029
+ url: (0, common_1.toPathString)(localVarUrlObj),
11030
+ options: localVarRequestOptions,
11031
+ }];
11032
+ });
11033
+ });
11034
+ },
9692
11035
  /**
9693
11036
  * Resets a single Invite Message back to its 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.
9694
11037
  * @summary Reset Invite Message
@@ -9732,7 +11075,7 @@ var InviteApiAxiosParamCreator = function (configuration) {
9732
11075
  });
9733
11076
  },
9734
11077
  /**
9735
- * Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
11078
+ * Respond to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.
9736
11079
  * @summary Respond Invite
9737
11080
  * @param {string} notificationId Must be a valid notification ID.
9738
11081
  * @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
@@ -9770,6 +11113,55 @@ var InviteApiAxiosParamCreator = function (configuration) {
9770
11113
  });
9771
11114
  });
9772
11115
  },
11116
+ /**
11117
+ * Respond with photo to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.\'
11118
+ * @summary Respond Invite with photo
11119
+ * @param {string} notificationId Must be a valid notification ID.
11120
+ * @param {File} image The binary blob of the png file.
11121
+ * @param {InviteResponse} data
11122
+ * @param {*} [options] Override http request option.
11123
+ * @throws {RequiredError}
11124
+ */
11125
+ respondInviteWithPhoto: function (notificationId, image, data, options) {
11126
+ if (options === void 0) { options = {}; }
11127
+ return __awaiter(_this, void 0, void 0, function () {
11128
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
11129
+ return __generator(this, function (_a) {
11130
+ // verify required parameter 'notificationId' is not null or undefined
11131
+ (0, common_1.assertParamExists)('respondInviteWithPhoto', 'notificationId', notificationId);
11132
+ // verify required parameter 'image' is not null or undefined
11133
+ (0, common_1.assertParamExists)('respondInviteWithPhoto', 'image', image);
11134
+ // verify required parameter 'data' is not null or undefined
11135
+ (0, common_1.assertParamExists)('respondInviteWithPhoto', 'data', data);
11136
+ localVarPath = "/invite/{notificationId}/response/photo"
11137
+ .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
11138
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11139
+ if (configuration) {
11140
+ baseOptions = configuration.baseOptions;
11141
+ }
11142
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11143
+ localVarHeaderParameter = {};
11144
+ localVarQueryParameter = {};
11145
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
11146
+ // authentication authCookie required
11147
+ if (image !== undefined) {
11148
+ localVarFormParams.append('image', image);
11149
+ }
11150
+ if (data !== undefined) {
11151
+ localVarFormParams.append('data', new Blob([JSON.stringify(data)], { type: "application/json", }));
11152
+ }
11153
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
11154
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11155
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11156
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11157
+ localVarRequestOptions.data = localVarFormParams;
11158
+ return [2 /*return*/, {
11159
+ url: (0, common_1.toPathString)(localVarUrlObj),
11160
+ options: localVarRequestOptions,
11161
+ }];
11162
+ });
11163
+ });
11164
+ },
9773
11165
  /**
9774
11166
  * 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
9775
11167
  * @summary Update Invite Message
@@ -9910,6 +11302,28 @@ var InviteApiFp = function (configuration) {
9910
11302
  });
9911
11303
  });
9912
11304
  },
11305
+ /**
11306
+ * Sends an photo invite to a user. Returns the Notification of type `invite` that was sent.
11307
+ * @summary Invite User with photo
11308
+ * @param {string} userId Must be a valid user ID.
11309
+ * @param {File} image The binary blob of the png file.
11310
+ * @param {InviteRequest} data
11311
+ * @param {*} [options] Override http request option.
11312
+ * @throws {RequiredError}
11313
+ */
11314
+ inviteUserWithPhoto: function (userId, image, data, options) {
11315
+ return __awaiter(this, void 0, void 0, function () {
11316
+ var localVarAxiosArgs;
11317
+ return __generator(this, function (_a) {
11318
+ switch (_a.label) {
11319
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUserWithPhoto(userId, image, data, options)];
11320
+ case 1:
11321
+ localVarAxiosArgs = _a.sent();
11322
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11323
+ }
11324
+ });
11325
+ });
11326
+ },
9913
11327
  /**
9914
11328
  * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
9915
11329
  * @summary Request Invite
@@ -9931,6 +11345,28 @@ var InviteApiFp = function (configuration) {
9931
11345
  });
9932
11346
  });
9933
11347
  },
11348
+ /**
11349
+ * Requests with photo an invite from a user. Returns the Notification of type `requestInvite` that was sent.
11350
+ * @summary Request Invite with photo
11351
+ * @param {string} userId Must be a valid user ID.
11352
+ * @param {File} image The binary blob of the png file.
11353
+ * @param {RequestInviteRequest} data
11354
+ * @param {*} [options] Override http request option.
11355
+ * @throws {RequiredError}
11356
+ */
11357
+ requestInviteWithPhoto: function (userId, image, data, options) {
11358
+ return __awaiter(this, void 0, void 0, function () {
11359
+ var localVarAxiosArgs;
11360
+ return __generator(this, function (_a) {
11361
+ switch (_a.label) {
11362
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.requestInviteWithPhoto(userId, image, data, options)];
11363
+ case 1:
11364
+ localVarAxiosArgs = _a.sent();
11365
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11366
+ }
11367
+ });
11368
+ });
11369
+ },
9934
11370
  /**
9935
11371
  * Resets a single Invite Message back to its 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.
9936
11372
  * @summary Reset Invite Message
@@ -9954,7 +11390,7 @@ var InviteApiFp = function (configuration) {
9954
11390
  });
9955
11391
  },
9956
11392
  /**
9957
- * Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
11393
+ * Respond to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.
9958
11394
  * @summary Respond Invite
9959
11395
  * @param {string} notificationId Must be a valid notification ID.
9960
11396
  * @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
@@ -9974,6 +11410,28 @@ var InviteApiFp = function (configuration) {
9974
11410
  });
9975
11411
  });
9976
11412
  },
11413
+ /**
11414
+ * Respond with photo to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.\'
11415
+ * @summary Respond Invite with photo
11416
+ * @param {string} notificationId Must be a valid notification ID.
11417
+ * @param {File} image The binary blob of the png file.
11418
+ * @param {InviteResponse} data
11419
+ * @param {*} [options] Override http request option.
11420
+ * @throws {RequiredError}
11421
+ */
11422
+ respondInviteWithPhoto: function (notificationId, image, data, options) {
11423
+ return __awaiter(this, void 0, void 0, function () {
11424
+ var localVarAxiosArgs;
11425
+ return __generator(this, function (_a) {
11426
+ switch (_a.label) {
11427
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.respondInviteWithPhoto(notificationId, image, data, options)];
11428
+ case 1:
11429
+ localVarAxiosArgs = _a.sent();
11430
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11431
+ }
11432
+ });
11433
+ });
11434
+ },
9977
11435
  /**
9978
11436
  * 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
9979
11437
  * @summary Update Invite Message
@@ -10052,6 +11510,18 @@ var InviteApiFactory = function (configuration, basePath, axios) {
10052
11510
  inviteUser: function (userId, inviteRequest, options) {
10053
11511
  return localVarFp.inviteUser(userId, inviteRequest, options).then(function (request) { return request(axios, basePath); });
10054
11512
  },
11513
+ /**
11514
+ * Sends an photo invite to a user. Returns the Notification of type `invite` that was sent.
11515
+ * @summary Invite User with photo
11516
+ * @param {string} userId Must be a valid user ID.
11517
+ * @param {File} image The binary blob of the png file.
11518
+ * @param {InviteRequest} data
11519
+ * @param {*} [options] Override http request option.
11520
+ * @throws {RequiredError}
11521
+ */
11522
+ inviteUserWithPhoto: function (userId, image, data, options) {
11523
+ return localVarFp.inviteUserWithPhoto(userId, image, data, options).then(function (request) { return request(axios, basePath); });
11524
+ },
10055
11525
  /**
10056
11526
  * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
10057
11527
  * @summary Request Invite
@@ -10063,6 +11533,18 @@ var InviteApiFactory = function (configuration, basePath, axios) {
10063
11533
  requestInvite: function (userId, requestInviteRequest, options) {
10064
11534
  return localVarFp.requestInvite(userId, requestInviteRequest, options).then(function (request) { return request(axios, basePath); });
10065
11535
  },
11536
+ /**
11537
+ * Requests with photo an invite from a user. Returns the Notification of type `requestInvite` that was sent.
11538
+ * @summary Request Invite with photo
11539
+ * @param {string} userId Must be a valid user ID.
11540
+ * @param {File} image The binary blob of the png file.
11541
+ * @param {RequestInviteRequest} data
11542
+ * @param {*} [options] Override http request option.
11543
+ * @throws {RequiredError}
11544
+ */
11545
+ requestInviteWithPhoto: function (userId, image, data, options) {
11546
+ return localVarFp.requestInviteWithPhoto(userId, image, data, options).then(function (request) { return request(axios, basePath); });
11547
+ },
10066
11548
  /**
10067
11549
  * Resets a single Invite Message back to its 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.
10068
11550
  * @summary Reset Invite Message
@@ -10076,7 +11558,7 @@ var InviteApiFactory = function (configuration, basePath, axios) {
10076
11558
  return localVarFp.resetInviteMessage(userId, messageType, slot, options).then(function (request) { return request(axios, basePath); });
10077
11559
  },
10078
11560
  /**
10079
- * Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
11561
+ * Respond to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.
10080
11562
  * @summary Respond Invite
10081
11563
  * @param {string} notificationId Must be a valid notification ID.
10082
11564
  * @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
@@ -10086,6 +11568,18 @@ var InviteApiFactory = function (configuration, basePath, axios) {
10086
11568
  respondInvite: function (notificationId, inviteResponse, options) {
10087
11569
  return localVarFp.respondInvite(notificationId, inviteResponse, options).then(function (request) { return request(axios, basePath); });
10088
11570
  },
11571
+ /**
11572
+ * Respond with photo to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.\'
11573
+ * @summary Respond Invite with photo
11574
+ * @param {string} notificationId Must be a valid notification ID.
11575
+ * @param {File} image The binary blob of the png file.
11576
+ * @param {InviteResponse} data
11577
+ * @param {*} [options] Override http request option.
11578
+ * @throws {RequiredError}
11579
+ */
11580
+ respondInviteWithPhoto: function (notificationId, image, data, options) {
11581
+ return localVarFp.respondInviteWithPhoto(notificationId, image, data, options).then(function (request) { return request(axios, basePath); });
11582
+ },
10089
11583
  /**
10090
11584
  * 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
10091
11585
  * @summary Update Invite Message
@@ -10166,6 +11660,20 @@ var InviteApi = /** @class */ (function (_super) {
10166
11660
  var _this = this;
10167
11661
  return (0, exports.InviteApiFp)(this.configuration).inviteUser(userId, inviteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10168
11662
  };
11663
+ /**
11664
+ * Sends an photo invite to a user. Returns the Notification of type `invite` that was sent.
11665
+ * @summary Invite User with photo
11666
+ * @param {string} userId Must be a valid user ID.
11667
+ * @param {File} image The binary blob of the png file.
11668
+ * @param {InviteRequest} data
11669
+ * @param {*} [options] Override http request option.
11670
+ * @throws {RequiredError}
11671
+ * @memberof InviteApi
11672
+ */
11673
+ InviteApi.prototype.inviteUserWithPhoto = function (userId, image, data, options) {
11674
+ var _this = this;
11675
+ return (0, exports.InviteApiFp)(this.configuration).inviteUserWithPhoto(userId, image, data, options).then(function (request) { return request(_this.axios, _this.basePath); });
11676
+ };
10169
11677
  /**
10170
11678
  * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
10171
11679
  * @summary Request Invite
@@ -10179,6 +11687,20 @@ var InviteApi = /** @class */ (function (_super) {
10179
11687
  var _this = this;
10180
11688
  return (0, exports.InviteApiFp)(this.configuration).requestInvite(userId, requestInviteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10181
11689
  };
11690
+ /**
11691
+ * Requests with photo an invite from a user. Returns the Notification of type `requestInvite` that was sent.
11692
+ * @summary Request Invite with photo
11693
+ * @param {string} userId Must be a valid user ID.
11694
+ * @param {File} image The binary blob of the png file.
11695
+ * @param {RequestInviteRequest} data
11696
+ * @param {*} [options] Override http request option.
11697
+ * @throws {RequiredError}
11698
+ * @memberof InviteApi
11699
+ */
11700
+ InviteApi.prototype.requestInviteWithPhoto = function (userId, image, data, options) {
11701
+ var _this = this;
11702
+ return (0, exports.InviteApiFp)(this.configuration).requestInviteWithPhoto(userId, image, data, options).then(function (request) { return request(_this.axios, _this.basePath); });
11703
+ };
10182
11704
  /**
10183
11705
  * Resets a single Invite Message back to its 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.
10184
11706
  * @summary Reset Invite Message
@@ -10194,7 +11716,7 @@ var InviteApi = /** @class */ (function (_super) {
10194
11716
  return (0, exports.InviteApiFp)(this.configuration).resetInviteMessage(userId, messageType, slot, options).then(function (request) { return request(_this.axios, _this.basePath); });
10195
11717
  };
10196
11718
  /**
10197
- * Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
11719
+ * Respond to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.
10198
11720
  * @summary Respond Invite
10199
11721
  * @param {string} notificationId Must be a valid notification ID.
10200
11722
  * @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
@@ -10206,6 +11728,20 @@ var InviteApi = /** @class */ (function (_super) {
10206
11728
  var _this = this;
10207
11729
  return (0, exports.InviteApiFp)(this.configuration).respondInvite(notificationId, inviteResponse, options).then(function (request) { return request(_this.axios, _this.basePath); });
10208
11730
  };
11731
+ /**
11732
+ * Respond with photo to an invite or invite request without accepting it. `:notificationId` is the ID of the requesting notification. In case the notification being replied to is an invite, the `responseSlot` refers to a response message from the the `message` collection. In case the notification is an invite request, it will refer to one from the `requestResponse` collection instead.\'
11733
+ * @summary Respond Invite with photo
11734
+ * @param {string} notificationId Must be a valid notification ID.
11735
+ * @param {File} image The binary blob of the png file.
11736
+ * @param {InviteResponse} data
11737
+ * @param {*} [options] Override http request option.
11738
+ * @throws {RequiredError}
11739
+ * @memberof InviteApi
11740
+ */
11741
+ InviteApi.prototype.respondInviteWithPhoto = function (notificationId, image, data, options) {
11742
+ var _this = this;
11743
+ return (0, exports.InviteApiFp)(this.configuration).respondInviteWithPhoto(notificationId, image, data, options).then(function (request) { return request(_this.axios, _this.basePath); });
11744
+ };
10209
11745
  /**
10210
11746
  * 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
10211
11747
  * @summary Update Invite Message
@@ -11475,94 +13011,572 @@ var PlayermoderationApiFactory = function (configuration, basePath, axios) {
11475
13011
  * @param {*} [options] Override http request option.
11476
13012
  * @throws {RequiredError}
11477
13013
  */
11478
- getPlayerModerations: function (type, targetUserId, options) {
11479
- return localVarFp.getPlayerModerations(type, targetUserId, options).then(function (request) { return request(axios, basePath); });
13014
+ getPlayerModerations: function (type, targetUserId, options) {
13015
+ return localVarFp.getPlayerModerations(type, targetUserId, options).then(function (request) { return request(axios, basePath); });
13016
+ },
13017
+ /**
13018
+ * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13019
+ * @summary Moderate User
13020
+ * @param {ModerateUserRequest} moderateUserRequest
13021
+ * @param {*} [options] Override http request option.
13022
+ * @throws {RequiredError}
13023
+ */
13024
+ moderateUser: function (moderateUserRequest, options) {
13025
+ return localVarFp.moderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13026
+ },
13027
+ /**
13028
+ * 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.
13029
+ * @summary Unmoderate User
13030
+ * @param {ModerateUserRequest} moderateUserRequest
13031
+ * @param {*} [options] Override http request option.
13032
+ * @throws {RequiredError}
13033
+ */
13034
+ unmoderateUser: function (moderateUserRequest, options) {
13035
+ return localVarFp.unmoderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13036
+ },
13037
+ };
13038
+ };
13039
+ exports.PlayermoderationApiFactory = PlayermoderationApiFactory;
13040
+ /**
13041
+ * PlayermoderationApi - object-oriented interface
13042
+ * @export
13043
+ * @class PlayermoderationApi
13044
+ * @extends {BaseAPI}
13045
+ */
13046
+ var PlayermoderationApi = /** @class */ (function (_super) {
13047
+ __extends(PlayermoderationApi, _super);
13048
+ function PlayermoderationApi() {
13049
+ return _super !== null && _super.apply(this, arguments) || this;
13050
+ }
13051
+ /**
13052
+ * ⚠️ **This will delete every single player moderation you\'ve ever made.**
13053
+ * @summary Clear All Player Moderations
13054
+ * @param {*} [options] Override http request option.
13055
+ * @throws {RequiredError}
13056
+ * @memberof PlayermoderationApi
13057
+ */
13058
+ PlayermoderationApi.prototype.clearAllPlayerModerations = function (options) {
13059
+ var _this = this;
13060
+ return (0, exports.PlayermoderationApiFp)(this.configuration).clearAllPlayerModerations(options).then(function (request) { return request(_this.axios, _this.basePath); });
13061
+ };
13062
+ /**
13063
+ * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
13064
+ * @summary Search Player Moderations
13065
+ * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
13066
+ * @param {string} [targetUserId] Must be valid UserID.
13067
+ * @param {*} [options] Override http request option.
13068
+ * @throws {RequiredError}
13069
+ * @memberof PlayermoderationApi
13070
+ */
13071
+ PlayermoderationApi.prototype.getPlayerModerations = function (type, targetUserId, options) {
13072
+ var _this = this;
13073
+ return (0, exports.PlayermoderationApiFp)(this.configuration).getPlayerModerations(type, targetUserId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13074
+ };
13075
+ /**
13076
+ * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13077
+ * @summary Moderate User
13078
+ * @param {ModerateUserRequest} moderateUserRequest
13079
+ * @param {*} [options] Override http request option.
13080
+ * @throws {RequiredError}
13081
+ * @memberof PlayermoderationApi
13082
+ */
13083
+ PlayermoderationApi.prototype.moderateUser = function (moderateUserRequest, options) {
13084
+ var _this = this;
13085
+ return (0, exports.PlayermoderationApiFp)(this.configuration).moderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13086
+ };
13087
+ /**
13088
+ * 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.
13089
+ * @summary Unmoderate User
13090
+ * @param {ModerateUserRequest} moderateUserRequest
13091
+ * @param {*} [options] Override http request option.
13092
+ * @throws {RequiredError}
13093
+ * @memberof PlayermoderationApi
13094
+ */
13095
+ PlayermoderationApi.prototype.unmoderateUser = function (moderateUserRequest, options) {
13096
+ var _this = this;
13097
+ return (0, exports.PlayermoderationApiFp)(this.configuration).unmoderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13098
+ };
13099
+ return PlayermoderationApi;
13100
+ }(base_1.BaseAPI));
13101
+ exports.PlayermoderationApi = PlayermoderationApi;
13102
+ /**
13103
+ * PrintsApi - axios parameter creator
13104
+ * @export
13105
+ */
13106
+ var PrintsApiAxiosParamCreator = function (configuration) {
13107
+ var _this = this;
13108
+ return {
13109
+ /**
13110
+ * Returns a print.
13111
+ * @summary Delete Print
13112
+ * @param {string} printId Print ID.
13113
+ * @param {*} [options] Override http request option.
13114
+ * @throws {RequiredError}
13115
+ */
13116
+ deletePrint: function (printId, options) {
13117
+ if (options === void 0) { options = {}; }
13118
+ return __awaiter(_this, void 0, void 0, function () {
13119
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13120
+ return __generator(this, function (_a) {
13121
+ // verify required parameter 'printId' is not null or undefined
13122
+ (0, common_1.assertParamExists)('deletePrint', 'printId', printId);
13123
+ localVarPath = "/prints/{printId}"
13124
+ .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13125
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13126
+ if (configuration) {
13127
+ baseOptions = configuration.baseOptions;
13128
+ }
13129
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
13130
+ localVarHeaderParameter = {};
13131
+ localVarQueryParameter = {};
13132
+ // authentication authCookie required
13133
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13134
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13135
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13136
+ return [2 /*return*/, {
13137
+ url: (0, common_1.toPathString)(localVarUrlObj),
13138
+ options: localVarRequestOptions,
13139
+ }];
13140
+ });
13141
+ });
13142
+ },
13143
+ /**
13144
+ * Edits a print.
13145
+ * @summary Edit Print
13146
+ * @param {string} printId Print ID.
13147
+ * @param {File} image The binary blob of the png file.
13148
+ * @param {string} [note] The caption for the image.
13149
+ * @param {*} [options] Override http request option.
13150
+ * @throws {RequiredError}
13151
+ */
13152
+ editPrint: function (printId, image, note, options) {
13153
+ if (options === void 0) { options = {}; }
13154
+ return __awaiter(_this, void 0, void 0, function () {
13155
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
13156
+ return __generator(this, function (_a) {
13157
+ // verify required parameter 'printId' is not null or undefined
13158
+ (0, common_1.assertParamExists)('editPrint', 'printId', printId);
13159
+ // verify required parameter 'image' is not null or undefined
13160
+ (0, common_1.assertParamExists)('editPrint', 'image', image);
13161
+ localVarPath = "/prints/{printId}"
13162
+ .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13164
+ if (configuration) {
13165
+ baseOptions = configuration.baseOptions;
13166
+ }
13167
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13168
+ localVarHeaderParameter = {};
13169
+ localVarQueryParameter = {};
13170
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
13171
+ // authentication authCookie required
13172
+ if (image !== undefined) {
13173
+ localVarFormParams.append('image', image);
13174
+ }
13175
+ if (note !== undefined) {
13176
+ localVarFormParams.append('note', note);
13177
+ }
13178
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
13179
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13180
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13181
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13182
+ localVarRequestOptions.data = localVarFormParams;
13183
+ return [2 /*return*/, {
13184
+ url: (0, common_1.toPathString)(localVarUrlObj),
13185
+ options: localVarRequestOptions,
13186
+ }];
13187
+ });
13188
+ });
13189
+ },
13190
+ /**
13191
+ * Returns a print.
13192
+ * @summary Get Print
13193
+ * @param {string} printId Print ID.
13194
+ * @param {*} [options] Override http request option.
13195
+ * @throws {RequiredError}
13196
+ */
13197
+ getPrint: function (printId, options) {
13198
+ if (options === void 0) { options = {}; }
13199
+ return __awaiter(_this, void 0, void 0, function () {
13200
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13201
+ return __generator(this, function (_a) {
13202
+ // verify required parameter 'printId' is not null or undefined
13203
+ (0, common_1.assertParamExists)('getPrint', 'printId', printId);
13204
+ localVarPath = "/prints/{printId}"
13205
+ .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13206
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13207
+ if (configuration) {
13208
+ baseOptions = configuration.baseOptions;
13209
+ }
13210
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13211
+ localVarHeaderParameter = {};
13212
+ localVarQueryParameter = {};
13213
+ // authentication authCookie required
13214
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13215
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13216
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13217
+ return [2 /*return*/, {
13218
+ url: (0, common_1.toPathString)(localVarUrlObj),
13219
+ options: localVarRequestOptions,
13220
+ }];
13221
+ });
13222
+ });
13223
+ },
13224
+ /**
13225
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13226
+ * @summary Get Own Prints
13227
+ * @param {string} userId Must be a valid user ID.
13228
+ * @param {*} [options] Override http request option.
13229
+ * @throws {RequiredError}
13230
+ */
13231
+ getUserPrints: function (userId, options) {
13232
+ if (options === void 0) { options = {}; }
13233
+ return __awaiter(_this, void 0, void 0, function () {
13234
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13235
+ return __generator(this, function (_a) {
13236
+ // verify required parameter 'userId' is not null or undefined
13237
+ (0, common_1.assertParamExists)('getUserPrints', 'userId', userId);
13238
+ localVarPath = "/prints/user/{userId}"
13239
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
13240
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13241
+ if (configuration) {
13242
+ baseOptions = configuration.baseOptions;
13243
+ }
13244
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13245
+ localVarHeaderParameter = {};
13246
+ localVarQueryParameter = {};
13247
+ // authentication authCookie required
13248
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13249
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13250
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13251
+ return [2 /*return*/, {
13252
+ url: (0, common_1.toPathString)(localVarUrlObj),
13253
+ options: localVarRequestOptions,
13254
+ }];
13255
+ });
13256
+ });
13257
+ },
13258
+ /**
13259
+ * Uploads and creates a print.
13260
+ * @summary Upload Print
13261
+ * @param {File} image The binary blob of the png file.
13262
+ * @param {string} timestamp The time the image was captured.
13263
+ * @param {string} [note] The caption for the image.
13264
+ * @param {string} [worldId] The id of the world in which the image was captured.
13265
+ * @param {string} [worldName] The name of the world in which the image was captured.
13266
+ * @param {*} [options] Override http request option.
13267
+ * @throws {RequiredError}
13268
+ */
13269
+ uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13270
+ if (options === void 0) { options = {}; }
13271
+ return __awaiter(_this, void 0, void 0, function () {
13272
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
13273
+ return __generator(this, function (_a) {
13274
+ // verify required parameter 'image' is not null or undefined
13275
+ (0, common_1.assertParamExists)('uploadPrint', 'image', image);
13276
+ // verify required parameter 'timestamp' is not null or undefined
13277
+ (0, common_1.assertParamExists)('uploadPrint', 'timestamp', timestamp);
13278
+ localVarPath = "/prints";
13279
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13280
+ if (configuration) {
13281
+ baseOptions = configuration.baseOptions;
13282
+ }
13283
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13284
+ localVarHeaderParameter = {};
13285
+ localVarQueryParameter = {};
13286
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
13287
+ // authentication authCookie required
13288
+ if (image !== undefined) {
13289
+ localVarFormParams.append('image', image);
13290
+ }
13291
+ if (timestamp !== undefined) {
13292
+ localVarFormParams.append('timestamp', timestamp);
13293
+ }
13294
+ if (note !== undefined) {
13295
+ localVarFormParams.append('note', note);
13296
+ }
13297
+ if (worldId !== undefined) {
13298
+ localVarFormParams.append('worldId', worldId);
13299
+ }
13300
+ if (worldName !== undefined) {
13301
+ localVarFormParams.append('worldName', worldName);
13302
+ }
13303
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
13304
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13305
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13306
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13307
+ localVarRequestOptions.data = localVarFormParams;
13308
+ return [2 /*return*/, {
13309
+ url: (0, common_1.toPathString)(localVarUrlObj),
13310
+ options: localVarRequestOptions,
13311
+ }];
13312
+ });
13313
+ });
13314
+ },
13315
+ };
13316
+ };
13317
+ exports.PrintsApiAxiosParamCreator = PrintsApiAxiosParamCreator;
13318
+ /**
13319
+ * PrintsApi - functional programming interface
13320
+ * @export
13321
+ */
13322
+ var PrintsApiFp = function (configuration) {
13323
+ var localVarAxiosParamCreator = (0, exports.PrintsApiAxiosParamCreator)(configuration);
13324
+ return {
13325
+ /**
13326
+ * Returns a print.
13327
+ * @summary Delete Print
13328
+ * @param {string} printId Print ID.
13329
+ * @param {*} [options] Override http request option.
13330
+ * @throws {RequiredError}
13331
+ */
13332
+ deletePrint: function (printId, options) {
13333
+ return __awaiter(this, void 0, void 0, function () {
13334
+ var localVarAxiosArgs;
13335
+ return __generator(this, function (_a) {
13336
+ switch (_a.label) {
13337
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePrint(printId, options)];
13338
+ case 1:
13339
+ localVarAxiosArgs = _a.sent();
13340
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13341
+ }
13342
+ });
13343
+ });
13344
+ },
13345
+ /**
13346
+ * Edits a print.
13347
+ * @summary Edit Print
13348
+ * @param {string} printId Print ID.
13349
+ * @param {File} image The binary blob of the png file.
13350
+ * @param {string} [note] The caption for the image.
13351
+ * @param {*} [options] Override http request option.
13352
+ * @throws {RequiredError}
13353
+ */
13354
+ editPrint: function (printId, image, note, options) {
13355
+ return __awaiter(this, void 0, void 0, function () {
13356
+ var localVarAxiosArgs;
13357
+ return __generator(this, function (_a) {
13358
+ switch (_a.label) {
13359
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.editPrint(printId, image, note, options)];
13360
+ case 1:
13361
+ localVarAxiosArgs = _a.sent();
13362
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13363
+ }
13364
+ });
13365
+ });
13366
+ },
13367
+ /**
13368
+ * Returns a print.
13369
+ * @summary Get Print
13370
+ * @param {string} printId Print ID.
13371
+ * @param {*} [options] Override http request option.
13372
+ * @throws {RequiredError}
13373
+ */
13374
+ getPrint: function (printId, options) {
13375
+ return __awaiter(this, void 0, void 0, function () {
13376
+ var localVarAxiosArgs;
13377
+ return __generator(this, function (_a) {
13378
+ switch (_a.label) {
13379
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrint(printId, options)];
13380
+ case 1:
13381
+ localVarAxiosArgs = _a.sent();
13382
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13383
+ }
13384
+ });
13385
+ });
13386
+ },
13387
+ /**
13388
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13389
+ * @summary Get Own Prints
13390
+ * @param {string} userId Must be a valid user ID.
13391
+ * @param {*} [options] Override http request option.
13392
+ * @throws {RequiredError}
13393
+ */
13394
+ getUserPrints: function (userId, options) {
13395
+ return __awaiter(this, void 0, void 0, function () {
13396
+ var localVarAxiosArgs;
13397
+ return __generator(this, function (_a) {
13398
+ switch (_a.label) {
13399
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserPrints(userId, options)];
13400
+ case 1:
13401
+ localVarAxiosArgs = _a.sent();
13402
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13403
+ }
13404
+ });
13405
+ });
13406
+ },
13407
+ /**
13408
+ * Uploads and creates a print.
13409
+ * @summary Upload Print
13410
+ * @param {File} image The binary blob of the png file.
13411
+ * @param {string} timestamp The time the image was captured.
13412
+ * @param {string} [note] The caption for the image.
13413
+ * @param {string} [worldId] The id of the world in which the image was captured.
13414
+ * @param {string} [worldName] The name of the world in which the image was captured.
13415
+ * @param {*} [options] Override http request option.
13416
+ * @throws {RequiredError}
13417
+ */
13418
+ uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13419
+ return __awaiter(this, void 0, void 0, function () {
13420
+ var localVarAxiosArgs;
13421
+ return __generator(this, function (_a) {
13422
+ switch (_a.label) {
13423
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadPrint(image, timestamp, note, worldId, worldName, options)];
13424
+ case 1:
13425
+ localVarAxiosArgs = _a.sent();
13426
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13427
+ }
13428
+ });
13429
+ });
13430
+ },
13431
+ };
13432
+ };
13433
+ exports.PrintsApiFp = PrintsApiFp;
13434
+ /**
13435
+ * PrintsApi - factory interface
13436
+ * @export
13437
+ */
13438
+ var PrintsApiFactory = function (configuration, basePath, axios) {
13439
+ var localVarFp = (0, exports.PrintsApiFp)(configuration);
13440
+ return {
13441
+ /**
13442
+ * Returns a print.
13443
+ * @summary Delete Print
13444
+ * @param {string} printId Print ID.
13445
+ * @param {*} [options] Override http request option.
13446
+ * @throws {RequiredError}
13447
+ */
13448
+ deletePrint: function (printId, options) {
13449
+ return localVarFp.deletePrint(printId, options).then(function (request) { return request(axios, basePath); });
13450
+ },
13451
+ /**
13452
+ * Edits a print.
13453
+ * @summary Edit Print
13454
+ * @param {string} printId Print ID.
13455
+ * @param {File} image The binary blob of the png file.
13456
+ * @param {string} [note] The caption for the image.
13457
+ * @param {*} [options] Override http request option.
13458
+ * @throws {RequiredError}
13459
+ */
13460
+ editPrint: function (printId, image, note, options) {
13461
+ return localVarFp.editPrint(printId, image, note, options).then(function (request) { return request(axios, basePath); });
13462
+ },
13463
+ /**
13464
+ * Returns a print.
13465
+ * @summary Get Print
13466
+ * @param {string} printId Print ID.
13467
+ * @param {*} [options] Override http request option.
13468
+ * @throws {RequiredError}
13469
+ */
13470
+ getPrint: function (printId, options) {
13471
+ return localVarFp.getPrint(printId, options).then(function (request) { return request(axios, basePath); });
11480
13472
  },
11481
13473
  /**
11482
- * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
11483
- * @summary Moderate User
11484
- * @param {ModerateUserRequest} moderateUserRequest
13474
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13475
+ * @summary Get Own Prints
13476
+ * @param {string} userId Must be a valid user ID.
11485
13477
  * @param {*} [options] Override http request option.
11486
13478
  * @throws {RequiredError}
11487
13479
  */
11488
- moderateUser: function (moderateUserRequest, options) {
11489
- return localVarFp.moderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13480
+ getUserPrints: function (userId, options) {
13481
+ return localVarFp.getUserPrints(userId, options).then(function (request) { return request(axios, basePath); });
11490
13482
  },
11491
13483
  /**
11492
- * 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.
11493
- * @summary Unmoderate User
11494
- * @param {ModerateUserRequest} moderateUserRequest
13484
+ * Uploads and creates a print.
13485
+ * @summary Upload Print
13486
+ * @param {File} image The binary blob of the png file.
13487
+ * @param {string} timestamp The time the image was captured.
13488
+ * @param {string} [note] The caption for the image.
13489
+ * @param {string} [worldId] The id of the world in which the image was captured.
13490
+ * @param {string} [worldName] The name of the world in which the image was captured.
11495
13491
  * @param {*} [options] Override http request option.
11496
13492
  * @throws {RequiredError}
11497
13493
  */
11498
- unmoderateUser: function (moderateUserRequest, options) {
11499
- return localVarFp.unmoderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13494
+ uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13495
+ return localVarFp.uploadPrint(image, timestamp, note, worldId, worldName, options).then(function (request) { return request(axios, basePath); });
11500
13496
  },
11501
13497
  };
11502
13498
  };
11503
- exports.PlayermoderationApiFactory = PlayermoderationApiFactory;
13499
+ exports.PrintsApiFactory = PrintsApiFactory;
11504
13500
  /**
11505
- * PlayermoderationApi - object-oriented interface
13501
+ * PrintsApi - object-oriented interface
11506
13502
  * @export
11507
- * @class PlayermoderationApi
13503
+ * @class PrintsApi
11508
13504
  * @extends {BaseAPI}
11509
13505
  */
11510
- var PlayermoderationApi = /** @class */ (function (_super) {
11511
- __extends(PlayermoderationApi, _super);
11512
- function PlayermoderationApi() {
13506
+ var PrintsApi = /** @class */ (function (_super) {
13507
+ __extends(PrintsApi, _super);
13508
+ function PrintsApi() {
11513
13509
  return _super !== null && _super.apply(this, arguments) || this;
11514
13510
  }
11515
13511
  /**
11516
- * ⚠️ **This will delete every single player moderation you\'ve ever made.**
11517
- * @summary Clear All Player Moderations
13512
+ * Returns a print.
13513
+ * @summary Delete Print
13514
+ * @param {string} printId Print ID.
11518
13515
  * @param {*} [options] Override http request option.
11519
13516
  * @throws {RequiredError}
11520
- * @memberof PlayermoderationApi
13517
+ * @memberof PrintsApi
11521
13518
  */
11522
- PlayermoderationApi.prototype.clearAllPlayerModerations = function (options) {
13519
+ PrintsApi.prototype.deletePrint = function (printId, options) {
11523
13520
  var _this = this;
11524
- return (0, exports.PlayermoderationApiFp)(this.configuration).clearAllPlayerModerations(options).then(function (request) { return request(_this.axios, _this.basePath); });
13521
+ return (0, exports.PrintsApiFp)(this.configuration).deletePrint(printId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11525
13522
  };
11526
13523
  /**
11527
- * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
11528
- * @summary Search Player Moderations
11529
- * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
11530
- * @param {string} [targetUserId] Must be valid UserID.
13524
+ * Edits a print.
13525
+ * @summary Edit Print
13526
+ * @param {string} printId Print ID.
13527
+ * @param {File} image The binary blob of the png file.
13528
+ * @param {string} [note] The caption for the image.
11531
13529
  * @param {*} [options] Override http request option.
11532
13530
  * @throws {RequiredError}
11533
- * @memberof PlayermoderationApi
13531
+ * @memberof PrintsApi
11534
13532
  */
11535
- PlayermoderationApi.prototype.getPlayerModerations = function (type, targetUserId, options) {
13533
+ PrintsApi.prototype.editPrint = function (printId, image, note, options) {
11536
13534
  var _this = this;
11537
- return (0, exports.PlayermoderationApiFp)(this.configuration).getPlayerModerations(type, targetUserId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13535
+ return (0, exports.PrintsApiFp)(this.configuration).editPrint(printId, image, note, options).then(function (request) { return request(_this.axios, _this.basePath); });
11538
13536
  };
11539
13537
  /**
11540
- * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
11541
- * @summary Moderate User
11542
- * @param {ModerateUserRequest} moderateUserRequest
13538
+ * Returns a print.
13539
+ * @summary Get Print
13540
+ * @param {string} printId Print ID.
11543
13541
  * @param {*} [options] Override http request option.
11544
13542
  * @throws {RequiredError}
11545
- * @memberof PlayermoderationApi
13543
+ * @memberof PrintsApi
11546
13544
  */
11547
- PlayermoderationApi.prototype.moderateUser = function (moderateUserRequest, options) {
13545
+ PrintsApi.prototype.getPrint = function (printId, options) {
11548
13546
  var _this = this;
11549
- return (0, exports.PlayermoderationApiFp)(this.configuration).moderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13547
+ return (0, exports.PrintsApiFp)(this.configuration).getPrint(printId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11550
13548
  };
11551
13549
  /**
11552
- * 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.
11553
- * @summary Unmoderate User
11554
- * @param {ModerateUserRequest} moderateUserRequest
13550
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13551
+ * @summary Get Own Prints
13552
+ * @param {string} userId Must be a valid user ID.
11555
13553
  * @param {*} [options] Override http request option.
11556
13554
  * @throws {RequiredError}
11557
- * @memberof PlayermoderationApi
13555
+ * @memberof PrintsApi
11558
13556
  */
11559
- PlayermoderationApi.prototype.unmoderateUser = function (moderateUserRequest, options) {
13557
+ PrintsApi.prototype.getUserPrints = function (userId, options) {
11560
13558
  var _this = this;
11561
- return (0, exports.PlayermoderationApiFp)(this.configuration).unmoderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13559
+ return (0, exports.PrintsApiFp)(this.configuration).getUserPrints(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11562
13560
  };
11563
- return PlayermoderationApi;
13561
+ /**
13562
+ * Uploads and creates a print.
13563
+ * @summary Upload Print
13564
+ * @param {File} image The binary blob of the png file.
13565
+ * @param {string} timestamp The time the image was captured.
13566
+ * @param {string} [note] The caption for the image.
13567
+ * @param {string} [worldId] The id of the world in which the image was captured.
13568
+ * @param {string} [worldName] The name of the world in which the image was captured.
13569
+ * @param {*} [options] Override http request option.
13570
+ * @throws {RequiredError}
13571
+ * @memberof PrintsApi
13572
+ */
13573
+ PrintsApi.prototype.uploadPrint = function (image, timestamp, note, worldId, worldName, options) {
13574
+ var _this = this;
13575
+ return (0, exports.PrintsApiFp)(this.configuration).uploadPrint(image, timestamp, note, worldId, worldName, options).then(function (request) { return request(_this.axios, _this.basePath); });
13576
+ };
13577
+ return PrintsApi;
11564
13578
  }(base_1.BaseAPI));
11565
- exports.PlayermoderationApi = PlayermoderationApi;
13579
+ exports.PrintsApi = PrintsApi;
11566
13580
  /**
11567
13581
  * SystemApi - axios parameter creator
11568
13582
  * @export
@@ -12136,6 +14150,121 @@ exports.SystemApi = SystemApi;
12136
14150
  var UsersApiAxiosParamCreator = function (configuration) {
12137
14151
  var _this = this;
12138
14152
  return {
14153
+ /**
14154
+ * Adds tags to the user\'s profile
14155
+ * @summary Add User Tags
14156
+ * @param {string} userId Must be a valid user ID.
14157
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
14158
+ * @param {*} [options] Override http request option.
14159
+ * @throws {RequiredError}
14160
+ */
14161
+ addTags: function (userId, changeUserTagsRequest, options) {
14162
+ if (options === void 0) { options = {}; }
14163
+ return __awaiter(_this, void 0, void 0, function () {
14164
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14165
+ return __generator(this, function (_a) {
14166
+ // verify required parameter 'userId' is not null or undefined
14167
+ (0, common_1.assertParamExists)('addTags', 'userId', userId);
14168
+ // verify required parameter 'changeUserTagsRequest' is not null or undefined
14169
+ (0, common_1.assertParamExists)('addTags', 'changeUserTagsRequest', changeUserTagsRequest);
14170
+ localVarPath = "/users/{userId}/addTags"
14171
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
14172
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14173
+ if (configuration) {
14174
+ baseOptions = configuration.baseOptions;
14175
+ }
14176
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14177
+ localVarHeaderParameter = {};
14178
+ localVarQueryParameter = {};
14179
+ // authentication authCookie required
14180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14184
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changeUserTagsRequest, localVarRequestOptions, configuration);
14185
+ return [2 /*return*/, {
14186
+ url: (0, common_1.toPathString)(localVarUrlObj),
14187
+ options: localVarRequestOptions,
14188
+ }];
14189
+ });
14190
+ });
14191
+ },
14192
+ /**
14193
+ * Checks whether the user has persistence data for a given world
14194
+ * @summary Check User Persistence Exists
14195
+ * @param {string} userId Must be a valid user ID.
14196
+ * @param {string} worldId Must be a valid world ID.
14197
+ * @param {*} [options] Override http request option.
14198
+ * @throws {RequiredError}
14199
+ */
14200
+ checkUserPersistenceExists: function (userId, worldId, options) {
14201
+ if (options === void 0) { options = {}; }
14202
+ return __awaiter(_this, void 0, void 0, function () {
14203
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14204
+ return __generator(this, function (_a) {
14205
+ // verify required parameter 'userId' is not null or undefined
14206
+ (0, common_1.assertParamExists)('checkUserPersistenceExists', 'userId', userId);
14207
+ // verify required parameter 'worldId' is not null or undefined
14208
+ (0, common_1.assertParamExists)('checkUserPersistenceExists', 'worldId', worldId);
14209
+ localVarPath = "/users/{userId}/{worldId}/persist/exists"
14210
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)))
14211
+ .replace("{".concat("worldId", "}"), encodeURIComponent(String(worldId)));
14212
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14213
+ if (configuration) {
14214
+ baseOptions = configuration.baseOptions;
14215
+ }
14216
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14217
+ localVarHeaderParameter = {};
14218
+ localVarQueryParameter = {};
14219
+ // authentication authCookie required
14220
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14221
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14222
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14223
+ return [2 /*return*/, {
14224
+ url: (0, common_1.toPathString)(localVarUrlObj),
14225
+ options: localVarRequestOptions,
14226
+ }];
14227
+ });
14228
+ });
14229
+ },
14230
+ /**
14231
+ * Deletes the user\'s persistence data for a given world
14232
+ * @summary Delete User Persistence
14233
+ * @param {string} userId Must be a valid user ID.
14234
+ * @param {string} worldId Must be a valid world ID.
14235
+ * @param {*} [options] Override http request option.
14236
+ * @throws {RequiredError}
14237
+ */
14238
+ deleteUserPersistence: function (userId, worldId, options) {
14239
+ if (options === void 0) { options = {}; }
14240
+ return __awaiter(_this, void 0, void 0, function () {
14241
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14242
+ return __generator(this, function (_a) {
14243
+ // verify required parameter 'userId' is not null or undefined
14244
+ (0, common_1.assertParamExists)('deleteUserPersistence', 'userId', userId);
14245
+ // verify required parameter 'worldId' is not null or undefined
14246
+ (0, common_1.assertParamExists)('deleteUserPersistence', 'worldId', worldId);
14247
+ localVarPath = "/users/{userId}/{worldId}/persist"
14248
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)))
14249
+ .replace("{".concat("worldId", "}"), encodeURIComponent(String(worldId)));
14250
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14251
+ if (configuration) {
14252
+ baseOptions = configuration.baseOptions;
14253
+ }
14254
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
14255
+ localVarHeaderParameter = {};
14256
+ localVarQueryParameter = {};
14257
+ // authentication authCookie required
14258
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14259
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14260
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14261
+ return [2 /*return*/, {
14262
+ url: (0, common_1.toPathString)(localVarUrlObj),
14263
+ options: localVarRequestOptions,
14264
+ }];
14265
+ });
14266
+ });
14267
+ },
12139
14268
  /**
12140
14269
  * Get public user information about a specific user using their ID.
12141
14270
  * @summary Get User by ID
@@ -12460,6 +14589,45 @@ var UsersApiAxiosParamCreator = function (configuration) {
12460
14589
  });
12461
14590
  });
12462
14591
  },
14592
+ /**
14593
+ * Removes tags from the user\'s profile
14594
+ * @summary Remove User Tags
14595
+ * @param {string} userId Must be a valid user ID.
14596
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
14597
+ * @param {*} [options] Override http request option.
14598
+ * @throws {RequiredError}
14599
+ */
14600
+ removeTags: function (userId, changeUserTagsRequest, options) {
14601
+ if (options === void 0) { options = {}; }
14602
+ return __awaiter(_this, void 0, void 0, function () {
14603
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14604
+ return __generator(this, function (_a) {
14605
+ // verify required parameter 'userId' is not null or undefined
14606
+ (0, common_1.assertParamExists)('removeTags', 'userId', userId);
14607
+ // verify required parameter 'changeUserTagsRequest' is not null or undefined
14608
+ (0, common_1.assertParamExists)('removeTags', 'changeUserTagsRequest', changeUserTagsRequest);
14609
+ localVarPath = "/users/{userId}/removeTags"
14610
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
14611
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14612
+ if (configuration) {
14613
+ baseOptions = configuration.baseOptions;
14614
+ }
14615
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14616
+ localVarHeaderParameter = {};
14617
+ localVarQueryParameter = {};
14618
+ // authentication authCookie required
14619
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14620
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14621
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14622
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14623
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changeUserTagsRequest, localVarRequestOptions, configuration);
14624
+ return [2 /*return*/, {
14625
+ url: (0, common_1.toPathString)(localVarUrlObj),
14626
+ options: localVarRequestOptions,
14627
+ }];
14628
+ });
14629
+ });
14630
+ },
12463
14631
  /**
12464
14632
  * Search and list any users by text query
12465
14633
  * @summary Search All Users
@@ -12506,6 +14674,49 @@ var UsersApiAxiosParamCreator = function (configuration) {
12506
14674
  });
12507
14675
  });
12508
14676
  },
14677
+ /**
14678
+ * Updates a user\'s badge
14679
+ * @summary Update User Badge
14680
+ * @param {string} userId Must be a valid user ID.
14681
+ * @param {string} badgeId Must be a valid badge ID.
14682
+ * @param {UpdateUserBadgeRequest} updateUserBadgeRequest
14683
+ * @param {*} [options] Override http request option.
14684
+ * @throws {RequiredError}
14685
+ */
14686
+ updateBadge: function (userId, badgeId, updateUserBadgeRequest, options) {
14687
+ if (options === void 0) { options = {}; }
14688
+ return __awaiter(_this, void 0, void 0, function () {
14689
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14690
+ return __generator(this, function (_a) {
14691
+ // verify required parameter 'userId' is not null or undefined
14692
+ (0, common_1.assertParamExists)('updateBadge', 'userId', userId);
14693
+ // verify required parameter 'badgeId' is not null or undefined
14694
+ (0, common_1.assertParamExists)('updateBadge', 'badgeId', badgeId);
14695
+ // verify required parameter 'updateUserBadgeRequest' is not null or undefined
14696
+ (0, common_1.assertParamExists)('updateBadge', 'updateUserBadgeRequest', updateUserBadgeRequest);
14697
+ localVarPath = "/users/{userId}/badges/{badgeId}"
14698
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)))
14699
+ .replace("{".concat("badgeId", "}"), encodeURIComponent(String(badgeId)));
14700
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14701
+ if (configuration) {
14702
+ baseOptions = configuration.baseOptions;
14703
+ }
14704
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14705
+ localVarHeaderParameter = {};
14706
+ localVarQueryParameter = {};
14707
+ // authentication authCookie required
14708
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14709
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14710
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14711
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14712
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserBadgeRequest, localVarRequestOptions, configuration);
14713
+ return [2 /*return*/, {
14714
+ url: (0, common_1.toPathString)(localVarUrlObj),
14715
+ options: localVarRequestOptions,
14716
+ }];
14717
+ });
14718
+ });
14719
+ },
12509
14720
  /**
12510
14721
  * Update a users information such as the email and birthday.
12511
14722
  * @summary Update User Info
@@ -12578,16 +14789,79 @@ var UsersApiAxiosParamCreator = function (configuration) {
12578
14789
  });
12579
14790
  });
12580
14791
  },
12581
- };
12582
- };
12583
- exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
12584
- /**
12585
- * UsersApi - functional programming interface
12586
- * @export
12587
- */
12588
- var UsersApiFp = function (configuration) {
12589
- var localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
12590
- return {
14792
+ };
14793
+ };
14794
+ exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
14795
+ /**
14796
+ * UsersApi - functional programming interface
14797
+ * @export
14798
+ */
14799
+ var UsersApiFp = function (configuration) {
14800
+ var localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
14801
+ return {
14802
+ /**
14803
+ * Adds tags to the user\'s profile
14804
+ * @summary Add User Tags
14805
+ * @param {string} userId Must be a valid user ID.
14806
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
14807
+ * @param {*} [options] Override http request option.
14808
+ * @throws {RequiredError}
14809
+ */
14810
+ addTags: function (userId, changeUserTagsRequest, options) {
14811
+ return __awaiter(this, void 0, void 0, function () {
14812
+ var localVarAxiosArgs;
14813
+ return __generator(this, function (_a) {
14814
+ switch (_a.label) {
14815
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addTags(userId, changeUserTagsRequest, options)];
14816
+ case 1:
14817
+ localVarAxiosArgs = _a.sent();
14818
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14819
+ }
14820
+ });
14821
+ });
14822
+ },
14823
+ /**
14824
+ * Checks whether the user has persistence data for a given world
14825
+ * @summary Check User Persistence Exists
14826
+ * @param {string} userId Must be a valid user ID.
14827
+ * @param {string} worldId Must be a valid world ID.
14828
+ * @param {*} [options] Override http request option.
14829
+ * @throws {RequiredError}
14830
+ */
14831
+ checkUserPersistenceExists: function (userId, worldId, options) {
14832
+ return __awaiter(this, void 0, void 0, function () {
14833
+ var localVarAxiosArgs;
14834
+ return __generator(this, function (_a) {
14835
+ switch (_a.label) {
14836
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkUserPersistenceExists(userId, worldId, options)];
14837
+ case 1:
14838
+ localVarAxiosArgs = _a.sent();
14839
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14840
+ }
14841
+ });
14842
+ });
14843
+ },
14844
+ /**
14845
+ * Deletes the user\'s persistence data for a given world
14846
+ * @summary Delete User Persistence
14847
+ * @param {string} userId Must be a valid user ID.
14848
+ * @param {string} worldId Must be a valid world ID.
14849
+ * @param {*} [options] Override http request option.
14850
+ * @throws {RequiredError}
14851
+ */
14852
+ deleteUserPersistence: function (userId, worldId, options) {
14853
+ return __awaiter(this, void 0, void 0, function () {
14854
+ var localVarAxiosArgs;
14855
+ return __generator(this, function (_a) {
14856
+ switch (_a.label) {
14857
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUserPersistence(userId, worldId, options)];
14858
+ case 1:
14859
+ localVarAxiosArgs = _a.sent();
14860
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14861
+ }
14862
+ });
14863
+ });
14864
+ },
12591
14865
  /**
12592
14866
  * Get public user information about a specific user using their ID.
12593
14867
  * @summary Get User by ID
@@ -12774,6 +15048,27 @@ var UsersApiFp = function (configuration) {
12774
15048
  });
12775
15049
  });
12776
15050
  },
15051
+ /**
15052
+ * Removes tags from the user\'s profile
15053
+ * @summary Remove User Tags
15054
+ * @param {string} userId Must be a valid user ID.
15055
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
15056
+ * @param {*} [options] Override http request option.
15057
+ * @throws {RequiredError}
15058
+ */
15059
+ removeTags: function (userId, changeUserTagsRequest, options) {
15060
+ return __awaiter(this, void 0, void 0, function () {
15061
+ var localVarAxiosArgs;
15062
+ return __generator(this, function (_a) {
15063
+ switch (_a.label) {
15064
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeTags(userId, changeUserTagsRequest, options)];
15065
+ case 1:
15066
+ localVarAxiosArgs = _a.sent();
15067
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15068
+ }
15069
+ });
15070
+ });
15071
+ },
12777
15072
  /**
12778
15073
  * Search and list any users by text query
12779
15074
  * @summary Search All Users
@@ -12797,6 +15092,28 @@ var UsersApiFp = function (configuration) {
12797
15092
  });
12798
15093
  });
12799
15094
  },
15095
+ /**
15096
+ * Updates a user\'s badge
15097
+ * @summary Update User Badge
15098
+ * @param {string} userId Must be a valid user ID.
15099
+ * @param {string} badgeId Must be a valid badge ID.
15100
+ * @param {UpdateUserBadgeRequest} updateUserBadgeRequest
15101
+ * @param {*} [options] Override http request option.
15102
+ * @throws {RequiredError}
15103
+ */
15104
+ updateBadge: function (userId, badgeId, updateUserBadgeRequest, options) {
15105
+ return __awaiter(this, void 0, void 0, function () {
15106
+ var localVarAxiosArgs;
15107
+ return __generator(this, function (_a) {
15108
+ switch (_a.label) {
15109
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBadge(userId, badgeId, updateUserBadgeRequest, options)];
15110
+ case 1:
15111
+ localVarAxiosArgs = _a.sent();
15112
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15113
+ }
15114
+ });
15115
+ });
15116
+ },
12800
15117
  /**
12801
15118
  * Update a users information such as the email and birthday.
12802
15119
  * @summary Update User Info
@@ -12848,6 +15165,39 @@ exports.UsersApiFp = UsersApiFp;
12848
15165
  var UsersApiFactory = function (configuration, basePath, axios) {
12849
15166
  var localVarFp = (0, exports.UsersApiFp)(configuration);
12850
15167
  return {
15168
+ /**
15169
+ * Adds tags to the user\'s profile
15170
+ * @summary Add User Tags
15171
+ * @param {string} userId Must be a valid user ID.
15172
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
15173
+ * @param {*} [options] Override http request option.
15174
+ * @throws {RequiredError}
15175
+ */
15176
+ addTags: function (userId, changeUserTagsRequest, options) {
15177
+ return localVarFp.addTags(userId, changeUserTagsRequest, options).then(function (request) { return request(axios, basePath); });
15178
+ },
15179
+ /**
15180
+ * Checks whether the user has persistence data for a given world
15181
+ * @summary Check User Persistence Exists
15182
+ * @param {string} userId Must be a valid user ID.
15183
+ * @param {string} worldId Must be a valid world ID.
15184
+ * @param {*} [options] Override http request option.
15185
+ * @throws {RequiredError}
15186
+ */
15187
+ checkUserPersistenceExists: function (userId, worldId, options) {
15188
+ return localVarFp.checkUserPersistenceExists(userId, worldId, options).then(function (request) { return request(axios, basePath); });
15189
+ },
15190
+ /**
15191
+ * Deletes the user\'s persistence data for a given world
15192
+ * @summary Delete User Persistence
15193
+ * @param {string} userId Must be a valid user ID.
15194
+ * @param {string} worldId Must be a valid world ID.
15195
+ * @param {*} [options] Override http request option.
15196
+ * @throws {RequiredError}
15197
+ */
15198
+ deleteUserPersistence: function (userId, worldId, options) {
15199
+ return localVarFp.deleteUserPersistence(userId, worldId, options).then(function (request) { return request(axios, basePath); });
15200
+ },
12851
15201
  /**
12852
15202
  * Get public user information about a specific user using their ID.
12853
15203
  * @summary Get User by ID
@@ -12944,6 +15294,17 @@ var UsersApiFactory = function (configuration, basePath, axios) {
12944
15294
  getUserRepresentedGroup: function (userId, options) {
12945
15295
  return localVarFp.getUserRepresentedGroup(userId, options).then(function (request) { return request(axios, basePath); });
12946
15296
  },
15297
+ /**
15298
+ * Removes tags from the user\'s profile
15299
+ * @summary Remove User Tags
15300
+ * @param {string} userId Must be a valid user ID.
15301
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
15302
+ * @param {*} [options] Override http request option.
15303
+ * @throws {RequiredError}
15304
+ */
15305
+ removeTags: function (userId, changeUserTagsRequest, options) {
15306
+ return localVarFp.removeTags(userId, changeUserTagsRequest, options).then(function (request) { return request(axios, basePath); });
15307
+ },
12947
15308
  /**
12948
15309
  * Search and list any users by text query
12949
15310
  * @summary Search All Users
@@ -12957,6 +15318,18 @@ var UsersApiFactory = function (configuration, basePath, axios) {
12957
15318
  searchUsers: function (search, developerType, n, offset, options) {
12958
15319
  return localVarFp.searchUsers(search, developerType, n, offset, options).then(function (request) { return request(axios, basePath); });
12959
15320
  },
15321
+ /**
15322
+ * Updates a user\'s badge
15323
+ * @summary Update User Badge
15324
+ * @param {string} userId Must be a valid user ID.
15325
+ * @param {string} badgeId Must be a valid badge ID.
15326
+ * @param {UpdateUserBadgeRequest} updateUserBadgeRequest
15327
+ * @param {*} [options] Override http request option.
15328
+ * @throws {RequiredError}
15329
+ */
15330
+ updateBadge: function (userId, badgeId, updateUserBadgeRequest, options) {
15331
+ return localVarFp.updateBadge(userId, badgeId, updateUserBadgeRequest, options).then(function (request) { return request(axios, basePath); });
15332
+ },
12960
15333
  /**
12961
15334
  * Update a users information such as the email and birthday.
12962
15335
  * @summary Update User Info
@@ -12992,6 +15365,45 @@ var UsersApi = /** @class */ (function (_super) {
12992
15365
  function UsersApi() {
12993
15366
  return _super !== null && _super.apply(this, arguments) || this;
12994
15367
  }
15368
+ /**
15369
+ * Adds tags to the user\'s profile
15370
+ * @summary Add User Tags
15371
+ * @param {string} userId Must be a valid user ID.
15372
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
15373
+ * @param {*} [options] Override http request option.
15374
+ * @throws {RequiredError}
15375
+ * @memberof UsersApi
15376
+ */
15377
+ UsersApi.prototype.addTags = function (userId, changeUserTagsRequest, options) {
15378
+ var _this = this;
15379
+ return (0, exports.UsersApiFp)(this.configuration).addTags(userId, changeUserTagsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
15380
+ };
15381
+ /**
15382
+ * Checks whether the user has persistence data for a given world
15383
+ * @summary Check User Persistence Exists
15384
+ * @param {string} userId Must be a valid user ID.
15385
+ * @param {string} worldId Must be a valid world ID.
15386
+ * @param {*} [options] Override http request option.
15387
+ * @throws {RequiredError}
15388
+ * @memberof UsersApi
15389
+ */
15390
+ UsersApi.prototype.checkUserPersistenceExists = function (userId, worldId, options) {
15391
+ var _this = this;
15392
+ return (0, exports.UsersApiFp)(this.configuration).checkUserPersistenceExists(userId, worldId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15393
+ };
15394
+ /**
15395
+ * Deletes the user\'s persistence data for a given world
15396
+ * @summary Delete User Persistence
15397
+ * @param {string} userId Must be a valid user ID.
15398
+ * @param {string} worldId Must be a valid world ID.
15399
+ * @param {*} [options] Override http request option.
15400
+ * @throws {RequiredError}
15401
+ * @memberof UsersApi
15402
+ */
15403
+ UsersApi.prototype.deleteUserPersistence = function (userId, worldId, options) {
15404
+ var _this = this;
15405
+ return (0, exports.UsersApiFp)(this.configuration).deleteUserPersistence(userId, worldId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15406
+ };
12995
15407
  /**
12996
15408
  * Get public user information about a specific user using their ID.
12997
15409
  * @summary Get User by ID
@@ -13106,6 +15518,19 @@ var UsersApi = /** @class */ (function (_super) {
13106
15518
  var _this = this;
13107
15519
  return (0, exports.UsersApiFp)(this.configuration).getUserRepresentedGroup(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13108
15520
  };
15521
+ /**
15522
+ * Removes tags from the user\'s profile
15523
+ * @summary Remove User Tags
15524
+ * @param {string} userId Must be a valid user ID.
15525
+ * @param {ChangeUserTagsRequest} changeUserTagsRequest
15526
+ * @param {*} [options] Override http request option.
15527
+ * @throws {RequiredError}
15528
+ * @memberof UsersApi
15529
+ */
15530
+ UsersApi.prototype.removeTags = function (userId, changeUserTagsRequest, options) {
15531
+ var _this = this;
15532
+ return (0, exports.UsersApiFp)(this.configuration).removeTags(userId, changeUserTagsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
15533
+ };
13109
15534
  /**
13110
15535
  * Search and list any users by text query
13111
15536
  * @summary Search All Users
@@ -13121,6 +15546,20 @@ var UsersApi = /** @class */ (function (_super) {
13121
15546
  var _this = this;
13122
15547
  return (0, exports.UsersApiFp)(this.configuration).searchUsers(search, developerType, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
13123
15548
  };
15549
+ /**
15550
+ * Updates a user\'s badge
15551
+ * @summary Update User Badge
15552
+ * @param {string} userId Must be a valid user ID.
15553
+ * @param {string} badgeId Must be a valid badge ID.
15554
+ * @param {UpdateUserBadgeRequest} updateUserBadgeRequest
15555
+ * @param {*} [options] Override http request option.
15556
+ * @throws {RequiredError}
15557
+ * @memberof UsersApi
15558
+ */
15559
+ UsersApi.prototype.updateBadge = function (userId, badgeId, updateUserBadgeRequest, options) {
15560
+ var _this = this;
15561
+ return (0, exports.UsersApiFp)(this.configuration).updateBadge(userId, badgeId, updateUserBadgeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
15562
+ };
13124
15563
  /**
13125
15564
  * Update a users information such as the email and birthday.
13126
15565
  * @summary Update User Info
@@ -13156,6 +15595,44 @@ exports.UsersApi = UsersApi;
13156
15595
  var WorldsApiAxiosParamCreator = function (configuration) {
13157
15596
  var _this = this;
13158
15597
  return {
15598
+ /**
15599
+ * Checks whether the user has persistence data for a given world
15600
+ * @summary Check User Persistence Exists
15601
+ * @param {string} userId Must be a valid user ID.
15602
+ * @param {string} worldId Must be a valid world ID.
15603
+ * @param {*} [options] Override http request option.
15604
+ * @throws {RequiredError}
15605
+ */
15606
+ checkUserPersistenceExists: function (userId, worldId, options) {
15607
+ if (options === void 0) { options = {}; }
15608
+ return __awaiter(_this, void 0, void 0, function () {
15609
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15610
+ return __generator(this, function (_a) {
15611
+ // verify required parameter 'userId' is not null or undefined
15612
+ (0, common_1.assertParamExists)('checkUserPersistenceExists', 'userId', userId);
15613
+ // verify required parameter 'worldId' is not null or undefined
15614
+ (0, common_1.assertParamExists)('checkUserPersistenceExists', 'worldId', worldId);
15615
+ localVarPath = "/users/{userId}/{worldId}/persist/exists"
15616
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)))
15617
+ .replace("{".concat("worldId", "}"), encodeURIComponent(String(worldId)));
15618
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15619
+ if (configuration) {
15620
+ baseOptions = configuration.baseOptions;
15621
+ }
15622
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
15623
+ localVarHeaderParameter = {};
15624
+ localVarQueryParameter = {};
15625
+ // authentication authCookie required
15626
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15627
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15628
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15629
+ return [2 /*return*/, {
15630
+ url: (0, common_1.toPathString)(localVarUrlObj),
15631
+ options: localVarRequestOptions,
15632
+ }];
15633
+ });
15634
+ });
15635
+ },
13159
15636
  /**
13160
15637
  * 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.
13161
15638
  * @summary Create World
@@ -13188,6 +15665,44 @@ var WorldsApiAxiosParamCreator = function (configuration) {
13188
15665
  });
13189
15666
  });
13190
15667
  },
15668
+ /**
15669
+ * Deletes the user\'s persistence data for a given world
15670
+ * @summary Delete User Persistence
15671
+ * @param {string} userId Must be a valid user ID.
15672
+ * @param {string} worldId Must be a valid world ID.
15673
+ * @param {*} [options] Override http request option.
15674
+ * @throws {RequiredError}
15675
+ */
15676
+ deleteUserPersistence: function (userId, worldId, options) {
15677
+ if (options === void 0) { options = {}; }
15678
+ return __awaiter(_this, void 0, void 0, function () {
15679
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15680
+ return __generator(this, function (_a) {
15681
+ // verify required parameter 'userId' is not null or undefined
15682
+ (0, common_1.assertParamExists)('deleteUserPersistence', 'userId', userId);
15683
+ // verify required parameter 'worldId' is not null or undefined
15684
+ (0, common_1.assertParamExists)('deleteUserPersistence', 'worldId', worldId);
15685
+ localVarPath = "/users/{userId}/{worldId}/persist"
15686
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)))
15687
+ .replace("{".concat("worldId", "}"), encodeURIComponent(String(worldId)));
15688
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15689
+ if (configuration) {
15690
+ baseOptions = configuration.baseOptions;
15691
+ }
15692
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
15693
+ localVarHeaderParameter = {};
15694
+ localVarQueryParameter = {};
15695
+ // authentication authCookie required
15696
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15697
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15698
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15699
+ return [2 /*return*/, {
15700
+ url: (0, common_1.toPathString)(localVarUrlObj),
15701
+ options: localVarRequestOptions,
15702
+ }];
15703
+ });
15704
+ });
15705
+ },
13191
15706
  /**
13192
15707
  * 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.
13193
15708
  * @summary Delete World
@@ -13809,6 +16324,27 @@ exports.WorldsApiAxiosParamCreator = WorldsApiAxiosParamCreator;
13809
16324
  var WorldsApiFp = function (configuration) {
13810
16325
  var localVarAxiosParamCreator = (0, exports.WorldsApiAxiosParamCreator)(configuration);
13811
16326
  return {
16327
+ /**
16328
+ * Checks whether the user has persistence data for a given world
16329
+ * @summary Check User Persistence Exists
16330
+ * @param {string} userId Must be a valid user ID.
16331
+ * @param {string} worldId Must be a valid world ID.
16332
+ * @param {*} [options] Override http request option.
16333
+ * @throws {RequiredError}
16334
+ */
16335
+ checkUserPersistenceExists: function (userId, worldId, options) {
16336
+ return __awaiter(this, void 0, void 0, function () {
16337
+ var localVarAxiosArgs;
16338
+ return __generator(this, function (_a) {
16339
+ switch (_a.label) {
16340
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkUserPersistenceExists(userId, worldId, options)];
16341
+ case 1:
16342
+ localVarAxiosArgs = _a.sent();
16343
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16344
+ }
16345
+ });
16346
+ });
16347
+ },
13812
16348
  /**
13813
16349
  * 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.
13814
16350
  * @summary Create World
@@ -13829,6 +16365,27 @@ var WorldsApiFp = function (configuration) {
13829
16365
  });
13830
16366
  });
13831
16367
  },
16368
+ /**
16369
+ * Deletes the user\'s persistence data for a given world
16370
+ * @summary Delete User Persistence
16371
+ * @param {string} userId Must be a valid user ID.
16372
+ * @param {string} worldId Must be a valid world ID.
16373
+ * @param {*} [options] Override http request option.
16374
+ * @throws {RequiredError}
16375
+ */
16376
+ deleteUserPersistence: function (userId, worldId, options) {
16377
+ return __awaiter(this, void 0, void 0, function () {
16378
+ var localVarAxiosArgs;
16379
+ return __generator(this, function (_a) {
16380
+ switch (_a.label) {
16381
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUserPersistence(userId, worldId, options)];
16382
+ case 1:
16383
+ localVarAxiosArgs = _a.sent();
16384
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16385
+ }
16386
+ });
16387
+ });
16388
+ },
13832
16389
  /**
13833
16390
  * 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.
13834
16391
  * @summary Delete World
@@ -14131,6 +16688,17 @@ exports.WorldsApiFp = WorldsApiFp;
14131
16688
  var WorldsApiFactory = function (configuration, basePath, axios) {
14132
16689
  var localVarFp = (0, exports.WorldsApiFp)(configuration);
14133
16690
  return {
16691
+ /**
16692
+ * Checks whether the user has persistence data for a given world
16693
+ * @summary Check User Persistence Exists
16694
+ * @param {string} userId Must be a valid user ID.
16695
+ * @param {string} worldId Must be a valid world ID.
16696
+ * @param {*} [options] Override http request option.
16697
+ * @throws {RequiredError}
16698
+ */
16699
+ checkUserPersistenceExists: function (userId, worldId, options) {
16700
+ return localVarFp.checkUserPersistenceExists(userId, worldId, options).then(function (request) { return request(axios, basePath); });
16701
+ },
14134
16702
  /**
14135
16703
  * 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.
14136
16704
  * @summary Create World
@@ -14141,6 +16709,17 @@ var WorldsApiFactory = function (configuration, basePath, axios) {
14141
16709
  createWorld: function (createWorldRequest, options) {
14142
16710
  return localVarFp.createWorld(createWorldRequest, options).then(function (request) { return request(axios, basePath); });
14143
16711
  },
16712
+ /**
16713
+ * Deletes the user\'s persistence data for a given world
16714
+ * @summary Delete User Persistence
16715
+ * @param {string} userId Must be a valid user ID.
16716
+ * @param {string} worldId Must be a valid world ID.
16717
+ * @param {*} [options] Override http request option.
16718
+ * @throws {RequiredError}
16719
+ */
16720
+ deleteUserPersistence: function (userId, worldId, options) {
16721
+ return localVarFp.deleteUserPersistence(userId, worldId, options).then(function (request) { return request(axios, basePath); });
16722
+ },
14144
16723
  /**
14145
16724
  * 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.
14146
16725
  * @summary Delete World
@@ -14327,6 +16906,19 @@ var WorldsApi = /** @class */ (function (_super) {
14327
16906
  function WorldsApi() {
14328
16907
  return _super !== null && _super.apply(this, arguments) || this;
14329
16908
  }
16909
+ /**
16910
+ * Checks whether the user has persistence data for a given world
16911
+ * @summary Check User Persistence Exists
16912
+ * @param {string} userId Must be a valid user ID.
16913
+ * @param {string} worldId Must be a valid world ID.
16914
+ * @param {*} [options] Override http request option.
16915
+ * @throws {RequiredError}
16916
+ * @memberof WorldsApi
16917
+ */
16918
+ WorldsApi.prototype.checkUserPersistenceExists = function (userId, worldId, options) {
16919
+ var _this = this;
16920
+ return (0, exports.WorldsApiFp)(this.configuration).checkUserPersistenceExists(userId, worldId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16921
+ };
14330
16922
  /**
14331
16923
  * 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.
14332
16924
  * @summary Create World
@@ -14339,6 +16931,19 @@ var WorldsApi = /** @class */ (function (_super) {
14339
16931
  var _this = this;
14340
16932
  return (0, exports.WorldsApiFp)(this.configuration).createWorld(createWorldRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
14341
16933
  };
16934
+ /**
16935
+ * Deletes the user\'s persistence data for a given world
16936
+ * @summary Delete User Persistence
16937
+ * @param {string} userId Must be a valid user ID.
16938
+ * @param {string} worldId Must be a valid world ID.
16939
+ * @param {*} [options] Override http request option.
16940
+ * @throws {RequiredError}
16941
+ * @memberof WorldsApi
16942
+ */
16943
+ WorldsApi.prototype.deleteUserPersistence = function (userId, worldId, options) {
16944
+ var _this = this;
16945
+ return (0, exports.WorldsApiFp)(this.configuration).deleteUserPersistence(userId, worldId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16946
+ };
14342
16947
  /**
14343
16948
  * 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.
14344
16949
  * @summary Delete World