@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.
- package/.openapi-generator/FILES +13 -22
- package/README.md +15 -29
- package/api.ts +191 -678
- package/dist/api.d.ts +138 -425
- package/dist/api.js +100 -436
- package/dist/esm/api.d.ts +138 -425
- package/dist/esm/api.js +94 -430
- package/docs/{UserInfo.md → AigwpbUserInfo.md} +3 -3
- package/docs/AigwpbUserMeInfo.md +2 -2
- package/docs/{UserSettings.md → AigwpbUserSettings.md} +3 -3
- package/docs/AuthUserMethod.md +38 -0
- package/docs/PassportpbUserInfo.md +30 -0
- package/docs/{UserManageSettings.md → PassportpbUserSettings.md} +3 -3
- package/docs/UserAdminServiceApi.md +60 -0
- package/docs/UserBasic.md +42 -0
- package/docs/{SetUserStatusRequest.md → UserExtendInfo.md} +5 -7
- package/docs/UserInfoItem.md +22 -0
- package/docs/{UpdateUserInfoRequest.md → UserInfoPageGetRequest.md} +13 -9
- package/docs/{ListUsersResponse.md → UserInfoPageGetResponse.md} +5 -9
- package/docs/UserPaymentInfo.md +20 -0
- package/docs/{SetUserRoleRequest.md → UserPreferences.md} +7 -7
- package/package.json +1 -1
- package/docs/BatchUpdateSessionsRequest.md +0 -24
- package/docs/BatchUpdateSessionsResponse.md +0 -24
- package/docs/GetUserDetailResponse.md +0 -24
- package/docs/ListUsersRequest.md +0 -36
- package/docs/SessionAction.md +0 -11
- package/docs/SetUserRoleResponse.md +0 -24
- package/docs/SetUserStatusResponse.md +0 -26
- package/docs/UpdateUserInfoResponse.md +0 -24
- package/docs/UserManageAPIKey.md +0 -38
- package/docs/UserManageAdminServiceApi.md +0 -324
- package/docs/UserManageAuthMethod.md +0 -32
- package/docs/UserManageBalance.md +0 -32
- package/docs/UserManageDetail.md +0 -46
- package/docs/UserManageItem.md +0 -38
- package/docs/UserManageSession.md +0 -34
package/dist/esm/api.js
CHANGED
|
@@ -34,13 +34,6 @@ export const FrontendModelsResponseOption = {
|
|
|
34
34
|
ResponseOptionCdnOnly: 'RESPONSE_OPTION_CDN_ONLY',
|
|
35
35
|
ResponseOptionDataOnly: 'RESPONSE_OPTION_DATA_ONLY'
|
|
36
36
|
};
|
|
37
|
-
/**
|
|
38
|
-
* - SESSION_ACTION_UNSPECIFIED: 未指定 - SESSION_ACTION_REVOKE: 撤销 Session
|
|
39
|
-
*/
|
|
40
|
-
export const SessionAction = {
|
|
41
|
-
SessionActionUnspecified: 'SESSION_ACTION_UNSPECIFIED',
|
|
42
|
-
SessionActionRevoke: 'SESSION_ACTION_REVOKE'
|
|
43
|
-
};
|
|
44
37
|
/**
|
|
45
38
|
* AIModelAdminServiceApi - axios parameter creator
|
|
46
39
|
*/
|
|
@@ -3825,6 +3818,100 @@ export class UserAPIKeyServiceApi extends BaseAPI {
|
|
|
3825
3818
|
return UserAPIKeyServiceApiFp(this.configuration).userAPIKeyServiceUserAPIKeyUpdate(body, options).then((request) => request(this.axios, this.basePath));
|
|
3826
3819
|
}
|
|
3827
3820
|
}
|
|
3821
|
+
/**
|
|
3822
|
+
* UserAdminServiceApi - axios parameter creator
|
|
3823
|
+
*/
|
|
3824
|
+
export const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
3825
|
+
return {
|
|
3826
|
+
/**
|
|
3827
|
+
*
|
|
3828
|
+
* @summary 用户信息
|
|
3829
|
+
* @param {UserInfoPageGetRequest} body
|
|
3830
|
+
* @param {*} [options] Override http request option.
|
|
3831
|
+
* @throws {RequiredError}
|
|
3832
|
+
*/
|
|
3833
|
+
userAdminServiceUserInfoPageGet: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
3834
|
+
// verify required parameter 'body' is not null or undefined
|
|
3835
|
+
assertParamExists('userAdminServiceUserInfoPageGet', 'body', body);
|
|
3836
|
+
const localVarPath = `/admin/users/search`;
|
|
3837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3839
|
+
let baseOptions;
|
|
3840
|
+
if (configuration) {
|
|
3841
|
+
baseOptions = configuration.baseOptions;
|
|
3842
|
+
}
|
|
3843
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3844
|
+
const localVarHeaderParameter = {};
|
|
3845
|
+
const localVarQueryParameter = {};
|
|
3846
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3847
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3848
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3849
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3850
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
3851
|
+
return {
|
|
3852
|
+
url: toPathString(localVarUrlObj),
|
|
3853
|
+
options: localVarRequestOptions,
|
|
3854
|
+
};
|
|
3855
|
+
}),
|
|
3856
|
+
};
|
|
3857
|
+
};
|
|
3858
|
+
/**
|
|
3859
|
+
* UserAdminServiceApi - functional programming interface
|
|
3860
|
+
*/
|
|
3861
|
+
export const UserAdminServiceApiFp = function (configuration) {
|
|
3862
|
+
const localVarAxiosParamCreator = UserAdminServiceApiAxiosParamCreator(configuration);
|
|
3863
|
+
return {
|
|
3864
|
+
/**
|
|
3865
|
+
*
|
|
3866
|
+
* @summary 用户信息
|
|
3867
|
+
* @param {UserInfoPageGetRequest} body
|
|
3868
|
+
* @param {*} [options] Override http request option.
|
|
3869
|
+
* @throws {RequiredError}
|
|
3870
|
+
*/
|
|
3871
|
+
userAdminServiceUserInfoPageGet(body, options) {
|
|
3872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3873
|
+
var _a, _b, _c;
|
|
3874
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAdminServiceUserInfoPageGet(body, options);
|
|
3875
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3876
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoPageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3877
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3878
|
+
});
|
|
3879
|
+
},
|
|
3880
|
+
};
|
|
3881
|
+
};
|
|
3882
|
+
/**
|
|
3883
|
+
* UserAdminServiceApi - factory interface
|
|
3884
|
+
*/
|
|
3885
|
+
export const UserAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
3886
|
+
const localVarFp = UserAdminServiceApiFp(configuration);
|
|
3887
|
+
return {
|
|
3888
|
+
/**
|
|
3889
|
+
*
|
|
3890
|
+
* @summary 用户信息
|
|
3891
|
+
* @param {UserInfoPageGetRequest} body
|
|
3892
|
+
* @param {*} [options] Override http request option.
|
|
3893
|
+
* @throws {RequiredError}
|
|
3894
|
+
*/
|
|
3895
|
+
userAdminServiceUserInfoPageGet(body, options) {
|
|
3896
|
+
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
3897
|
+
},
|
|
3898
|
+
};
|
|
3899
|
+
};
|
|
3900
|
+
/**
|
|
3901
|
+
* UserAdminServiceApi - object-oriented interface
|
|
3902
|
+
*/
|
|
3903
|
+
export class UserAdminServiceApi extends BaseAPI {
|
|
3904
|
+
/**
|
|
3905
|
+
*
|
|
3906
|
+
* @summary 用户信息
|
|
3907
|
+
* @param {UserInfoPageGetRequest} body
|
|
3908
|
+
* @param {*} [options] Override http request option.
|
|
3909
|
+
* @throws {RequiredError}
|
|
3910
|
+
*/
|
|
3911
|
+
userAdminServiceUserInfoPageGet(body, options) {
|
|
3912
|
+
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3828
3915
|
/**
|
|
3829
3916
|
* UserBalanceServiceApi - axios parameter creator
|
|
3830
3917
|
*/
|
|
@@ -4688,429 +4775,6 @@ export class UserLabelServiceApi extends BaseAPI {
|
|
|
4688
4775
|
return UserLabelServiceApiFp(this.configuration).userLabelServiceUserLabelPairChange(body, options).then((request) => request(this.axios, this.basePath));
|
|
4689
4776
|
}
|
|
4690
4777
|
}
|
|
4691
|
-
/**
|
|
4692
|
-
* UserManageAdminServiceApi - axios parameter creator
|
|
4693
|
-
*/
|
|
4694
|
-
export const UserManageAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
4695
|
-
return {
|
|
4696
|
-
/**
|
|
4697
|
-
*
|
|
4698
|
-
* @summary 批量管理 Session
|
|
4699
|
-
* @param {BatchUpdateSessionsRequest} body
|
|
4700
|
-
* @param {*} [options] Override http request option.
|
|
4701
|
-
* @throws {RequiredError}
|
|
4702
|
-
*/
|
|
4703
|
-
userManageAdminServiceBatchUpdateSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
4704
|
-
// verify required parameter 'body' is not null or undefined
|
|
4705
|
-
assertParamExists('userManageAdminServiceBatchUpdateSessions', 'body', body);
|
|
4706
|
-
const localVarPath = `/admin/users/manage/sessions`;
|
|
4707
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4708
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4709
|
-
let baseOptions;
|
|
4710
|
-
if (configuration) {
|
|
4711
|
-
baseOptions = configuration.baseOptions;
|
|
4712
|
-
}
|
|
4713
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4714
|
-
const localVarHeaderParameter = {};
|
|
4715
|
-
const localVarQueryParameter = {};
|
|
4716
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4717
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4718
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4719
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4720
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
4721
|
-
return {
|
|
4722
|
-
url: toPathString(localVarUrlObj),
|
|
4723
|
-
options: localVarRequestOptions,
|
|
4724
|
-
};
|
|
4725
|
-
}),
|
|
4726
|
-
/**
|
|
4727
|
-
*
|
|
4728
|
-
* @summary 用户详情
|
|
4729
|
-
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
|
|
4730
|
-
* @param {*} [options] Override http request option.
|
|
4731
|
-
* @throws {RequiredError}
|
|
4732
|
-
*/
|
|
4733
|
-
userManageAdminServiceGetUserDetail: (uid_1, ...args_1) => __awaiter(this, [uid_1, ...args_1], void 0, function* (uid, options = {}) {
|
|
4734
|
-
const localVarPath = `/admin/users/detail`;
|
|
4735
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4736
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4737
|
-
let baseOptions;
|
|
4738
|
-
if (configuration) {
|
|
4739
|
-
baseOptions = configuration.baseOptions;
|
|
4740
|
-
}
|
|
4741
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4742
|
-
const localVarHeaderParameter = {};
|
|
4743
|
-
const localVarQueryParameter = {};
|
|
4744
|
-
if (uid !== undefined) {
|
|
4745
|
-
localVarQueryParameter['uid'] = uid;
|
|
4746
|
-
}
|
|
4747
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4748
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4749
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4750
|
-
return {
|
|
4751
|
-
url: toPathString(localVarUrlObj),
|
|
4752
|
-
options: localVarRequestOptions,
|
|
4753
|
-
};
|
|
4754
|
-
}),
|
|
4755
|
-
/**
|
|
4756
|
-
*
|
|
4757
|
-
* @summary 用户列表(分页查询)
|
|
4758
|
-
* @param {ListUsersRequest} body
|
|
4759
|
-
* @param {*} [options] Override http request option.
|
|
4760
|
-
* @throws {RequiredError}
|
|
4761
|
-
*/
|
|
4762
|
-
userManageAdminServiceListUsers: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
4763
|
-
// verify required parameter 'body' is not null or undefined
|
|
4764
|
-
assertParamExists('userManageAdminServiceListUsers', 'body', body);
|
|
4765
|
-
const localVarPath = `/admin/users/list`;
|
|
4766
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4767
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4768
|
-
let baseOptions;
|
|
4769
|
-
if (configuration) {
|
|
4770
|
-
baseOptions = configuration.baseOptions;
|
|
4771
|
-
}
|
|
4772
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4773
|
-
const localVarHeaderParameter = {};
|
|
4774
|
-
const localVarQueryParameter = {};
|
|
4775
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4776
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4777
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4778
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4779
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
4780
|
-
return {
|
|
4781
|
-
url: toPathString(localVarUrlObj),
|
|
4782
|
-
options: localVarRequestOptions,
|
|
4783
|
-
};
|
|
4784
|
-
}),
|
|
4785
|
-
/**
|
|
4786
|
-
*
|
|
4787
|
-
* @summary 设置用户角色
|
|
4788
|
-
* @param {SetUserRoleRequest} body
|
|
4789
|
-
* @param {*} [options] Override http request option.
|
|
4790
|
-
* @throws {RequiredError}
|
|
4791
|
-
*/
|
|
4792
|
-
userManageAdminServiceSetUserRole: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
4793
|
-
// verify required parameter 'body' is not null or undefined
|
|
4794
|
-
assertParamExists('userManageAdminServiceSetUserRole', 'body', body);
|
|
4795
|
-
const localVarPath = `/admin/users/manage/role`;
|
|
4796
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4797
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4798
|
-
let baseOptions;
|
|
4799
|
-
if (configuration) {
|
|
4800
|
-
baseOptions = configuration.baseOptions;
|
|
4801
|
-
}
|
|
4802
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4803
|
-
const localVarHeaderParameter = {};
|
|
4804
|
-
const localVarQueryParameter = {};
|
|
4805
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4806
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4807
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4808
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4809
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
4810
|
-
return {
|
|
4811
|
-
url: toPathString(localVarUrlObj),
|
|
4812
|
-
options: localVarRequestOptions,
|
|
4813
|
-
};
|
|
4814
|
-
}),
|
|
4815
|
-
/**
|
|
4816
|
-
*
|
|
4817
|
-
* @summary 设置用户状态(启用/禁用)
|
|
4818
|
-
* @param {SetUserStatusRequest} body
|
|
4819
|
-
* @param {*} [options] Override http request option.
|
|
4820
|
-
* @throws {RequiredError}
|
|
4821
|
-
*/
|
|
4822
|
-
userManageAdminServiceSetUserStatus: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
4823
|
-
// verify required parameter 'body' is not null or undefined
|
|
4824
|
-
assertParamExists('userManageAdminServiceSetUserStatus', 'body', body);
|
|
4825
|
-
const localVarPath = `/admin/users/manage/status`;
|
|
4826
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4827
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4828
|
-
let baseOptions;
|
|
4829
|
-
if (configuration) {
|
|
4830
|
-
baseOptions = configuration.baseOptions;
|
|
4831
|
-
}
|
|
4832
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4833
|
-
const localVarHeaderParameter = {};
|
|
4834
|
-
const localVarQueryParameter = {};
|
|
4835
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4836
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4837
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4838
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4839
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
4840
|
-
return {
|
|
4841
|
-
url: toPathString(localVarUrlObj),
|
|
4842
|
-
options: localVarRequestOptions,
|
|
4843
|
-
};
|
|
4844
|
-
}),
|
|
4845
|
-
/**
|
|
4846
|
-
*
|
|
4847
|
-
* @summary 更新用户信息
|
|
4848
|
-
* @param {UpdateUserInfoRequest} body
|
|
4849
|
-
* @param {*} [options] Override http request option.
|
|
4850
|
-
* @throws {RequiredError}
|
|
4851
|
-
*/
|
|
4852
|
-
userManageAdminServiceUpdateUserInfo: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
4853
|
-
// verify required parameter 'body' is not null or undefined
|
|
4854
|
-
assertParamExists('userManageAdminServiceUpdateUserInfo', 'body', body);
|
|
4855
|
-
const localVarPath = `/admin/users/manage/info`;
|
|
4856
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4857
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4858
|
-
let baseOptions;
|
|
4859
|
-
if (configuration) {
|
|
4860
|
-
baseOptions = configuration.baseOptions;
|
|
4861
|
-
}
|
|
4862
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4863
|
-
const localVarHeaderParameter = {};
|
|
4864
|
-
const localVarQueryParameter = {};
|
|
4865
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4866
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4867
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4868
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4869
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
4870
|
-
return {
|
|
4871
|
-
url: toPathString(localVarUrlObj),
|
|
4872
|
-
options: localVarRequestOptions,
|
|
4873
|
-
};
|
|
4874
|
-
}),
|
|
4875
|
-
};
|
|
4876
|
-
};
|
|
4877
|
-
/**
|
|
4878
|
-
* UserManageAdminServiceApi - functional programming interface
|
|
4879
|
-
*/
|
|
4880
|
-
export const UserManageAdminServiceApiFp = function (configuration) {
|
|
4881
|
-
const localVarAxiosParamCreator = UserManageAdminServiceApiAxiosParamCreator(configuration);
|
|
4882
|
-
return {
|
|
4883
|
-
/**
|
|
4884
|
-
*
|
|
4885
|
-
* @summary 批量管理 Session
|
|
4886
|
-
* @param {BatchUpdateSessionsRequest} body
|
|
4887
|
-
* @param {*} [options] Override http request option.
|
|
4888
|
-
* @throws {RequiredError}
|
|
4889
|
-
*/
|
|
4890
|
-
userManageAdminServiceBatchUpdateSessions(body, options) {
|
|
4891
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4892
|
-
var _a, _b, _c;
|
|
4893
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceBatchUpdateSessions(body, options);
|
|
4894
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4895
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceBatchUpdateSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4896
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4897
|
-
});
|
|
4898
|
-
},
|
|
4899
|
-
/**
|
|
4900
|
-
*
|
|
4901
|
-
* @summary 用户详情
|
|
4902
|
-
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
|
|
4903
|
-
* @param {*} [options] Override http request option.
|
|
4904
|
-
* @throws {RequiredError}
|
|
4905
|
-
*/
|
|
4906
|
-
userManageAdminServiceGetUserDetail(uid, options) {
|
|
4907
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4908
|
-
var _a, _b, _c;
|
|
4909
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceGetUserDetail(uid, options);
|
|
4910
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4911
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceGetUserDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4912
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4913
|
-
});
|
|
4914
|
-
},
|
|
4915
|
-
/**
|
|
4916
|
-
*
|
|
4917
|
-
* @summary 用户列表(分页查询)
|
|
4918
|
-
* @param {ListUsersRequest} body
|
|
4919
|
-
* @param {*} [options] Override http request option.
|
|
4920
|
-
* @throws {RequiredError}
|
|
4921
|
-
*/
|
|
4922
|
-
userManageAdminServiceListUsers(body, options) {
|
|
4923
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4924
|
-
var _a, _b, _c;
|
|
4925
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceListUsers(body, options);
|
|
4926
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4927
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceListUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4928
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4929
|
-
});
|
|
4930
|
-
},
|
|
4931
|
-
/**
|
|
4932
|
-
*
|
|
4933
|
-
* @summary 设置用户角色
|
|
4934
|
-
* @param {SetUserRoleRequest} body
|
|
4935
|
-
* @param {*} [options] Override http request option.
|
|
4936
|
-
* @throws {RequiredError}
|
|
4937
|
-
*/
|
|
4938
|
-
userManageAdminServiceSetUserRole(body, options) {
|
|
4939
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4940
|
-
var _a, _b, _c;
|
|
4941
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceSetUserRole(body, options);
|
|
4942
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4943
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4944
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4945
|
-
});
|
|
4946
|
-
},
|
|
4947
|
-
/**
|
|
4948
|
-
*
|
|
4949
|
-
* @summary 设置用户状态(启用/禁用)
|
|
4950
|
-
* @param {SetUserStatusRequest} body
|
|
4951
|
-
* @param {*} [options] Override http request option.
|
|
4952
|
-
* @throws {RequiredError}
|
|
4953
|
-
*/
|
|
4954
|
-
userManageAdminServiceSetUserStatus(body, options) {
|
|
4955
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4956
|
-
var _a, _b, _c;
|
|
4957
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceSetUserStatus(body, options);
|
|
4958
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4959
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4960
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4961
|
-
});
|
|
4962
|
-
},
|
|
4963
|
-
/**
|
|
4964
|
-
*
|
|
4965
|
-
* @summary 更新用户信息
|
|
4966
|
-
* @param {UpdateUserInfoRequest} body
|
|
4967
|
-
* @param {*} [options] Override http request option.
|
|
4968
|
-
* @throws {RequiredError}
|
|
4969
|
-
*/
|
|
4970
|
-
userManageAdminServiceUpdateUserInfo(body, options) {
|
|
4971
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4972
|
-
var _a, _b, _c;
|
|
4973
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceUpdateUserInfo(body, options);
|
|
4974
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4975
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceUpdateUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4976
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4977
|
-
});
|
|
4978
|
-
},
|
|
4979
|
-
};
|
|
4980
|
-
};
|
|
4981
|
-
/**
|
|
4982
|
-
* UserManageAdminServiceApi - factory interface
|
|
4983
|
-
*/
|
|
4984
|
-
export const UserManageAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
4985
|
-
const localVarFp = UserManageAdminServiceApiFp(configuration);
|
|
4986
|
-
return {
|
|
4987
|
-
/**
|
|
4988
|
-
*
|
|
4989
|
-
* @summary 批量管理 Session
|
|
4990
|
-
* @param {BatchUpdateSessionsRequest} body
|
|
4991
|
-
* @param {*} [options] Override http request option.
|
|
4992
|
-
* @throws {RequiredError}
|
|
4993
|
-
*/
|
|
4994
|
-
userManageAdminServiceBatchUpdateSessions(body, options) {
|
|
4995
|
-
return localVarFp.userManageAdminServiceBatchUpdateSessions(body, options).then((request) => request(axios, basePath));
|
|
4996
|
-
},
|
|
4997
|
-
/**
|
|
4998
|
-
*
|
|
4999
|
-
* @summary 用户详情
|
|
5000
|
-
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
|
|
5001
|
-
* @param {*} [options] Override http request option.
|
|
5002
|
-
* @throws {RequiredError}
|
|
5003
|
-
*/
|
|
5004
|
-
userManageAdminServiceGetUserDetail(uid, options) {
|
|
5005
|
-
return localVarFp.userManageAdminServiceGetUserDetail(uid, options).then((request) => request(axios, basePath));
|
|
5006
|
-
},
|
|
5007
|
-
/**
|
|
5008
|
-
*
|
|
5009
|
-
* @summary 用户列表(分页查询)
|
|
5010
|
-
* @param {ListUsersRequest} body
|
|
5011
|
-
* @param {*} [options] Override http request option.
|
|
5012
|
-
* @throws {RequiredError}
|
|
5013
|
-
*/
|
|
5014
|
-
userManageAdminServiceListUsers(body, options) {
|
|
5015
|
-
return localVarFp.userManageAdminServiceListUsers(body, options).then((request) => request(axios, basePath));
|
|
5016
|
-
},
|
|
5017
|
-
/**
|
|
5018
|
-
*
|
|
5019
|
-
* @summary 设置用户角色
|
|
5020
|
-
* @param {SetUserRoleRequest} body
|
|
5021
|
-
* @param {*} [options] Override http request option.
|
|
5022
|
-
* @throws {RequiredError}
|
|
5023
|
-
*/
|
|
5024
|
-
userManageAdminServiceSetUserRole(body, options) {
|
|
5025
|
-
return localVarFp.userManageAdminServiceSetUserRole(body, options).then((request) => request(axios, basePath));
|
|
5026
|
-
},
|
|
5027
|
-
/**
|
|
5028
|
-
*
|
|
5029
|
-
* @summary 设置用户状态(启用/禁用)
|
|
5030
|
-
* @param {SetUserStatusRequest} body
|
|
5031
|
-
* @param {*} [options] Override http request option.
|
|
5032
|
-
* @throws {RequiredError}
|
|
5033
|
-
*/
|
|
5034
|
-
userManageAdminServiceSetUserStatus(body, options) {
|
|
5035
|
-
return localVarFp.userManageAdminServiceSetUserStatus(body, options).then((request) => request(axios, basePath));
|
|
5036
|
-
},
|
|
5037
|
-
/**
|
|
5038
|
-
*
|
|
5039
|
-
* @summary 更新用户信息
|
|
5040
|
-
* @param {UpdateUserInfoRequest} body
|
|
5041
|
-
* @param {*} [options] Override http request option.
|
|
5042
|
-
* @throws {RequiredError}
|
|
5043
|
-
*/
|
|
5044
|
-
userManageAdminServiceUpdateUserInfo(body, options) {
|
|
5045
|
-
return localVarFp.userManageAdminServiceUpdateUserInfo(body, options).then((request) => request(axios, basePath));
|
|
5046
|
-
},
|
|
5047
|
-
};
|
|
5048
|
-
};
|
|
5049
|
-
/**
|
|
5050
|
-
* UserManageAdminServiceApi - object-oriented interface
|
|
5051
|
-
*/
|
|
5052
|
-
export class UserManageAdminServiceApi extends BaseAPI {
|
|
5053
|
-
/**
|
|
5054
|
-
*
|
|
5055
|
-
* @summary 批量管理 Session
|
|
5056
|
-
* @param {BatchUpdateSessionsRequest} body
|
|
5057
|
-
* @param {*} [options] Override http request option.
|
|
5058
|
-
* @throws {RequiredError}
|
|
5059
|
-
*/
|
|
5060
|
-
userManageAdminServiceBatchUpdateSessions(body, options) {
|
|
5061
|
-
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceBatchUpdateSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
5062
|
-
}
|
|
5063
|
-
/**
|
|
5064
|
-
*
|
|
5065
|
-
* @summary 用户详情
|
|
5066
|
-
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\" 用户 UID
|
|
5067
|
-
* @param {*} [options] Override http request option.
|
|
5068
|
-
* @throws {RequiredError}
|
|
5069
|
-
*/
|
|
5070
|
-
userManageAdminServiceGetUserDetail(uid, options) {
|
|
5071
|
-
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceGetUserDetail(uid, options).then((request) => request(this.axios, this.basePath));
|
|
5072
|
-
}
|
|
5073
|
-
/**
|
|
5074
|
-
*
|
|
5075
|
-
* @summary 用户列表(分页查询)
|
|
5076
|
-
* @param {ListUsersRequest} body
|
|
5077
|
-
* @param {*} [options] Override http request option.
|
|
5078
|
-
* @throws {RequiredError}
|
|
5079
|
-
*/
|
|
5080
|
-
userManageAdminServiceListUsers(body, options) {
|
|
5081
|
-
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceListUsers(body, options).then((request) => request(this.axios, this.basePath));
|
|
5082
|
-
}
|
|
5083
|
-
/**
|
|
5084
|
-
*
|
|
5085
|
-
* @summary 设置用户角色
|
|
5086
|
-
* @param {SetUserRoleRequest} body
|
|
5087
|
-
* @param {*} [options] Override http request option.
|
|
5088
|
-
* @throws {RequiredError}
|
|
5089
|
-
*/
|
|
5090
|
-
userManageAdminServiceSetUserRole(body, options) {
|
|
5091
|
-
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceSetUserRole(body, options).then((request) => request(this.axios, this.basePath));
|
|
5092
|
-
}
|
|
5093
|
-
/**
|
|
5094
|
-
*
|
|
5095
|
-
* @summary 设置用户状态(启用/禁用)
|
|
5096
|
-
* @param {SetUserStatusRequest} body
|
|
5097
|
-
* @param {*} [options] Override http request option.
|
|
5098
|
-
* @throws {RequiredError}
|
|
5099
|
-
*/
|
|
5100
|
-
userManageAdminServiceSetUserStatus(body, options) {
|
|
5101
|
-
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceSetUserStatus(body, options).then((request) => request(this.axios, this.basePath));
|
|
5102
|
-
}
|
|
5103
|
-
/**
|
|
5104
|
-
*
|
|
5105
|
-
* @summary 更新用户信息
|
|
5106
|
-
* @param {UpdateUserInfoRequest} body
|
|
5107
|
-
* @param {*} [options] Override http request option.
|
|
5108
|
-
* @throws {RequiredError}
|
|
5109
|
-
*/
|
|
5110
|
-
userManageAdminServiceUpdateUserInfo(body, options) {
|
|
5111
|
-
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceUpdateUserInfo(body, options).then((request) => request(this.axios, this.basePath));
|
|
5112
|
-
}
|
|
5113
|
-
}
|
|
5114
4778
|
/**
|
|
5115
4779
|
* UserModelServiceApi - axios parameter creator
|
|
5116
4780
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AigwpbUserInfo
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import {
|
|
19
|
+
import { AigwpbUserInfo } from '@cherryin/aigw-api-client';
|
|
20
20
|
|
|
21
|
-
const instance:
|
|
21
|
+
const instance: AigwpbUserInfo = {
|
|
22
22
|
id,
|
|
23
23
|
name,
|
|
24
24
|
email,
|
package/docs/AigwpbUserMeInfo.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**info** | [**
|
|
9
|
-
**settings** | [**
|
|
8
|
+
**info** | [**AigwpbUserInfo**](AigwpbUserInfo.md) | | [optional] [default to undefined]
|
|
9
|
+
**settings** | [**AigwpbUserSettings**](AigwpbUserSettings.md) | | [optional] [default to undefined]
|
|
10
10
|
**balance** | [**UserBalanceBrief**](UserBalanceBrief.md) | | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AigwpbUserSettings
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { AigwpbUserSettings } from '@cherryin/aigw-api-client';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: AigwpbUserSettings = {
|
|
16
16
|
email_notifications_enabled,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# AuthUserMethod
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**app_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**aid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**provider_id** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**oauth_account_id** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**oauth_scopes** | **Array<string>** | | [optional] [default to undefined]
|
|
16
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { AuthUserMethod } from '@cherryin/aigw-api-client';
|
|
23
|
+
|
|
24
|
+
const instance: AuthUserMethod = {
|
|
25
|
+
app_id,
|
|
26
|
+
aid,
|
|
27
|
+
uid,
|
|
28
|
+
provider_id,
|
|
29
|
+
email,
|
|
30
|
+
phone,
|
|
31
|
+
oauth_account_id,
|
|
32
|
+
oauth_scopes,
|
|
33
|
+
created_at,
|
|
34
|
+
updated_at,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# PassportpbUserInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user** | [**UserBasic**](UserBasic.md) | | [optional] [default to undefined]
|
|
9
|
+
**settings** | [**PassportpbUserSettings**](PassportpbUserSettings.md) | | [optional] [default to undefined]
|
|
10
|
+
**preferences** | [**UserPreferences**](UserPreferences.md) | | [optional] [default to undefined]
|
|
11
|
+
**payment_info** | [**UserPaymentInfo**](UserPaymentInfo.md) | | [optional] [default to undefined]
|
|
12
|
+
**extend_info** | [**UserExtendInfo**](UserExtendInfo.md) | | [optional] [default to undefined]
|
|
13
|
+
**auth_methods** | [**Array<AuthUserMethod>**](AuthUserMethod.md) | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PassportpbUserInfo } from '@cherryin/aigw-api-client';
|
|
19
|
+
|
|
20
|
+
const instance: PassportpbUserInfo = {
|
|
21
|
+
user,
|
|
22
|
+
settings,
|
|
23
|
+
preferences,
|
|
24
|
+
payment_info,
|
|
25
|
+
extend_info,
|
|
26
|
+
auth_methods,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|