@cherryin/api-client 0.0.3 → 0.0.5

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/esm/api.js CHANGED
@@ -1398,6 +1398,42 @@ export const Auth2UserServiceApiAxiosParamCreator = function (configuration) {
1398
1398
  options: localVarRequestOptions,
1399
1399
  };
1400
1400
  }),
1401
+ /**
1402
+ *
1403
+ * @param {string} platform
1404
+ * @param {string} [code]
1405
+ * @param {string} [state]
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
1409
+ auth2UserServiceAuthOAuth2Callback: (platform_1, code_1, state_1, ...args_1) => __awaiter(this, [platform_1, code_1, state_1, ...args_1], void 0, function* (platform, code, state, options = {}) {
1410
+ // verify required parameter 'platform' is not null or undefined
1411
+ assertParamExists('auth2UserServiceAuthOAuth2Callback', 'platform', platform);
1412
+ const localVarPath = `/oauth2/{platform}/callback`
1413
+ .replace(`{${"platform"}}`, encodeURIComponent(String(platform)));
1414
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1415
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1416
+ let baseOptions;
1417
+ if (configuration) {
1418
+ baseOptions = configuration.baseOptions;
1419
+ }
1420
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1421
+ const localVarHeaderParameter = {};
1422
+ const localVarQueryParameter = {};
1423
+ if (code !== undefined) {
1424
+ localVarQueryParameter['code'] = code;
1425
+ }
1426
+ if (state !== undefined) {
1427
+ localVarQueryParameter['state'] = state;
1428
+ }
1429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1431
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1432
+ return {
1433
+ url: toPathString(localVarUrlObj),
1434
+ options: localVarRequestOptions,
1435
+ };
1436
+ }),
1401
1437
  /**
1402
1438
  * ============ Token 管理 ============
1403
1439
  * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
@@ -1950,6 +1986,23 @@ export const Auth2UserServiceApiFp = function (configuration) {
1950
1986
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1951
1987
  });
1952
1988
  },
1989
+ /**
1990
+ *
1991
+ * @param {string} platform
1992
+ * @param {string} [code]
1993
+ * @param {string} [state]
1994
+ * @param {*} [options] Override http request option.
1995
+ * @throws {RequiredError}
1996
+ */
1997
+ auth2UserServiceAuthOAuth2Callback(platform, code, state, options) {
1998
+ return __awaiter(this, void 0, void 0, function* () {
1999
+ var _a, _b, _c;
2000
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthOAuth2Callback(platform, code, state, options);
2001
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2002
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthOAuth2Callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2003
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2004
+ });
2005
+ },
1953
2006
  /**
1954
2007
  * ============ Token 管理 ============
1955
2008
  * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
@@ -2247,6 +2300,17 @@ export const Auth2UserServiceApiFactory = function (configuration, basePath, axi
2247
2300
  auth2UserServiceAuthListSessions(options) {
2248
2301
  return localVarFp.auth2UserServiceAuthListSessions(options).then((request) => request(axios, basePath));
2249
2302
  },
2303
+ /**
2304
+ *
2305
+ * @param {string} platform
2306
+ * @param {string} [code]
2307
+ * @param {string} [state]
2308
+ * @param {*} [options] Override http request option.
2309
+ * @throws {RequiredError}
2310
+ */
2311
+ auth2UserServiceAuthOAuth2Callback(platform, code, state, options) {
2312
+ return localVarFp.auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(axios, basePath));
2313
+ },
2250
2314
  /**
2251
2315
  * ============ Token 管理 ============
2252
2316
  * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
@@ -2458,6 +2522,17 @@ export class Auth2UserServiceApi extends BaseAPI {
2458
2522
  auth2UserServiceAuthListSessions(options) {
2459
2523
  return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthListSessions(options).then((request) => request(this.axios, this.basePath));
2460
2524
  }
2525
+ /**
2526
+ *
2527
+ * @param {string} platform
2528
+ * @param {string} [code]
2529
+ * @param {string} [state]
2530
+ * @param {*} [options] Override http request option.
2531
+ * @throws {RequiredError}
2532
+ */
2533
+ auth2UserServiceAuthOAuth2Callback(platform, code, state, options) {
2534
+ return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(this.axios, this.basePath));
2535
+ }
2461
2536
  /**
2462
2537
  * ============ Token 管理 ============
2463
2538
  * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
@@ -2987,7 +3062,7 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
2987
3062
  if (configuration) {
2988
3063
  baseOptions = configuration.baseOptions;
2989
3064
  }
2990
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3065
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2991
3066
  const localVarHeaderParameter = {};
2992
3067
  const localVarQueryParameter = {};
2993
3068
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -5226,6 +5301,405 @@ export class UserLabelServiceApi extends BaseAPI {
5226
5301
  return UserLabelServiceApiFp(this.configuration).userLabelServiceUserLabelPairChange(userLabelPairChangeRequest, options).then((request) => request(this.axios, this.basePath));
5227
5302
  }
5228
5303
  }
5304
+ /**
5305
+ * UserManageAdminServiceApi - axios parameter creator
5306
+ */
5307
+ export const UserManageAdminServiceApiAxiosParamCreator = function (configuration) {
5308
+ return {
5309
+ /**
5310
+ * 批量管理 Session
5311
+ * @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
5312
+ * @param {*} [options] Override http request option.
5313
+ * @throws {RequiredError}
5314
+ */
5315
+ userManageAdminServiceBatchUpdateSessions: (batchUpdateSessionsRequest_1, ...args_1) => __awaiter(this, [batchUpdateSessionsRequest_1, ...args_1], void 0, function* (batchUpdateSessionsRequest, options = {}) {
5316
+ // verify required parameter 'batchUpdateSessionsRequest' is not null or undefined
5317
+ assertParamExists('userManageAdminServiceBatchUpdateSessions', 'batchUpdateSessionsRequest', batchUpdateSessionsRequest);
5318
+ const localVarPath = `/admin/users/manage/sessions`;
5319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5320
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5321
+ let baseOptions;
5322
+ if (configuration) {
5323
+ baseOptions = configuration.baseOptions;
5324
+ }
5325
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5326
+ const localVarHeaderParameter = {};
5327
+ const localVarQueryParameter = {};
5328
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5329
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5331
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5332
+ localVarRequestOptions.data = serializeDataIfNeeded(batchUpdateSessionsRequest, localVarRequestOptions, configuration);
5333
+ return {
5334
+ url: toPathString(localVarUrlObj),
5335
+ options: localVarRequestOptions,
5336
+ };
5337
+ }),
5338
+ /**
5339
+ * 用户详情
5340
+ * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
5341
+ * @param {*} [options] Override http request option.
5342
+ * @throws {RequiredError}
5343
+ */
5344
+ userManageAdminServiceGetUserDetail: (uid_1, ...args_1) => __awaiter(this, [uid_1, ...args_1], void 0, function* (uid, options = {}) {
5345
+ const localVarPath = `/admin/users/detail`;
5346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5347
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5348
+ let baseOptions;
5349
+ if (configuration) {
5350
+ baseOptions = configuration.baseOptions;
5351
+ }
5352
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5353
+ const localVarHeaderParameter = {};
5354
+ const localVarQueryParameter = {};
5355
+ if (uid !== undefined) {
5356
+ localVarQueryParameter['uid'] = uid;
5357
+ }
5358
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5359
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5360
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5361
+ return {
5362
+ url: toPathString(localVarUrlObj),
5363
+ options: localVarRequestOptions,
5364
+ };
5365
+ }),
5366
+ /**
5367
+ * 用户列表(分页查询)
5368
+ * @param {ListUsersRequest} listUsersRequest
5369
+ * @param {*} [options] Override http request option.
5370
+ * @throws {RequiredError}
5371
+ */
5372
+ userManageAdminServiceListUsers: (listUsersRequest_1, ...args_1) => __awaiter(this, [listUsersRequest_1, ...args_1], void 0, function* (listUsersRequest, options = {}) {
5373
+ // verify required parameter 'listUsersRequest' is not null or undefined
5374
+ assertParamExists('userManageAdminServiceListUsers', 'listUsersRequest', listUsersRequest);
5375
+ const localVarPath = `/admin/users/list`;
5376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5377
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5378
+ let baseOptions;
5379
+ if (configuration) {
5380
+ baseOptions = configuration.baseOptions;
5381
+ }
5382
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5383
+ const localVarHeaderParameter = {};
5384
+ const localVarQueryParameter = {};
5385
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5386
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5387
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5388
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5389
+ localVarRequestOptions.data = serializeDataIfNeeded(listUsersRequest, localVarRequestOptions, configuration);
5390
+ return {
5391
+ url: toPathString(localVarUrlObj),
5392
+ options: localVarRequestOptions,
5393
+ };
5394
+ }),
5395
+ /**
5396
+ * 设置用户角色
5397
+ * @param {SetUserRoleRequest} setUserRoleRequest
5398
+ * @param {*} [options] Override http request option.
5399
+ * @throws {RequiredError}
5400
+ */
5401
+ userManageAdminServiceSetUserRole: (setUserRoleRequest_1, ...args_1) => __awaiter(this, [setUserRoleRequest_1, ...args_1], void 0, function* (setUserRoleRequest, options = {}) {
5402
+ // verify required parameter 'setUserRoleRequest' is not null or undefined
5403
+ assertParamExists('userManageAdminServiceSetUserRole', 'setUserRoleRequest', setUserRoleRequest);
5404
+ const localVarPath = `/admin/users/manage/role`;
5405
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5406
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5407
+ let baseOptions;
5408
+ if (configuration) {
5409
+ baseOptions = configuration.baseOptions;
5410
+ }
5411
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5412
+ const localVarHeaderParameter = {};
5413
+ const localVarQueryParameter = {};
5414
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5415
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5416
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5417
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5418
+ localVarRequestOptions.data = serializeDataIfNeeded(setUserRoleRequest, localVarRequestOptions, configuration);
5419
+ return {
5420
+ url: toPathString(localVarUrlObj),
5421
+ options: localVarRequestOptions,
5422
+ };
5423
+ }),
5424
+ /**
5425
+ * 设置用户状态(启用/禁用)
5426
+ * @param {SetUserStatusRequest} setUserStatusRequest
5427
+ * @param {*} [options] Override http request option.
5428
+ * @throws {RequiredError}
5429
+ */
5430
+ userManageAdminServiceSetUserStatus: (setUserStatusRequest_1, ...args_1) => __awaiter(this, [setUserStatusRequest_1, ...args_1], void 0, function* (setUserStatusRequest, options = {}) {
5431
+ // verify required parameter 'setUserStatusRequest' is not null or undefined
5432
+ assertParamExists('userManageAdminServiceSetUserStatus', 'setUserStatusRequest', setUserStatusRequest);
5433
+ const localVarPath = `/admin/users/manage/status`;
5434
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5435
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5436
+ let baseOptions;
5437
+ if (configuration) {
5438
+ baseOptions = configuration.baseOptions;
5439
+ }
5440
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5441
+ const localVarHeaderParameter = {};
5442
+ const localVarQueryParameter = {};
5443
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5446
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5447
+ localVarRequestOptions.data = serializeDataIfNeeded(setUserStatusRequest, localVarRequestOptions, configuration);
5448
+ return {
5449
+ url: toPathString(localVarUrlObj),
5450
+ options: localVarRequestOptions,
5451
+ };
5452
+ }),
5453
+ /**
5454
+ * 更新用户信息
5455
+ * @param {UpdateUserInfoRequest} updateUserInfoRequest
5456
+ * @param {*} [options] Override http request option.
5457
+ * @throws {RequiredError}
5458
+ */
5459
+ userManageAdminServiceUpdateUserInfo: (updateUserInfoRequest_1, ...args_1) => __awaiter(this, [updateUserInfoRequest_1, ...args_1], void 0, function* (updateUserInfoRequest, options = {}) {
5460
+ // verify required parameter 'updateUserInfoRequest' is not null or undefined
5461
+ assertParamExists('userManageAdminServiceUpdateUserInfo', 'updateUserInfoRequest', updateUserInfoRequest);
5462
+ const localVarPath = `/admin/users/manage/info`;
5463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5464
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5465
+ let baseOptions;
5466
+ if (configuration) {
5467
+ baseOptions = configuration.baseOptions;
5468
+ }
5469
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5470
+ const localVarHeaderParameter = {};
5471
+ const localVarQueryParameter = {};
5472
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5475
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5476
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserInfoRequest, localVarRequestOptions, configuration);
5477
+ return {
5478
+ url: toPathString(localVarUrlObj),
5479
+ options: localVarRequestOptions,
5480
+ };
5481
+ }),
5482
+ };
5483
+ };
5484
+ /**
5485
+ * UserManageAdminServiceApi - functional programming interface
5486
+ */
5487
+ export const UserManageAdminServiceApiFp = function (configuration) {
5488
+ const localVarAxiosParamCreator = UserManageAdminServiceApiAxiosParamCreator(configuration);
5489
+ return {
5490
+ /**
5491
+ * 批量管理 Session
5492
+ * @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
5493
+ * @param {*} [options] Override http request option.
5494
+ * @throws {RequiredError}
5495
+ */
5496
+ userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options) {
5497
+ return __awaiter(this, void 0, void 0, function* () {
5498
+ var _a, _b, _c;
5499
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options);
5500
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5501
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceBatchUpdateSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5502
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5503
+ });
5504
+ },
5505
+ /**
5506
+ * 用户详情
5507
+ * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
5508
+ * @param {*} [options] Override http request option.
5509
+ * @throws {RequiredError}
5510
+ */
5511
+ userManageAdminServiceGetUserDetail(uid, options) {
5512
+ return __awaiter(this, void 0, void 0, function* () {
5513
+ var _a, _b, _c;
5514
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceGetUserDetail(uid, options);
5515
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5516
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceGetUserDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5517
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5518
+ });
5519
+ },
5520
+ /**
5521
+ * 用户列表(分页查询)
5522
+ * @param {ListUsersRequest} listUsersRequest
5523
+ * @param {*} [options] Override http request option.
5524
+ * @throws {RequiredError}
5525
+ */
5526
+ userManageAdminServiceListUsers(listUsersRequest, options) {
5527
+ return __awaiter(this, void 0, void 0, function* () {
5528
+ var _a, _b, _c;
5529
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceListUsers(listUsersRequest, options);
5530
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5531
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceListUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5532
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5533
+ });
5534
+ },
5535
+ /**
5536
+ * 设置用户角色
5537
+ * @param {SetUserRoleRequest} setUserRoleRequest
5538
+ * @param {*} [options] Override http request option.
5539
+ * @throws {RequiredError}
5540
+ */
5541
+ userManageAdminServiceSetUserRole(setUserRoleRequest, options) {
5542
+ return __awaiter(this, void 0, void 0, function* () {
5543
+ var _a, _b, _c;
5544
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceSetUserRole(setUserRoleRequest, options);
5545
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5546
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5547
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5548
+ });
5549
+ },
5550
+ /**
5551
+ * 设置用户状态(启用/禁用)
5552
+ * @param {SetUserStatusRequest} setUserStatusRequest
5553
+ * @param {*} [options] Override http request option.
5554
+ * @throws {RequiredError}
5555
+ */
5556
+ userManageAdminServiceSetUserStatus(setUserStatusRequest, options) {
5557
+ return __awaiter(this, void 0, void 0, function* () {
5558
+ var _a, _b, _c;
5559
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceSetUserStatus(setUserStatusRequest, options);
5560
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5561
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5563
+ });
5564
+ },
5565
+ /**
5566
+ * 更新用户信息
5567
+ * @param {UpdateUserInfoRequest} updateUserInfoRequest
5568
+ * @param {*} [options] Override http request option.
5569
+ * @throws {RequiredError}
5570
+ */
5571
+ userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options) {
5572
+ return __awaiter(this, void 0, void 0, function* () {
5573
+ var _a, _b, _c;
5574
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options);
5575
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5576
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceUpdateUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5577
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5578
+ });
5579
+ },
5580
+ };
5581
+ };
5582
+ /**
5583
+ * UserManageAdminServiceApi - factory interface
5584
+ */
5585
+ export const UserManageAdminServiceApiFactory = function (configuration, basePath, axios) {
5586
+ const localVarFp = UserManageAdminServiceApiFp(configuration);
5587
+ return {
5588
+ /**
5589
+ * 批量管理 Session
5590
+ * @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
5591
+ * @param {*} [options] Override http request option.
5592
+ * @throws {RequiredError}
5593
+ */
5594
+ userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options) {
5595
+ return localVarFp.userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options).then((request) => request(axios, basePath));
5596
+ },
5597
+ /**
5598
+ * 用户详情
5599
+ * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
5600
+ * @param {*} [options] Override http request option.
5601
+ * @throws {RequiredError}
5602
+ */
5603
+ userManageAdminServiceGetUserDetail(uid, options) {
5604
+ return localVarFp.userManageAdminServiceGetUserDetail(uid, options).then((request) => request(axios, basePath));
5605
+ },
5606
+ /**
5607
+ * 用户列表(分页查询)
5608
+ * @param {ListUsersRequest} listUsersRequest
5609
+ * @param {*} [options] Override http request option.
5610
+ * @throws {RequiredError}
5611
+ */
5612
+ userManageAdminServiceListUsers(listUsersRequest, options) {
5613
+ return localVarFp.userManageAdminServiceListUsers(listUsersRequest, options).then((request) => request(axios, basePath));
5614
+ },
5615
+ /**
5616
+ * 设置用户角色
5617
+ * @param {SetUserRoleRequest} setUserRoleRequest
5618
+ * @param {*} [options] Override http request option.
5619
+ * @throws {RequiredError}
5620
+ */
5621
+ userManageAdminServiceSetUserRole(setUserRoleRequest, options) {
5622
+ return localVarFp.userManageAdminServiceSetUserRole(setUserRoleRequest, options).then((request) => request(axios, basePath));
5623
+ },
5624
+ /**
5625
+ * 设置用户状态(启用/禁用)
5626
+ * @param {SetUserStatusRequest} setUserStatusRequest
5627
+ * @param {*} [options] Override http request option.
5628
+ * @throws {RequiredError}
5629
+ */
5630
+ userManageAdminServiceSetUserStatus(setUserStatusRequest, options) {
5631
+ return localVarFp.userManageAdminServiceSetUserStatus(setUserStatusRequest, options).then((request) => request(axios, basePath));
5632
+ },
5633
+ /**
5634
+ * 更新用户信息
5635
+ * @param {UpdateUserInfoRequest} updateUserInfoRequest
5636
+ * @param {*} [options] Override http request option.
5637
+ * @throws {RequiredError}
5638
+ */
5639
+ userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options) {
5640
+ return localVarFp.userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options).then((request) => request(axios, basePath));
5641
+ },
5642
+ };
5643
+ };
5644
+ /**
5645
+ * UserManageAdminServiceApi - object-oriented interface
5646
+ */
5647
+ export class UserManageAdminServiceApi extends BaseAPI {
5648
+ /**
5649
+ * 批量管理 Session
5650
+ * @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
5651
+ * @param {*} [options] Override http request option.
5652
+ * @throws {RequiredError}
5653
+ */
5654
+ userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options) {
5655
+ return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options).then((request) => request(this.axios, this.basePath));
5656
+ }
5657
+ /**
5658
+ * 用户详情
5659
+ * @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
5660
+ * @param {*} [options] Override http request option.
5661
+ * @throws {RequiredError}
5662
+ */
5663
+ userManageAdminServiceGetUserDetail(uid, options) {
5664
+ return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceGetUserDetail(uid, options).then((request) => request(this.axios, this.basePath));
5665
+ }
5666
+ /**
5667
+ * 用户列表(分页查询)
5668
+ * @param {ListUsersRequest} listUsersRequest
5669
+ * @param {*} [options] Override http request option.
5670
+ * @throws {RequiredError}
5671
+ */
5672
+ userManageAdminServiceListUsers(listUsersRequest, options) {
5673
+ return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceListUsers(listUsersRequest, options).then((request) => request(this.axios, this.basePath));
5674
+ }
5675
+ /**
5676
+ * 设置用户角色
5677
+ * @param {SetUserRoleRequest} setUserRoleRequest
5678
+ * @param {*} [options] Override http request option.
5679
+ * @throws {RequiredError}
5680
+ */
5681
+ userManageAdminServiceSetUserRole(setUserRoleRequest, options) {
5682
+ return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceSetUserRole(setUserRoleRequest, options).then((request) => request(this.axios, this.basePath));
5683
+ }
5684
+ /**
5685
+ * 设置用户状态(启用/禁用)
5686
+ * @param {SetUserStatusRequest} setUserStatusRequest
5687
+ * @param {*} [options] Override http request option.
5688
+ * @throws {RequiredError}
5689
+ */
5690
+ userManageAdminServiceSetUserStatus(setUserStatusRequest, options) {
5691
+ return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceSetUserStatus(setUserStatusRequest, options).then((request) => request(this.axios, this.basePath));
5692
+ }
5693
+ /**
5694
+ * 更新用户信息
5695
+ * @param {UpdateUserInfoRequest} updateUserInfoRequest
5696
+ * @param {*} [options] Override http request option.
5697
+ * @throws {RequiredError}
5698
+ */
5699
+ userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options) {
5700
+ return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
5701
+ }
5702
+ }
5229
5703
  /**
5230
5704
  * UserModelServiceApi - axios parameter creator
5231
5705
  */
@@ -13,6 +13,7 @@ All URIs are relative to *http://localhost*
13
13
  |[**auth2UserServiceAuthLinkSocial**](#auth2userserviceauthlinksocial) | **POST** /authed/v1/link-social | |
14
14
  |[**auth2UserServiceAuthListAccounts**](#auth2userserviceauthlistaccounts) | **GET** /authed/v1/list-accounts | |
15
15
  |[**auth2UserServiceAuthListSessions**](#auth2userserviceauthlistsessions) | **GET** /authed/v1/list-sessions | |
16
+ |[**auth2UserServiceAuthOAuth2Callback**](#auth2userserviceauthoauth2callback) | **GET** /oauth2/{platform}/callback | |
16
17
  |[**auth2UserServiceAuthRefreshToken**](#auth2userserviceauthrefreshtoken) | **POST** /authed/v1/refresh-token | |
17
18
  |[**auth2UserServiceAuthRequestPasswordReset**](#auth2userserviceauthrequestpasswordreset) | **POST** /authed/v1/request-password-reset | |
18
19
  |[**auth2UserServiceAuthResetPassword**](#auth2userserviceauthresetpassword) | **POST** /authed/v1/reset-password | |
@@ -459,6 +460,63 @@ No authorization required
459
460
  - **Accept**: application/json
460
461
 
461
462
 
463
+ ### HTTP response details
464
+ | Status code | Description | Response headers |
465
+ |-------------|-------------|------------------|
466
+ |**200** | OK | - |
467
+ |**0** | Default error response | - |
468
+
469
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
470
+
471
+ # **auth2UserServiceAuthOAuth2Callback**
472
+ > AuthOAuth2CallbackResponse auth2UserServiceAuthOAuth2Callback()
473
+
474
+
475
+ ### Example
476
+
477
+ ```typescript
478
+ import {
479
+ Auth2UserServiceApi,
480
+ Configuration
481
+ } from '@cherryin/api-client';
482
+
483
+ const configuration = new Configuration();
484
+ const apiInstance = new Auth2UserServiceApi(configuration);
485
+
486
+ let platform: string; // (default to undefined)
487
+ let code: string; // (optional) (default to undefined)
488
+ let state: string; // (optional) (default to undefined)
489
+
490
+ const { status, data } = await apiInstance.auth2UserServiceAuthOAuth2Callback(
491
+ platform,
492
+ code,
493
+ state
494
+ );
495
+ ```
496
+
497
+ ### Parameters
498
+
499
+ |Name | Type | Description | Notes|
500
+ |------------- | ------------- | ------------- | -------------|
501
+ | **platform** | [**string**] | | defaults to undefined|
502
+ | **code** | [**string**] | | (optional) defaults to undefined|
503
+ | **state** | [**string**] | | (optional) defaults to undefined|
504
+
505
+
506
+ ### Return type
507
+
508
+ **AuthOAuth2CallbackResponse**
509
+
510
+ ### Authorization
511
+
512
+ No authorization required
513
+
514
+ ### HTTP request headers
515
+
516
+ - **Content-Type**: Not defined
517
+ - **Accept**: application/json
518
+
519
+
462
520
  ### HTTP response details
463
521
  | Status code | Description | Response headers |
464
522
  |-------------|-------------|------------------|
@@ -0,0 +1,32 @@
1
+ # AuthOAuth2CallbackResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+ **token** | **string** | | [optional] [default to undefined]
11
+ **url** | **string** | | [optional] [default to undefined]
12
+ **redirect** | **boolean** | | [optional] [default to undefined]
13
+ **user** | [**Auth2User**](Auth2User.md) | | [optional] [default to undefined]
14
+ **is_linked** | **boolean** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { AuthOAuth2CallbackResponse } from '@cherryin/api-client';
20
+
21
+ const instance: AuthOAuth2CallbackResponse = {
22
+ code,
23
+ message,
24
+ token,
25
+ url,
26
+ redirect,
27
+ user,
28
+ is_linked,
29
+ };
30
+ ```
31
+
32
+ [[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,24 @@
1
+ # BatchUpdateSessionsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uid** | **string** | | [optional] [default to undefined]
9
+ **session_ids** | **Array<string>** | | [optional] [default to undefined]
10
+ **action** | **number** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BatchUpdateSessionsRequest } from '@cherryin/api-client';
16
+
17
+ const instance: BatchUpdateSessionsRequest = {
18
+ uid,
19
+ session_ids,
20
+ action,
21
+ };
22
+ ```
23
+
24
+ [[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,24 @@
1
+ # BatchUpdateSessionsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+ **affected_count** | **number** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BatchUpdateSessionsResponse } from '@cherryin/api-client';
16
+
17
+ const instance: BatchUpdateSessionsResponse = {
18
+ code,
19
+ message,
20
+ affected_count,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)