@cherryin/passport-api-client 0.1.27 → 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.
@@ -187,6 +187,8 @@ docs/PassportUserInfoBatchGetRequest.md
187
187
  docs/PassportUserInfoBatchGetResponse.md
188
188
  docs/PassportUserInfoGetRequest.md
189
189
  docs/PassportUserInfoGetResponse.md
190
+ docs/PassportUserInfoPageGetRequest.md
191
+ docs/PassportUserInfoPageGetResponse.md
190
192
  docs/PassportUserOAuthCallbackResponse.md
191
193
  docs/PassportUserPasswordForgetRequest.md
192
194
  docs/PassportUserPasswordForgetResponse.md
@@ -213,6 +215,7 @@ docs/UserInfo.md
213
215
  docs/UserInfoQueryOptions.md
214
216
  docs/UserPaymentInfo.md
215
217
  docs/UserPreferences.md
218
+ docs/UserSearchOptions.md
216
219
  docs/UserSettings.md
217
220
  git_push.sh
218
221
  index.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @cherryin/passport-api-client@0.1.27
1
+ ## @cherryin/passport-api-client@0.1.28
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cherryin/passport-api-client@0.1.27 --save
39
+ npm install @cherryin/passport-api-client@0.1.28 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -107,6 +107,7 @@ Class | Method | HTTP request | Description
107
107
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportEnterpriseSignUpEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportenterprisesignupemail) | **POST** /passport/enterprise/auth/v1/sign-up/email | 邮箱注册
108
108
  *PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserInfoBatchGet**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserinfobatchget) | **POST** /passport/authed/v1/users/batch_get | 批量获取用户信息
109
109
  *PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserInfoGet**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserinfoget) | **POST** /passport/authed/v1/user/get | 获取用户信息
110
+ *PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserInfoPageGet**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserinfopageget) | **POST** /passport/authed/v1/users/page_get | 批量获取用户信息
110
111
  *PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserTokenAuth**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportusertokenauth) | **POST** /passport/authed/v1/passports | Token 鉴权 - User
111
112
  *PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserUpdateInfo**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserupdateinfo) | **POST** /passport/authed/v1/user/update | 更新用户信息
112
113
  *PassportAuthUserServiceApi* | [**passportAuthUserServicePassportAuthChangePassword**](docs/PassportAuthUserServiceApi.md#passportauthuserservicepassportauthchangepassword) | **POST** /passport/authed/v1/password/change | 已登录用户修改密码
@@ -325,6 +326,8 @@ Class | Method | HTTP request | Description
325
326
  - [PassportUserInfoBatchGetResponse](docs/PassportUserInfoBatchGetResponse.md)
326
327
  - [PassportUserInfoGetRequest](docs/PassportUserInfoGetRequest.md)
327
328
  - [PassportUserInfoGetResponse](docs/PassportUserInfoGetResponse.md)
329
+ - [PassportUserInfoPageGetRequest](docs/PassportUserInfoPageGetRequest.md)
330
+ - [PassportUserInfoPageGetResponse](docs/PassportUserInfoPageGetResponse.md)
328
331
  - [PassportUserOAuthCallbackResponse](docs/PassportUserOAuthCallbackResponse.md)
329
332
  - [PassportUserPasswordForgetRequest](docs/PassportUserPasswordForgetRequest.md)
330
333
  - [PassportUserPasswordForgetResponse](docs/PassportUserPasswordForgetResponse.md)
@@ -351,6 +354,7 @@ Class | Method | HTTP request | Description
351
354
  - [UserInfoQueryOptions](docs/UserInfoQueryOptions.md)
352
355
  - [UserPaymentInfo](docs/UserPaymentInfo.md)
353
356
  - [UserPreferences](docs/UserPreferences.md)
357
+ - [UserSearchOptions](docs/UserSearchOptions.md)
354
358
  - [UserSettings](docs/UserSettings.md)
355
359
 
356
360
 
package/api.ts CHANGED
@@ -1018,6 +1018,19 @@ export interface PassportUserInfoGetResponse {
1018
1018
  'message'?: string;
1019
1019
  'user_info'?: UserInfo;
1020
1020
  }
1021
+ export interface PassportUserInfoPageGetRequest {
1022
+ 'page'?: number;
1023
+ 'page_size'?: number;
1024
+ 'app_ids'?: Array<string>;
1025
+ 'query_options'?: UserInfoQueryOptions;
1026
+ 'search_options'?: UserSearchOptions;
1027
+ }
1028
+ export interface PassportUserInfoPageGetResponse {
1029
+ 'code'?: string;
1030
+ 'message'?: string;
1031
+ 'user_info_list'?: Array<UserInfo>;
1032
+ 'total'?: string;
1033
+ }
1021
1034
  export interface PassportUserOAuthCallbackResponse {
1022
1035
  'code'?: string;
1023
1036
  'message'?: string;
@@ -1216,6 +1229,12 @@ export interface UserPreferences {
1216
1229
  'language'?: string;
1217
1230
  'timezone'?: string;
1218
1231
  }
1232
+ export interface UserSearchOptions {
1233
+ 'user_ids'?: Array<string>;
1234
+ 'email'?: string;
1235
+ 'phone'?: string;
1236
+ 'display_name'?: string;
1237
+ }
1219
1238
  export interface UserSettings {
1220
1239
  'email_notifications_enabled'?: boolean;
1221
1240
  }
@@ -5666,6 +5685,42 @@ export const PassportAuthUserRPCServiceApiAxiosParamCreator = function (configur
5666
5685
 
5667
5686
 
5668
5687
 
5688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5689
+
5690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5692
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5693
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
5694
+
5695
+ return {
5696
+ url: toPathString(localVarUrlObj),
5697
+ options: localVarRequestOptions,
5698
+ };
5699
+ },
5700
+ /**
5701
+ *
5702
+ * @summary 批量获取用户信息
5703
+ * @param {PassportUserInfoPageGetRequest} body
5704
+ * @param {*} [options] Override http request option.
5705
+ * @throws {RequiredError}
5706
+ */
5707
+ passportAuthUserRPCServicePassportUserInfoPageGet: async (body: PassportUserInfoPageGetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5708
+ // verify required parameter 'body' is not null or undefined
5709
+ assertParamExists('passportAuthUserRPCServicePassportUserInfoPageGet', 'body', body)
5710
+ const localVarPath = `/passport/authed/v1/users/page_get`;
5711
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5712
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5713
+ let baseOptions;
5714
+ if (configuration) {
5715
+ baseOptions = configuration.baseOptions;
5716
+ }
5717
+
5718
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5719
+ const localVarHeaderParameter = {} as any;
5720
+ const localVarQueryParameter = {} as any;
5721
+
5722
+
5723
+
5669
5724
  localVarHeaderParameter['Content-Type'] = 'application/json';
5670
5725
 
5671
5726
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5785,6 +5840,19 @@ export const PassportAuthUserRPCServiceApiFp = function(configuration?: Configur
5785
5840
  const localVarOperationServerBasePath = operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoGet']?.[localVarOperationServerIndex]?.url;
5786
5841
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5787
5842
  },
5843
+ /**
5844
+ *
5845
+ * @summary 批量获取用户信息
5846
+ * @param {PassportUserInfoPageGetRequest} body
5847
+ * @param {*} [options] Override http request option.
5848
+ * @throws {RequiredError}
5849
+ */
5850
+ async passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoPageGetResponse>> {
5851
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthUserRPCServicePassportUserInfoPageGet(body, options);
5852
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5853
+ const localVarOperationServerBasePath = operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoPageGet']?.[localVarOperationServerIndex]?.url;
5854
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5855
+ },
5788
5856
  /**
5789
5857
  *
5790
5858
  * @summary Token 鉴权 - User
@@ -5840,6 +5908,16 @@ export const PassportAuthUserRPCServiceApiFactory = function (configuration?: Co
5840
5908
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse> {
5841
5909
  return localVarFp.passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(axios, basePath));
5842
5910
  },
5911
+ /**
5912
+ *
5913
+ * @summary 批量获取用户信息
5914
+ * @param {PassportUserInfoPageGetRequest} body
5915
+ * @param {*} [options] Override http request option.
5916
+ * @throws {RequiredError}
5917
+ */
5918
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse> {
5919
+ return localVarFp.passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(axios, basePath));
5920
+ },
5843
5921
  /**
5844
5922
  *
5845
5923
  * @summary Token 鉴权 - User
@@ -5885,6 +5963,15 @@ export interface PassportAuthUserRPCServiceApiInterface {
5885
5963
  */
5886
5964
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
5887
5965
 
5966
+ /**
5967
+ *
5968
+ * @summary 批量获取用户信息
5969
+ * @param {PassportUserInfoPageGetRequest} body
5970
+ * @param {*} [options] Override http request option.
5971
+ * @throws {RequiredError}
5972
+ */
5973
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
5974
+
5888
5975
  /**
5889
5976
  *
5890
5977
  * @summary Token 鉴权 - User
@@ -5931,6 +6018,17 @@ export class PassportAuthUserRPCServiceApi extends BaseAPI implements PassportAu
5931
6018
  return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(this.axios, this.basePath));
5932
6019
  }
5933
6020
 
6021
+ /**
6022
+ *
6023
+ * @summary 批量获取用户信息
6024
+ * @param {PassportUserInfoPageGetRequest} body
6025
+ * @param {*} [options] Override http request option.
6026
+ * @throws {RequiredError}
6027
+ */
6028
+ public passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig) {
6029
+ return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
6030
+ }
6031
+
5934
6032
  /**
5935
6033
  *
5936
6034
  * @summary Token 鉴权 - User
package/dist/api.d.ts CHANGED
@@ -1011,6 +1011,19 @@ export interface PassportUserInfoGetResponse {
1011
1011
  'message'?: string;
1012
1012
  'user_info'?: UserInfo;
1013
1013
  }
1014
+ export interface PassportUserInfoPageGetRequest {
1015
+ 'page'?: number;
1016
+ 'page_size'?: number;
1017
+ 'app_ids'?: Array<string>;
1018
+ 'query_options'?: UserInfoQueryOptions;
1019
+ 'search_options'?: UserSearchOptions;
1020
+ }
1021
+ export interface PassportUserInfoPageGetResponse {
1022
+ 'code'?: string;
1023
+ 'message'?: string;
1024
+ 'user_info_list'?: Array<UserInfo>;
1025
+ 'total'?: string;
1026
+ }
1014
1027
  export interface PassportUserOAuthCallbackResponse {
1015
1028
  'code'?: string;
1016
1029
  'message'?: string;
@@ -1209,6 +1222,12 @@ export interface UserPreferences {
1209
1222
  'language'?: string;
1210
1223
  'timezone'?: string;
1211
1224
  }
1225
+ export interface UserSearchOptions {
1226
+ 'user_ids'?: Array<string>;
1227
+ 'email'?: string;
1228
+ 'phone'?: string;
1229
+ 'display_name'?: string;
1230
+ }
1212
1231
  export interface UserSettings {
1213
1232
  'email_notifications_enabled'?: boolean;
1214
1233
  }
@@ -3462,6 +3481,14 @@ export declare const PassportAuthUserRPCServiceApiAxiosParamCreator: (configurat
3462
3481
  * @throws {RequiredError}
3463
3482
  */
3464
3483
  passportAuthUserRPCServicePassportUserInfoGet: (body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3484
+ /**
3485
+ *
3486
+ * @summary 批量获取用户信息
3487
+ * @param {PassportUserInfoPageGetRequest} body
3488
+ * @param {*} [options] Override http request option.
3489
+ * @throws {RequiredError}
3490
+ */
3491
+ passportAuthUserRPCServicePassportUserInfoPageGet: (body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3465
3492
  /**
3466
3493
  *
3467
3494
  * @summary Token 鉴权 - User
@@ -3499,6 +3526,14 @@ export declare const PassportAuthUserRPCServiceApiFp: (configuration?: Configura
3499
3526
  * @throws {RequiredError}
3500
3527
  */
3501
3528
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoGetResponse>>;
3529
+ /**
3530
+ *
3531
+ * @summary 批量获取用户信息
3532
+ * @param {PassportUserInfoPageGetRequest} body
3533
+ * @param {*} [options] Override http request option.
3534
+ * @throws {RequiredError}
3535
+ */
3536
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoPageGetResponse>>;
3502
3537
  /**
3503
3538
  *
3504
3539
  * @summary Token 鉴权 - User
@@ -3536,6 +3571,14 @@ export declare const PassportAuthUserRPCServiceApiFactory: (configuration?: Conf
3536
3571
  * @throws {RequiredError}
3537
3572
  */
3538
3573
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
3574
+ /**
3575
+ *
3576
+ * @summary 批量获取用户信息
3577
+ * @param {PassportUserInfoPageGetRequest} body
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ */
3581
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
3539
3582
  /**
3540
3583
  *
3541
3584
  * @summary Token 鉴权 - User
@@ -3573,6 +3616,14 @@ export interface PassportAuthUserRPCServiceApiInterface {
3573
3616
  * @throws {RequiredError}
3574
3617
  */
3575
3618
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
3619
+ /**
3620
+ *
3621
+ * @summary 批量获取用户信息
3622
+ * @param {PassportUserInfoPageGetRequest} body
3623
+ * @param {*} [options] Override http request option.
3624
+ * @throws {RequiredError}
3625
+ */
3626
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
3576
3627
  /**
3577
3628
  *
3578
3629
  * @summary Token 鉴权 - User
@@ -3610,6 +3661,14 @@ export declare class PassportAuthUserRPCServiceApi extends BaseAPI implements Pa
3610
3661
  * @throws {RequiredError}
3611
3662
  */
3612
3663
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoGetResponse, any, {}>>;
3664
+ /**
3665
+ *
3666
+ * @summary 批量获取用户信息
3667
+ * @param {PassportUserInfoPageGetRequest} body
3668
+ * @param {*} [options] Override http request option.
3669
+ * @throws {RequiredError}
3670
+ */
3671
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoPageGetResponse, any, {}>>;
3613
3672
  /**
3614
3673
  *
3615
3674
  * @summary Token 鉴权 - User
package/dist/api.js CHANGED
@@ -3752,6 +3752,36 @@ const PassportAuthUserRPCServiceApiAxiosParamCreator = function (configuration)
3752
3752
  options: localVarRequestOptions,
3753
3753
  };
3754
3754
  }),
3755
+ /**
3756
+ *
3757
+ * @summary 批量获取用户信息
3758
+ * @param {PassportUserInfoPageGetRequest} body
3759
+ * @param {*} [options] Override http request option.
3760
+ * @throws {RequiredError}
3761
+ */
3762
+ passportAuthUserRPCServicePassportUserInfoPageGet: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
3763
+ // verify required parameter 'body' is not null or undefined
3764
+ (0, common_1.assertParamExists)('passportAuthUserRPCServicePassportUserInfoPageGet', 'body', body);
3765
+ const localVarPath = `/passport/authed/v1/users/page_get`;
3766
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3767
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3768
+ let baseOptions;
3769
+ if (configuration) {
3770
+ baseOptions = configuration.baseOptions;
3771
+ }
3772
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3773
+ const localVarHeaderParameter = {};
3774
+ const localVarQueryParameter = {};
3775
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3776
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3778
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3779
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
3780
+ return {
3781
+ url: (0, common_1.toPathString)(localVarUrlObj),
3782
+ options: localVarRequestOptions,
3783
+ };
3784
+ }),
3755
3785
  /**
3756
3786
  *
3757
3787
  * @summary Token 鉴权 - User
@@ -3853,6 +3883,22 @@ const PassportAuthUserRPCServiceApiFp = function (configuration) {
3853
3883
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3854
3884
  });
3855
3885
  },
3886
+ /**
3887
+ *
3888
+ * @summary 批量获取用户信息
3889
+ * @param {PassportUserInfoPageGetRequest} body
3890
+ * @param {*} [options] Override http request option.
3891
+ * @throws {RequiredError}
3892
+ */
3893
+ passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
3894
+ return __awaiter(this, void 0, void 0, function* () {
3895
+ var _a, _b, _c;
3896
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthUserRPCServicePassportUserInfoPageGet(body, options);
3897
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3898
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoPageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3899
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3900
+ });
3901
+ },
3856
3902
  /**
3857
3903
  *
3858
3904
  * @summary Token 鉴权 - User
@@ -3914,6 +3960,16 @@ const PassportAuthUserRPCServiceApiFactory = function (configuration, basePath,
3914
3960
  passportAuthUserRPCServicePassportUserInfoGet(body, options) {
3915
3961
  return localVarFp.passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(axios, basePath));
3916
3962
  },
3963
+ /**
3964
+ *
3965
+ * @summary 批量获取用户信息
3966
+ * @param {PassportUserInfoPageGetRequest} body
3967
+ * @param {*} [options] Override http request option.
3968
+ * @throws {RequiredError}
3969
+ */
3970
+ passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
3971
+ return localVarFp.passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(axios, basePath));
3972
+ },
3917
3973
  /**
3918
3974
  *
3919
3975
  * @summary Token 鉴权 - User
@@ -3961,6 +4017,16 @@ class PassportAuthUserRPCServiceApi extends base_1.BaseAPI {
3961
4017
  passportAuthUserRPCServicePassportUserInfoGet(body, options) {
3962
4018
  return (0, exports.PassportAuthUserRPCServiceApiFp)(this.configuration).passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(this.axios, this.basePath));
3963
4019
  }
4020
+ /**
4021
+ *
4022
+ * @summary 批量获取用户信息
4023
+ * @param {PassportUserInfoPageGetRequest} body
4024
+ * @param {*} [options] Override http request option.
4025
+ * @throws {RequiredError}
4026
+ */
4027
+ passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
4028
+ return (0, exports.PassportAuthUserRPCServiceApiFp)(this.configuration).passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
4029
+ }
3964
4030
  /**
3965
4031
  *
3966
4032
  * @summary Token 鉴权 - User
package/dist/esm/api.d.ts CHANGED
@@ -1011,6 +1011,19 @@ export interface PassportUserInfoGetResponse {
1011
1011
  'message'?: string;
1012
1012
  'user_info'?: UserInfo;
1013
1013
  }
1014
+ export interface PassportUserInfoPageGetRequest {
1015
+ 'page'?: number;
1016
+ 'page_size'?: number;
1017
+ 'app_ids'?: Array<string>;
1018
+ 'query_options'?: UserInfoQueryOptions;
1019
+ 'search_options'?: UserSearchOptions;
1020
+ }
1021
+ export interface PassportUserInfoPageGetResponse {
1022
+ 'code'?: string;
1023
+ 'message'?: string;
1024
+ 'user_info_list'?: Array<UserInfo>;
1025
+ 'total'?: string;
1026
+ }
1014
1027
  export interface PassportUserOAuthCallbackResponse {
1015
1028
  'code'?: string;
1016
1029
  'message'?: string;
@@ -1209,6 +1222,12 @@ export interface UserPreferences {
1209
1222
  'language'?: string;
1210
1223
  'timezone'?: string;
1211
1224
  }
1225
+ export interface UserSearchOptions {
1226
+ 'user_ids'?: Array<string>;
1227
+ 'email'?: string;
1228
+ 'phone'?: string;
1229
+ 'display_name'?: string;
1230
+ }
1212
1231
  export interface UserSettings {
1213
1232
  'email_notifications_enabled'?: boolean;
1214
1233
  }
@@ -3462,6 +3481,14 @@ export declare const PassportAuthUserRPCServiceApiAxiosParamCreator: (configurat
3462
3481
  * @throws {RequiredError}
3463
3482
  */
3464
3483
  passportAuthUserRPCServicePassportUserInfoGet: (body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3484
+ /**
3485
+ *
3486
+ * @summary 批量获取用户信息
3487
+ * @param {PassportUserInfoPageGetRequest} body
3488
+ * @param {*} [options] Override http request option.
3489
+ * @throws {RequiredError}
3490
+ */
3491
+ passportAuthUserRPCServicePassportUserInfoPageGet: (body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3465
3492
  /**
3466
3493
  *
3467
3494
  * @summary Token 鉴权 - User
@@ -3499,6 +3526,14 @@ export declare const PassportAuthUserRPCServiceApiFp: (configuration?: Configura
3499
3526
  * @throws {RequiredError}
3500
3527
  */
3501
3528
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoGetResponse>>;
3529
+ /**
3530
+ *
3531
+ * @summary 批量获取用户信息
3532
+ * @param {PassportUserInfoPageGetRequest} body
3533
+ * @param {*} [options] Override http request option.
3534
+ * @throws {RequiredError}
3535
+ */
3536
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoPageGetResponse>>;
3502
3537
  /**
3503
3538
  *
3504
3539
  * @summary Token 鉴权 - User
@@ -3536,6 +3571,14 @@ export declare const PassportAuthUserRPCServiceApiFactory: (configuration?: Conf
3536
3571
  * @throws {RequiredError}
3537
3572
  */
3538
3573
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
3574
+ /**
3575
+ *
3576
+ * @summary 批量获取用户信息
3577
+ * @param {PassportUserInfoPageGetRequest} body
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ */
3581
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
3539
3582
  /**
3540
3583
  *
3541
3584
  * @summary Token 鉴权 - User
@@ -3573,6 +3616,14 @@ export interface PassportAuthUserRPCServiceApiInterface {
3573
3616
  * @throws {RequiredError}
3574
3617
  */
3575
3618
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
3619
+ /**
3620
+ *
3621
+ * @summary 批量获取用户信息
3622
+ * @param {PassportUserInfoPageGetRequest} body
3623
+ * @param {*} [options] Override http request option.
3624
+ * @throws {RequiredError}
3625
+ */
3626
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
3576
3627
  /**
3577
3628
  *
3578
3629
  * @summary Token 鉴权 - User
@@ -3610,6 +3661,14 @@ export declare class PassportAuthUserRPCServiceApi extends BaseAPI implements Pa
3610
3661
  * @throws {RequiredError}
3611
3662
  */
3612
3663
  passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoGetResponse, any, {}>>;
3664
+ /**
3665
+ *
3666
+ * @summary 批量获取用户信息
3667
+ * @param {PassportUserInfoPageGetRequest} body
3668
+ * @param {*} [options] Override http request option.
3669
+ * @throws {RequiredError}
3670
+ */
3671
+ passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoPageGetResponse, any, {}>>;
3613
3672
  /**
3614
3673
  *
3615
3674
  * @summary Token 鉴权 - User
package/dist/esm/api.js CHANGED
@@ -3733,6 +3733,36 @@ export const PassportAuthUserRPCServiceApiAxiosParamCreator = function (configur
3733
3733
  options: localVarRequestOptions,
3734
3734
  };
3735
3735
  }),
3736
+ /**
3737
+ *
3738
+ * @summary 批量获取用户信息
3739
+ * @param {PassportUserInfoPageGetRequest} body
3740
+ * @param {*} [options] Override http request option.
3741
+ * @throws {RequiredError}
3742
+ */
3743
+ passportAuthUserRPCServicePassportUserInfoPageGet: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
3744
+ // verify required parameter 'body' is not null or undefined
3745
+ assertParamExists('passportAuthUserRPCServicePassportUserInfoPageGet', 'body', body);
3746
+ const localVarPath = `/passport/authed/v1/users/page_get`;
3747
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3748
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3749
+ let baseOptions;
3750
+ if (configuration) {
3751
+ baseOptions = configuration.baseOptions;
3752
+ }
3753
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3754
+ const localVarHeaderParameter = {};
3755
+ const localVarQueryParameter = {};
3756
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3757
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3759
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3760
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
3761
+ return {
3762
+ url: toPathString(localVarUrlObj),
3763
+ options: localVarRequestOptions,
3764
+ };
3765
+ }),
3736
3766
  /**
3737
3767
  *
3738
3768
  * @summary Token 鉴权 - User
@@ -3833,6 +3863,22 @@ export const PassportAuthUserRPCServiceApiFp = function (configuration) {
3833
3863
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3834
3864
  });
3835
3865
  },
3866
+ /**
3867
+ *
3868
+ * @summary 批量获取用户信息
3869
+ * @param {PassportUserInfoPageGetRequest} body
3870
+ * @param {*} [options] Override http request option.
3871
+ * @throws {RequiredError}
3872
+ */
3873
+ passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
3874
+ return __awaiter(this, void 0, void 0, function* () {
3875
+ var _a, _b, _c;
3876
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthUserRPCServicePassportUserInfoPageGet(body, options);
3877
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3878
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoPageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3879
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3880
+ });
3881
+ },
3836
3882
  /**
3837
3883
  *
3838
3884
  * @summary Token 鉴权 - User
@@ -3893,6 +3939,16 @@ export const PassportAuthUserRPCServiceApiFactory = function (configuration, bas
3893
3939
  passportAuthUserRPCServicePassportUserInfoGet(body, options) {
3894
3940
  return localVarFp.passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(axios, basePath));
3895
3941
  },
3942
+ /**
3943
+ *
3944
+ * @summary 批量获取用户信息
3945
+ * @param {PassportUserInfoPageGetRequest} body
3946
+ * @param {*} [options] Override http request option.
3947
+ * @throws {RequiredError}
3948
+ */
3949
+ passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
3950
+ return localVarFp.passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(axios, basePath));
3951
+ },
3896
3952
  /**
3897
3953
  *
3898
3954
  * @summary Token 鉴权 - User
@@ -3939,6 +3995,16 @@ export class PassportAuthUserRPCServiceApi extends BaseAPI {
3939
3995
  passportAuthUserRPCServicePassportUserInfoGet(body, options) {
3940
3996
  return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(this.axios, this.basePath));
3941
3997
  }
3998
+ /**
3999
+ *
4000
+ * @summary 批量获取用户信息
4001
+ * @param {PassportUserInfoPageGetRequest} body
4002
+ * @param {*} [options] Override http request option.
4003
+ * @throws {RequiredError}
4004
+ */
4005
+ passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
4006
+ return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
4007
+ }
3942
4008
  /**
3943
4009
  *
3944
4010
  * @summary Token 鉴权 - User
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**passportAuthUserRPCServicePassportUserInfoBatchGet**](#passportauthuserrpcservicepassportuserinfobatchget) | **POST** /passport/authed/v1/users/batch_get | 批量获取用户信息|
8
8
  |[**passportAuthUserRPCServicePassportUserInfoGet**](#passportauthuserrpcservicepassportuserinfoget) | **POST** /passport/authed/v1/user/get | 获取用户信息|
9
+ |[**passportAuthUserRPCServicePassportUserInfoPageGet**](#passportauthuserrpcservicepassportuserinfopageget) | **POST** /passport/authed/v1/users/page_get | 批量获取用户信息|
9
10
  |[**passportAuthUserRPCServicePassportUserTokenAuth**](#passportauthuserrpcservicepassportusertokenauth) | **POST** /passport/authed/v1/passports | Token 鉴权 - User|
10
11
  |[**passportAuthUserRPCServicePassportUserUpdateInfo**](#passportauthuserrpcservicepassportuserupdateinfo) | **POST** /passport/authed/v1/user/update | 更新用户信息|
11
12
 
@@ -105,6 +106,58 @@ No authorization required
105
106
  - **Accept**: application/json
106
107
 
107
108
 
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | A successful response. | - |
113
+ |**0** | An unexpected error response. | - |
114
+
115
+ [[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)
116
+
117
+ # **passportAuthUserRPCServicePassportUserInfoPageGet**
118
+ > PassportUserInfoPageGetResponse passportAuthUserRPCServicePassportUserInfoPageGet(body)
119
+
120
+
121
+ ### Example
122
+
123
+ ```typescript
124
+ import {
125
+ PassportAuthUserRPCServiceApi,
126
+ Configuration,
127
+ PassportUserInfoPageGetRequest
128
+ } from '@cherryin/passport-api-client';
129
+
130
+ const configuration = new Configuration();
131
+ const apiInstance = new PassportAuthUserRPCServiceApi(configuration);
132
+
133
+ let body: PassportUserInfoPageGetRequest; //
134
+
135
+ const { status, data } = await apiInstance.passportAuthUserRPCServicePassportUserInfoPageGet(
136
+ body
137
+ );
138
+ ```
139
+
140
+ ### Parameters
141
+
142
+ |Name | Type | Description | Notes|
143
+ |------------- | ------------- | ------------- | -------------|
144
+ | **body** | **PassportUserInfoPageGetRequest**| | |
145
+
146
+
147
+ ### Return type
148
+
149
+ **PassportUserInfoPageGetResponse**
150
+
151
+ ### Authorization
152
+
153
+ No authorization required
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: application/json
158
+ - **Accept**: application/json
159
+
160
+
108
161
  ### HTTP response details
109
162
  | Status code | Description | Response headers |
110
163
  |-------------|-------------|------------------|
@@ -0,0 +1,28 @@
1
+ # PassportUserInfoPageGetRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **page** | **number** | | [optional] [default to undefined]
9
+ **page_size** | **number** | | [optional] [default to undefined]
10
+ **app_ids** | **Array&lt;string&gt;** | | [optional] [default to undefined]
11
+ **query_options** | [**UserInfoQueryOptions**](UserInfoQueryOptions.md) | | [optional] [default to undefined]
12
+ **search_options** | [**UserSearchOptions**](UserSearchOptions.md) | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { PassportUserInfoPageGetRequest } from '@cherryin/passport-api-client';
18
+
19
+ const instance: PassportUserInfoPageGetRequest = {
20
+ page,
21
+ page_size,
22
+ app_ids,
23
+ query_options,
24
+ search_options,
25
+ };
26
+ ```
27
+
28
+ [[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,26 @@
1
+ # PassportUserInfoPageGetResponse
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
+ **user_info_list** | [**Array&lt;UserInfo&gt;**](UserInfo.md) | | [optional] [default to undefined]
11
+ **total** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PassportUserInfoPageGetResponse } from '@cherryin/passport-api-client';
17
+
18
+ const instance: PassportUserInfoPageGetResponse = {
19
+ code,
20
+ message,
21
+ user_info_list,
22
+ total,
23
+ };
24
+ ```
25
+
26
+ [[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,26 @@
1
+ # UserSearchOptions
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **user_ids** | **Array&lt;string&gt;** | | [optional] [default to undefined]
9
+ **email** | **string** | | [optional] [default to undefined]
10
+ **phone** | **string** | | [optional] [default to undefined]
11
+ **display_name** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { UserSearchOptions } from '@cherryin/passport-api-client';
17
+
18
+ const instance: UserSearchOptions = {
19
+ user_ids,
20
+ email,
21
+ phone,
22
+ display_name,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cherryin/passport-api-client",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "OpenAPI client for @cherryin/passport-api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {