@cherryin/aigw-api-client 0.1.26 → 0.1.28

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.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +13 -22
  2. package/README.md +15 -29
  3. package/api.ts +191 -678
  4. package/dist/api.d.ts +138 -425
  5. package/dist/api.js +100 -436
  6. package/dist/esm/api.d.ts +138 -425
  7. package/dist/esm/api.js +94 -430
  8. package/docs/{UserInfo.md → AigwpbUserInfo.md} +3 -3
  9. package/docs/AigwpbUserMeInfo.md +2 -2
  10. package/docs/{UserSettings.md → AigwpbUserSettings.md} +3 -3
  11. package/docs/AuthUserMethod.md +38 -0
  12. package/docs/PassportpbUserInfo.md +30 -0
  13. package/docs/{UserManageSettings.md → PassportpbUserSettings.md} +3 -3
  14. package/docs/UserAdminServiceApi.md +60 -0
  15. package/docs/UserBasic.md +42 -0
  16. package/docs/{SetUserStatusRequest.md → UserExtendInfo.md} +5 -7
  17. package/docs/UserInfoItem.md +22 -0
  18. package/docs/{UpdateUserInfoRequest.md → UserInfoPageGetRequest.md} +13 -9
  19. package/docs/{ListUsersResponse.md → UserInfoPageGetResponse.md} +5 -9
  20. package/docs/UserPaymentInfo.md +20 -0
  21. package/docs/{SetUserRoleRequest.md → UserPreferences.md} +7 -7
  22. package/package.json +1 -1
  23. package/docs/BatchUpdateSessionsRequest.md +0 -24
  24. package/docs/BatchUpdateSessionsResponse.md +0 -24
  25. package/docs/GetUserDetailResponse.md +0 -24
  26. package/docs/ListUsersRequest.md +0 -36
  27. package/docs/SessionAction.md +0 -11
  28. package/docs/SetUserRoleResponse.md +0 -24
  29. package/docs/SetUserStatusResponse.md +0 -26
  30. package/docs/UpdateUserInfoResponse.md +0 -24
  31. package/docs/UserManageAPIKey.md +0 -38
  32. package/docs/UserManageAdminServiceApi.md +0 -324
  33. package/docs/UserManageAuthMethod.md +0 -32
  34. package/docs/UserManageBalance.md +0 -32
  35. package/docs/UserManageDetail.md +0 -46
  36. package/docs/UserManageItem.md +0 -38
  37. package/docs/UserManageSession.md +0 -34
package/dist/api.js CHANGED
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.UserPayServiceApiFactory = exports.UserPayServiceApiFp = exports.UserPayServiceApiAxiosParamCreator = exports.UserModelServiceFrontendModelsResponseOptionEnum = exports.UserModelServiceApi = exports.UserModelServiceApiFactory = exports.UserModelServiceApiFp = exports.UserModelServiceApiAxiosParamCreator = exports.UserManageAdminServiceApi = exports.UserManageAdminServiceApiFactory = exports.UserManageAdminServiceApiFp = exports.UserManageAdminServiceApiAxiosParamCreator = exports.UserLabelServiceApi = exports.UserLabelServiceApiFactory = exports.UserLabelServiceApiFp = exports.UserLabelServiceApiAxiosParamCreator = exports.UserBalanceServiceApi = exports.UserBalanceServiceApiFactory = exports.UserBalanceServiceApiFp = exports.UserBalanceServiceApiAxiosParamCreator = exports.UserAPIKeyServiceApi = exports.UserAPIKeyServiceApiFactory = exports.UserAPIKeyServiceApiFp = exports.UserAPIKeyServiceApiAxiosParamCreator = exports.QRCodeAdminServiceApi = exports.QRCodeAdminServiceApiFactory = exports.QRCodeAdminServiceApiFp = exports.QRCodeAdminServiceApiAxiosParamCreator = exports.ProviderModelAdminServiceApi = exports.ProviderModelAdminServiceApiFactory = exports.ProviderModelAdminServiceApiFp = exports.ProviderModelAdminServiceApiAxiosParamCreator = exports.ProviderAdminServiceApi = exports.ProviderAdminServiceApiFactory = exports.ProviderAdminServiceApiFp = exports.ProviderAdminServiceApiAxiosParamCreator = exports.DiscountAdminServiceApi = exports.DiscountAdminServiceApiFactory = exports.DiscountAdminServiceApiFp = exports.DiscountAdminServiceApiAxiosParamCreator = exports.AdminAPITokenServiceApi = exports.AdminAPITokenServiceApiFactory = exports.AdminAPITokenServiceApiFp = exports.AdminAPITokenServiceApiAxiosParamCreator = exports.AIModelAdminServiceApi = exports.AIModelAdminServiceApiFactory = exports.AIModelAdminServiceApiFp = exports.AIModelAdminServiceApiAxiosParamCreator = exports.SessionAction = exports.FrontendModelsResponseOption = void 0;
26
- exports.UserPortalServiceApi = exports.UserPortalServiceApiFactory = exports.UserPortalServiceApiFp = exports.UserPortalServiceApiAxiosParamCreator = exports.UserPayServiceApi = void 0;
25
+ exports.UserPayServiceApi = exports.UserPayServiceApiFactory = exports.UserPayServiceApiFp = exports.UserPayServiceApiAxiosParamCreator = exports.UserModelServiceFrontendModelsResponseOptionEnum = exports.UserModelServiceApi = exports.UserModelServiceApiFactory = exports.UserModelServiceApiFp = exports.UserModelServiceApiAxiosParamCreator = exports.UserLabelServiceApi = exports.UserLabelServiceApiFactory = exports.UserLabelServiceApiFp = exports.UserLabelServiceApiAxiosParamCreator = exports.UserBalanceServiceApi = exports.UserBalanceServiceApiFactory = exports.UserBalanceServiceApiFp = exports.UserBalanceServiceApiAxiosParamCreator = exports.UserAdminServiceApi = exports.UserAdminServiceApiFactory = exports.UserAdminServiceApiFp = exports.UserAdminServiceApiAxiosParamCreator = exports.UserAPIKeyServiceApi = exports.UserAPIKeyServiceApiFactory = exports.UserAPIKeyServiceApiFp = exports.UserAPIKeyServiceApiAxiosParamCreator = exports.QRCodeAdminServiceApi = exports.QRCodeAdminServiceApiFactory = exports.QRCodeAdminServiceApiFp = exports.QRCodeAdminServiceApiAxiosParamCreator = exports.ProviderModelAdminServiceApi = exports.ProviderModelAdminServiceApiFactory = exports.ProviderModelAdminServiceApiFp = exports.ProviderModelAdminServiceApiAxiosParamCreator = exports.ProviderAdminServiceApi = exports.ProviderAdminServiceApiFactory = exports.ProviderAdminServiceApiFp = exports.ProviderAdminServiceApiAxiosParamCreator = exports.DiscountAdminServiceApi = exports.DiscountAdminServiceApiFactory = exports.DiscountAdminServiceApiFp = exports.DiscountAdminServiceApiAxiosParamCreator = exports.AdminAPITokenServiceApi = exports.AdminAPITokenServiceApiFactory = exports.AdminAPITokenServiceApiFp = exports.AdminAPITokenServiceApiAxiosParamCreator = exports.AIModelAdminServiceApi = exports.AIModelAdminServiceApiFactory = exports.AIModelAdminServiceApiFp = exports.AIModelAdminServiceApiAxiosParamCreator = exports.FrontendModelsResponseOption = void 0;
26
+ exports.UserPortalServiceApi = exports.UserPortalServiceApiFactory = exports.UserPortalServiceApiFp = exports.UserPortalServiceApiAxiosParamCreator = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -38,13 +38,6 @@ exports.FrontendModelsResponseOption = {
38
38
  ResponseOptionCdnOnly: 'RESPONSE_OPTION_CDN_ONLY',
39
39
  ResponseOptionDataOnly: 'RESPONSE_OPTION_DATA_ONLY'
40
40
  };
41
- /**
42
- * - SESSION_ACTION_UNSPECIFIED: 未指定 - SESSION_ACTION_REVOKE: 撤销 Session
43
- */
44
- exports.SessionAction = {
45
- SessionActionUnspecified: 'SESSION_ACTION_UNSPECIFIED',
46
- SessionActionRevoke: 'SESSION_ACTION_REVOKE'
47
- };
48
41
  /**
49
42
  * AIModelAdminServiceApi - axios parameter creator
50
43
  */
@@ -3857,6 +3850,104 @@ class UserAPIKeyServiceApi extends base_1.BaseAPI {
3857
3850
  }
3858
3851
  }
3859
3852
  exports.UserAPIKeyServiceApi = UserAPIKeyServiceApi;
3853
+ /**
3854
+ * UserAdminServiceApi - axios parameter creator
3855
+ */
3856
+ const UserAdminServiceApiAxiosParamCreator = function (configuration) {
3857
+ return {
3858
+ /**
3859
+ *
3860
+ * @summary 用户信息
3861
+ * @param {UserInfoPageGetRequest} body
3862
+ * @param {*} [options] Override http request option.
3863
+ * @throws {RequiredError}
3864
+ */
3865
+ userAdminServiceUserInfoPageGet: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
3866
+ // verify required parameter 'body' is not null or undefined
3867
+ (0, common_1.assertParamExists)('userAdminServiceUserInfoPageGet', 'body', body);
3868
+ const localVarPath = `/admin/users/search`;
3869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3870
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3871
+ let baseOptions;
3872
+ if (configuration) {
3873
+ baseOptions = configuration.baseOptions;
3874
+ }
3875
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3876
+ const localVarHeaderParameter = {};
3877
+ const localVarQueryParameter = {};
3878
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3879
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3880
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3881
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3882
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
3883
+ return {
3884
+ url: (0, common_1.toPathString)(localVarUrlObj),
3885
+ options: localVarRequestOptions,
3886
+ };
3887
+ }),
3888
+ };
3889
+ };
3890
+ exports.UserAdminServiceApiAxiosParamCreator = UserAdminServiceApiAxiosParamCreator;
3891
+ /**
3892
+ * UserAdminServiceApi - functional programming interface
3893
+ */
3894
+ const UserAdminServiceApiFp = function (configuration) {
3895
+ const localVarAxiosParamCreator = (0, exports.UserAdminServiceApiAxiosParamCreator)(configuration);
3896
+ return {
3897
+ /**
3898
+ *
3899
+ * @summary 用户信息
3900
+ * @param {UserInfoPageGetRequest} body
3901
+ * @param {*} [options] Override http request option.
3902
+ * @throws {RequiredError}
3903
+ */
3904
+ userAdminServiceUserInfoPageGet(body, options) {
3905
+ return __awaiter(this, void 0, void 0, function* () {
3906
+ var _a, _b, _c;
3907
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAdminServiceUserInfoPageGet(body, options);
3908
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3909
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoPageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3910
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3911
+ });
3912
+ },
3913
+ };
3914
+ };
3915
+ exports.UserAdminServiceApiFp = UserAdminServiceApiFp;
3916
+ /**
3917
+ * UserAdminServiceApi - factory interface
3918
+ */
3919
+ const UserAdminServiceApiFactory = function (configuration, basePath, axios) {
3920
+ const localVarFp = (0, exports.UserAdminServiceApiFp)(configuration);
3921
+ return {
3922
+ /**
3923
+ *
3924
+ * @summary 用户信息
3925
+ * @param {UserInfoPageGetRequest} body
3926
+ * @param {*} [options] Override http request option.
3927
+ * @throws {RequiredError}
3928
+ */
3929
+ userAdminServiceUserInfoPageGet(body, options) {
3930
+ return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
3931
+ },
3932
+ };
3933
+ };
3934
+ exports.UserAdminServiceApiFactory = UserAdminServiceApiFactory;
3935
+ /**
3936
+ * UserAdminServiceApi - object-oriented interface
3937
+ */
3938
+ class UserAdminServiceApi extends base_1.BaseAPI {
3939
+ /**
3940
+ *
3941
+ * @summary 用户信息
3942
+ * @param {UserInfoPageGetRequest} body
3943
+ * @param {*} [options] Override http request option.
3944
+ * @throws {RequiredError}
3945
+ */
3946
+ userAdminServiceUserInfoPageGet(body, options) {
3947
+ return (0, exports.UserAdminServiceApiFp)(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
3948
+ }
3949
+ }
3950
+ exports.UserAdminServiceApi = UserAdminServiceApi;
3860
3951
  /**
3861
3952
  * UserBalanceServiceApi - axios parameter creator
3862
3953
  */
@@ -4728,433 +4819,6 @@ class UserLabelServiceApi extends base_1.BaseAPI {
4728
4819
  }
4729
4820
  }
4730
4821
  exports.UserLabelServiceApi = UserLabelServiceApi;
4731
- /**
4732
- * UserManageAdminServiceApi - axios parameter creator
4733
- */
4734
- const UserManageAdminServiceApiAxiosParamCreator = function (configuration) {
4735
- return {
4736
- /**
4737
- *
4738
- * @summary 批量管理 Session
4739
- * @param {BatchUpdateSessionsRequest} body
4740
- * @param {*} [options] Override http request option.
4741
- * @throws {RequiredError}
4742
- */
4743
- userManageAdminServiceBatchUpdateSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
4744
- // verify required parameter 'body' is not null or undefined
4745
- (0, common_1.assertParamExists)('userManageAdminServiceBatchUpdateSessions', 'body', body);
4746
- const localVarPath = `/admin/users/manage/sessions`;
4747
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4748
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4749
- let baseOptions;
4750
- if (configuration) {
4751
- baseOptions = configuration.baseOptions;
4752
- }
4753
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4754
- const localVarHeaderParameter = {};
4755
- const localVarQueryParameter = {};
4756
- localVarHeaderParameter['Content-Type'] = 'application/json';
4757
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4758
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4759
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4760
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
4761
- return {
4762
- url: (0, common_1.toPathString)(localVarUrlObj),
4763
- options: localVarRequestOptions,
4764
- };
4765
- }),
4766
- /**
4767
- *
4768
- * @summary 用户详情
4769
- * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
4770
- * @param {*} [options] Override http request option.
4771
- * @throws {RequiredError}
4772
- */
4773
- userManageAdminServiceGetUserDetail: (uid_1, ...args_1) => __awaiter(this, [uid_1, ...args_1], void 0, function* (uid, options = {}) {
4774
- const localVarPath = `/admin/users/detail`;
4775
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4776
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4777
- let baseOptions;
4778
- if (configuration) {
4779
- baseOptions = configuration.baseOptions;
4780
- }
4781
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4782
- const localVarHeaderParameter = {};
4783
- const localVarQueryParameter = {};
4784
- if (uid !== undefined) {
4785
- localVarQueryParameter['uid'] = uid;
4786
- }
4787
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4788
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4789
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4790
- return {
4791
- url: (0, common_1.toPathString)(localVarUrlObj),
4792
- options: localVarRequestOptions,
4793
- };
4794
- }),
4795
- /**
4796
- *
4797
- * @summary 用户列表(分页查询)
4798
- * @param {ListUsersRequest} body
4799
- * @param {*} [options] Override http request option.
4800
- * @throws {RequiredError}
4801
- */
4802
- userManageAdminServiceListUsers: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
4803
- // verify required parameter 'body' is not null or undefined
4804
- (0, common_1.assertParamExists)('userManageAdminServiceListUsers', 'body', body);
4805
- const localVarPath = `/admin/users/list`;
4806
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4807
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4808
- let baseOptions;
4809
- if (configuration) {
4810
- baseOptions = configuration.baseOptions;
4811
- }
4812
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4813
- const localVarHeaderParameter = {};
4814
- const localVarQueryParameter = {};
4815
- localVarHeaderParameter['Content-Type'] = 'application/json';
4816
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4817
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4818
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4819
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
4820
- return {
4821
- url: (0, common_1.toPathString)(localVarUrlObj),
4822
- options: localVarRequestOptions,
4823
- };
4824
- }),
4825
- /**
4826
- *
4827
- * @summary 设置用户角色
4828
- * @param {SetUserRoleRequest} body
4829
- * @param {*} [options] Override http request option.
4830
- * @throws {RequiredError}
4831
- */
4832
- userManageAdminServiceSetUserRole: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
4833
- // verify required parameter 'body' is not null or undefined
4834
- (0, common_1.assertParamExists)('userManageAdminServiceSetUserRole', 'body', body);
4835
- const localVarPath = `/admin/users/manage/role`;
4836
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4837
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4838
- let baseOptions;
4839
- if (configuration) {
4840
- baseOptions = configuration.baseOptions;
4841
- }
4842
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4843
- const localVarHeaderParameter = {};
4844
- const localVarQueryParameter = {};
4845
- localVarHeaderParameter['Content-Type'] = 'application/json';
4846
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4847
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4848
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4849
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
4850
- return {
4851
- url: (0, common_1.toPathString)(localVarUrlObj),
4852
- options: localVarRequestOptions,
4853
- };
4854
- }),
4855
- /**
4856
- *
4857
- * @summary 设置用户状态(启用/禁用)
4858
- * @param {SetUserStatusRequest} body
4859
- * @param {*} [options] Override http request option.
4860
- * @throws {RequiredError}
4861
- */
4862
- userManageAdminServiceSetUserStatus: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
4863
- // verify required parameter 'body' is not null or undefined
4864
- (0, common_1.assertParamExists)('userManageAdminServiceSetUserStatus', 'body', body);
4865
- const localVarPath = `/admin/users/manage/status`;
4866
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4867
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4868
- let baseOptions;
4869
- if (configuration) {
4870
- baseOptions = configuration.baseOptions;
4871
- }
4872
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4873
- const localVarHeaderParameter = {};
4874
- const localVarQueryParameter = {};
4875
- localVarHeaderParameter['Content-Type'] = 'application/json';
4876
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4877
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4878
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4879
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
4880
- return {
4881
- url: (0, common_1.toPathString)(localVarUrlObj),
4882
- options: localVarRequestOptions,
4883
- };
4884
- }),
4885
- /**
4886
- *
4887
- * @summary 更新用户信息
4888
- * @param {UpdateUserInfoRequest} body
4889
- * @param {*} [options] Override http request option.
4890
- * @throws {RequiredError}
4891
- */
4892
- userManageAdminServiceUpdateUserInfo: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
4893
- // verify required parameter 'body' is not null or undefined
4894
- (0, common_1.assertParamExists)('userManageAdminServiceUpdateUserInfo', 'body', body);
4895
- const localVarPath = `/admin/users/manage/info`;
4896
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4897
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4898
- let baseOptions;
4899
- if (configuration) {
4900
- baseOptions = configuration.baseOptions;
4901
- }
4902
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4903
- const localVarHeaderParameter = {};
4904
- const localVarQueryParameter = {};
4905
- localVarHeaderParameter['Content-Type'] = 'application/json';
4906
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4907
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4908
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4909
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
4910
- return {
4911
- url: (0, common_1.toPathString)(localVarUrlObj),
4912
- options: localVarRequestOptions,
4913
- };
4914
- }),
4915
- };
4916
- };
4917
- exports.UserManageAdminServiceApiAxiosParamCreator = UserManageAdminServiceApiAxiosParamCreator;
4918
- /**
4919
- * UserManageAdminServiceApi - functional programming interface
4920
- */
4921
- const UserManageAdminServiceApiFp = function (configuration) {
4922
- const localVarAxiosParamCreator = (0, exports.UserManageAdminServiceApiAxiosParamCreator)(configuration);
4923
- return {
4924
- /**
4925
- *
4926
- * @summary 批量管理 Session
4927
- * @param {BatchUpdateSessionsRequest} body
4928
- * @param {*} [options] Override http request option.
4929
- * @throws {RequiredError}
4930
- */
4931
- userManageAdminServiceBatchUpdateSessions(body, options) {
4932
- return __awaiter(this, void 0, void 0, function* () {
4933
- var _a, _b, _c;
4934
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceBatchUpdateSessions(body, options);
4935
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4936
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManageAdminServiceApi.userManageAdminServiceBatchUpdateSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4937
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4938
- });
4939
- },
4940
- /**
4941
- *
4942
- * @summary 用户详情
4943
- * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
4944
- * @param {*} [options] Override http request option.
4945
- * @throws {RequiredError}
4946
- */
4947
- userManageAdminServiceGetUserDetail(uid, options) {
4948
- return __awaiter(this, void 0, void 0, function* () {
4949
- var _a, _b, _c;
4950
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceGetUserDetail(uid, options);
4951
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4952
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManageAdminServiceApi.userManageAdminServiceGetUserDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4953
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4954
- });
4955
- },
4956
- /**
4957
- *
4958
- * @summary 用户列表(分页查询)
4959
- * @param {ListUsersRequest} body
4960
- * @param {*} [options] Override http request option.
4961
- * @throws {RequiredError}
4962
- */
4963
- userManageAdminServiceListUsers(body, options) {
4964
- return __awaiter(this, void 0, void 0, function* () {
4965
- var _a, _b, _c;
4966
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceListUsers(body, options);
4967
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4968
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManageAdminServiceApi.userManageAdminServiceListUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4969
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4970
- });
4971
- },
4972
- /**
4973
- *
4974
- * @summary 设置用户角色
4975
- * @param {SetUserRoleRequest} body
4976
- * @param {*} [options] Override http request option.
4977
- * @throws {RequiredError}
4978
- */
4979
- userManageAdminServiceSetUserRole(body, options) {
4980
- return __awaiter(this, void 0, void 0, function* () {
4981
- var _a, _b, _c;
4982
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceSetUserRole(body, options);
4983
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4984
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4985
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4986
- });
4987
- },
4988
- /**
4989
- *
4990
- * @summary 设置用户状态(启用/禁用)
4991
- * @param {SetUserStatusRequest} body
4992
- * @param {*} [options] Override http request option.
4993
- * @throws {RequiredError}
4994
- */
4995
- userManageAdminServiceSetUserStatus(body, options) {
4996
- return __awaiter(this, void 0, void 0, function* () {
4997
- var _a, _b, _c;
4998
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceSetUserStatus(body, options);
4999
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5000
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5001
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5002
- });
5003
- },
5004
- /**
5005
- *
5006
- * @summary 更新用户信息
5007
- * @param {UpdateUserInfoRequest} body
5008
- * @param {*} [options] Override http request option.
5009
- * @throws {RequiredError}
5010
- */
5011
- userManageAdminServiceUpdateUserInfo(body, options) {
5012
- return __awaiter(this, void 0, void 0, function* () {
5013
- var _a, _b, _c;
5014
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceUpdateUserInfo(body, options);
5015
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5016
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManageAdminServiceApi.userManageAdminServiceUpdateUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5017
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5018
- });
5019
- },
5020
- };
5021
- };
5022
- exports.UserManageAdminServiceApiFp = UserManageAdminServiceApiFp;
5023
- /**
5024
- * UserManageAdminServiceApi - factory interface
5025
- */
5026
- const UserManageAdminServiceApiFactory = function (configuration, basePath, axios) {
5027
- const localVarFp = (0, exports.UserManageAdminServiceApiFp)(configuration);
5028
- return {
5029
- /**
5030
- *
5031
- * @summary 批量管理 Session
5032
- * @param {BatchUpdateSessionsRequest} body
5033
- * @param {*} [options] Override http request option.
5034
- * @throws {RequiredError}
5035
- */
5036
- userManageAdminServiceBatchUpdateSessions(body, options) {
5037
- return localVarFp.userManageAdminServiceBatchUpdateSessions(body, options).then((request) => request(axios, basePath));
5038
- },
5039
- /**
5040
- *
5041
- * @summary 用户详情
5042
- * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
5043
- * @param {*} [options] Override http request option.
5044
- * @throws {RequiredError}
5045
- */
5046
- userManageAdminServiceGetUserDetail(uid, options) {
5047
- return localVarFp.userManageAdminServiceGetUserDetail(uid, options).then((request) => request(axios, basePath));
5048
- },
5049
- /**
5050
- *
5051
- * @summary 用户列表(分页查询)
5052
- * @param {ListUsersRequest} body
5053
- * @param {*} [options] Override http request option.
5054
- * @throws {RequiredError}
5055
- */
5056
- userManageAdminServiceListUsers(body, options) {
5057
- return localVarFp.userManageAdminServiceListUsers(body, options).then((request) => request(axios, basePath));
5058
- },
5059
- /**
5060
- *
5061
- * @summary 设置用户角色
5062
- * @param {SetUserRoleRequest} body
5063
- * @param {*} [options] Override http request option.
5064
- * @throws {RequiredError}
5065
- */
5066
- userManageAdminServiceSetUserRole(body, options) {
5067
- return localVarFp.userManageAdminServiceSetUserRole(body, options).then((request) => request(axios, basePath));
5068
- },
5069
- /**
5070
- *
5071
- * @summary 设置用户状态(启用/禁用)
5072
- * @param {SetUserStatusRequest} body
5073
- * @param {*} [options] Override http request option.
5074
- * @throws {RequiredError}
5075
- */
5076
- userManageAdminServiceSetUserStatus(body, options) {
5077
- return localVarFp.userManageAdminServiceSetUserStatus(body, options).then((request) => request(axios, basePath));
5078
- },
5079
- /**
5080
- *
5081
- * @summary 更新用户信息
5082
- * @param {UpdateUserInfoRequest} body
5083
- * @param {*} [options] Override http request option.
5084
- * @throws {RequiredError}
5085
- */
5086
- userManageAdminServiceUpdateUserInfo(body, options) {
5087
- return localVarFp.userManageAdminServiceUpdateUserInfo(body, options).then((request) => request(axios, basePath));
5088
- },
5089
- };
5090
- };
5091
- exports.UserManageAdminServiceApiFactory = UserManageAdminServiceApiFactory;
5092
- /**
5093
- * UserManageAdminServiceApi - object-oriented interface
5094
- */
5095
- class UserManageAdminServiceApi extends base_1.BaseAPI {
5096
- /**
5097
- *
5098
- * @summary 批量管理 Session
5099
- * @param {BatchUpdateSessionsRequest} body
5100
- * @param {*} [options] Override http request option.
5101
- * @throws {RequiredError}
5102
- */
5103
- userManageAdminServiceBatchUpdateSessions(body, options) {
5104
- return (0, exports.UserManageAdminServiceApiFp)(this.configuration).userManageAdminServiceBatchUpdateSessions(body, options).then((request) => request(this.axios, this.basePath));
5105
- }
5106
- /**
5107
- *
5108
- * @summary 用户详情
5109
- * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
5110
- * @param {*} [options] Override http request option.
5111
- * @throws {RequiredError}
5112
- */
5113
- userManageAdminServiceGetUserDetail(uid, options) {
5114
- return (0, exports.UserManageAdminServiceApiFp)(this.configuration).userManageAdminServiceGetUserDetail(uid, options).then((request) => request(this.axios, this.basePath));
5115
- }
5116
- /**
5117
- *
5118
- * @summary 用户列表(分页查询)
5119
- * @param {ListUsersRequest} body
5120
- * @param {*} [options] Override http request option.
5121
- * @throws {RequiredError}
5122
- */
5123
- userManageAdminServiceListUsers(body, options) {
5124
- return (0, exports.UserManageAdminServiceApiFp)(this.configuration).userManageAdminServiceListUsers(body, options).then((request) => request(this.axios, this.basePath));
5125
- }
5126
- /**
5127
- *
5128
- * @summary 设置用户角色
5129
- * @param {SetUserRoleRequest} body
5130
- * @param {*} [options] Override http request option.
5131
- * @throws {RequiredError}
5132
- */
5133
- userManageAdminServiceSetUserRole(body, options) {
5134
- return (0, exports.UserManageAdminServiceApiFp)(this.configuration).userManageAdminServiceSetUserRole(body, options).then((request) => request(this.axios, this.basePath));
5135
- }
5136
- /**
5137
- *
5138
- * @summary 设置用户状态(启用/禁用)
5139
- * @param {SetUserStatusRequest} body
5140
- * @param {*} [options] Override http request option.
5141
- * @throws {RequiredError}
5142
- */
5143
- userManageAdminServiceSetUserStatus(body, options) {
5144
- return (0, exports.UserManageAdminServiceApiFp)(this.configuration).userManageAdminServiceSetUserStatus(body, options).then((request) => request(this.axios, this.basePath));
5145
- }
5146
- /**
5147
- *
5148
- * @summary 更新用户信息
5149
- * @param {UpdateUserInfoRequest} body
5150
- * @param {*} [options] Override http request option.
5151
- * @throws {RequiredError}
5152
- */
5153
- userManageAdminServiceUpdateUserInfo(body, options) {
5154
- return (0, exports.UserManageAdminServiceApiFp)(this.configuration).userManageAdminServiceUpdateUserInfo(body, options).then((request) => request(this.axios, this.basePath));
5155
- }
5156
- }
5157
- exports.UserManageAdminServiceApi = UserManageAdminServiceApi;
5158
4822
  /**
5159
4823
  * UserModelServiceApi - axios parameter creator
5160
4824
  */