@cherryin/passport-api-client 0.1.18 → 0.1.20

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.
@@ -79,6 +79,12 @@ docs/PassportAuthChangePasswordRequest.md
79
79
  docs/PassportAuthChangePasswordResponse.md
80
80
  docs/PassportAuthDeleteAllRequest.md
81
81
  docs/PassportAuthDeleteAllResponse.md
82
+ docs/PassportAuthEnterpriseBindEmailRequest.md
83
+ docs/PassportAuthEnterpriseBindEmailResponse.md
84
+ docs/PassportAuthEnterpriseBindPhoneRequest.md
85
+ docs/PassportAuthEnterpriseBindPhoneResponse.md
86
+ docs/PassportAuthEnterpriseChangeEmailRequest.md
87
+ docs/PassportAuthEnterpriseChangeEmailResponse.md
82
88
  docs/PassportAuthEnterpriseChangePasswordRequest.md
83
89
  docs/PassportAuthEnterpriseChangePasswordResponse.md
84
90
  docs/PassportAuthEnterpriseChangePhoneRequest.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @cherryin/passport-api-client@0.1.18
1
+ ## @cherryin/passport-api-client@0.1.20
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.18 --save
39
+ npm install @cherryin/passport-api-client@0.1.20 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -77,6 +77,9 @@ Class | Method | HTTP request | Description
77
77
  *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAuthAdminUserModifyInfo**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportauthadminusermodifyinfo) | **POST** /passport/admin/authed/v1/user/modify/info | 管理员修改用户信息
78
78
  *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAuthAdminUserModifyPermission**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportauthadminusermodifypermission) | **POST** /passport/admin/authed/v1/user/modify/permission | 管理员修改用户权限
79
79
  *PassportAuthEnterpriseRPCServiceApi* | [**passportAuthEnterpriseRPCServicePassportEnterpriseTokenAuth**](docs/PassportAuthEnterpriseRPCServiceApi.md#passportauthenterpriserpcservicepassportenterprisetokenauth) | **POST** /passport/enterprise/authed/v1/passports | Token 鉴权 - Enterprise
80
+ *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisebindemail) | **POST** /passport/enterprise/authed/v1/email/bind | 已登录用户绑定邮箱(未绑定邮箱的用户使用)
81
+ *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisebindphone) | **POST** /passport/enterprise/authed/v1/phone/bind | 已登录用户绑定手机号
82
+ *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisechangeemail) | **POST** /passport/enterprise/authed/v1/email/change | 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
80
83
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseChangePassword**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisechangepassword) | **POST** /passport/enterprise/authed/v1/password/change | 已登录用户修改密码
81
84
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseChangePhone**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisechangephone) | **POST** /passport/enterprise/authed/v1/phone/change | 已登录用户更换手机号
82
85
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseDelete**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisedelete) | **POST** /passport/enterprise/authed/v1/user/request-delete | 请求删除用户
@@ -94,8 +97,9 @@ Class | Method | HTTP request | Description
94
97
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriserevokesessions) | **POST** /passport/enterprise/authed/v1/sessions/revoke-all | 注销所有会话
95
98
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseSignOut**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisesignout) | **POST** /passport/enterprise/authed/v1/sign-out | 用户登出
96
99
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseUpdateInfo**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseupdateinfo) | **POST** /passport/enterprise/authed/v1/user/update-info | 更新用户信息
97
- *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseverifyemail) | **POST** /passport/enterprise/auth/v1/password/request-reset | 已登录用户验证邮箱
98
- *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseverifyphone) | **GET** /passport/enterprise/authed/v1/phone/verify | 已登录用户验证手机号
100
+ *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseverifyemail) | **POST** /passport/enterprise/authed/v1/email/verify | 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
101
+ *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseverifyphone) | **GET** /passport/enterprise/authed/v1/phone/verify | 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
102
+ *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportEnterprisePasswordReset**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportenterprisepasswordreset) | **POST** /passport/enterprise/auth/v1/password/request-reset | 请求重置密码
99
103
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportEnterpriseSendVerificationEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportenterprisesendverificationemail) | **POST** /passport/enterprise/auth/v1/verification/send-email | 登录/注册流程中发送验证码
100
104
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportEnterpriseSendVerificationPhone**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportenterprisesendverificationphone) | **POST** /passport/enterprise/auth/v1/verification/send-phone | 登录/注册流程中发送验证码
101
105
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportEnterpriseSignInEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportenterprisesigninemail) | **POST** /passport/enterprise/auth/v1/sign-in/email | 邮箱登录
@@ -217,6 +221,12 @@ Class | Method | HTTP request | Description
217
221
  - [PassportAuthChangePasswordResponse](docs/PassportAuthChangePasswordResponse.md)
218
222
  - [PassportAuthDeleteAllRequest](docs/PassportAuthDeleteAllRequest.md)
219
223
  - [PassportAuthDeleteAllResponse](docs/PassportAuthDeleteAllResponse.md)
224
+ - [PassportAuthEnterpriseBindEmailRequest](docs/PassportAuthEnterpriseBindEmailRequest.md)
225
+ - [PassportAuthEnterpriseBindEmailResponse](docs/PassportAuthEnterpriseBindEmailResponse.md)
226
+ - [PassportAuthEnterpriseBindPhoneRequest](docs/PassportAuthEnterpriseBindPhoneRequest.md)
227
+ - [PassportAuthEnterpriseBindPhoneResponse](docs/PassportAuthEnterpriseBindPhoneResponse.md)
228
+ - [PassportAuthEnterpriseChangeEmailRequest](docs/PassportAuthEnterpriseChangeEmailRequest.md)
229
+ - [PassportAuthEnterpriseChangeEmailResponse](docs/PassportAuthEnterpriseChangeEmailResponse.md)
220
230
  - [PassportAuthEnterpriseChangePasswordRequest](docs/PassportAuthEnterpriseChangePasswordRequest.md)
221
231
  - [PassportAuthEnterpriseChangePasswordResponse](docs/PassportAuthEnterpriseChangePasswordResponse.md)
222
232
  - [PassportAuthEnterpriseChangePhoneRequest](docs/PassportAuthEnterpriseChangePhoneRequest.md)
package/api.ts CHANGED
@@ -489,6 +489,32 @@ export interface PassportAuthDeleteAllResponse {
489
489
  'code'?: string;
490
490
  'message'?: string;
491
491
  }
492
+ export interface PassportAuthEnterpriseBindEmailRequest {
493
+ 'email'?: string;
494
+ 'verify_code'?: string;
495
+ 'callback_url'?: string;
496
+ }
497
+ export interface PassportAuthEnterpriseBindEmailResponse {
498
+ 'code'?: string;
499
+ 'message'?: string;
500
+ }
501
+ export interface PassportAuthEnterpriseBindPhoneRequest {
502
+ 'phone'?: string;
503
+ 'verify_code'?: string;
504
+ }
505
+ export interface PassportAuthEnterpriseBindPhoneResponse {
506
+ 'code'?: string;
507
+ 'message'?: string;
508
+ }
509
+ export interface PassportAuthEnterpriseChangeEmailRequest {
510
+ 'email'?: string;
511
+ 'verify_code'?: string;
512
+ 'callback_url'?: string;
513
+ }
514
+ export interface PassportAuthEnterpriseChangeEmailResponse {
515
+ 'code'?: string;
516
+ 'message'?: string;
517
+ }
492
518
  export interface PassportAuthEnterpriseChangePasswordRequest {
493
519
  'new_password'?: string;
494
520
  'current_password'?: string;
@@ -3349,6 +3375,114 @@ export class PassportAuthEnterpriseRPCServiceApi extends BaseAPI implements Pass
3349
3375
  */
3350
3376
  export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuration?: Configuration) {
3351
3377
  return {
3378
+ /**
3379
+ *
3380
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
3381
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
3382
+ * @param {*} [options] Override http request option.
3383
+ * @throws {RequiredError}
3384
+ */
3385
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail: async (body: PassportAuthEnterpriseBindEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3386
+ // verify required parameter 'body' is not null or undefined
3387
+ assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail', 'body', body)
3388
+ const localVarPath = `/passport/enterprise/authed/v1/email/bind`;
3389
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3390
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3391
+ let baseOptions;
3392
+ if (configuration) {
3393
+ baseOptions = configuration.baseOptions;
3394
+ }
3395
+
3396
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3397
+ const localVarHeaderParameter = {} as any;
3398
+ const localVarQueryParameter = {} as any;
3399
+
3400
+
3401
+
3402
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3403
+
3404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3406
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3407
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
3408
+
3409
+ return {
3410
+ url: toPathString(localVarUrlObj),
3411
+ options: localVarRequestOptions,
3412
+ };
3413
+ },
3414
+ /**
3415
+ *
3416
+ * @summary 已登录用户绑定手机号
3417
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
3418
+ * @param {*} [options] Override http request option.
3419
+ * @throws {RequiredError}
3420
+ */
3421
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone: async (body: PassportAuthEnterpriseBindPhoneRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3422
+ // verify required parameter 'body' is not null or undefined
3423
+ assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone', 'body', body)
3424
+ const localVarPath = `/passport/enterprise/authed/v1/phone/bind`;
3425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3426
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3427
+ let baseOptions;
3428
+ if (configuration) {
3429
+ baseOptions = configuration.baseOptions;
3430
+ }
3431
+
3432
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3433
+ const localVarHeaderParameter = {} as any;
3434
+ const localVarQueryParameter = {} as any;
3435
+
3436
+
3437
+
3438
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3439
+
3440
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3442
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3443
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
3444
+
3445
+ return {
3446
+ url: toPathString(localVarUrlObj),
3447
+ options: localVarRequestOptions,
3448
+ };
3449
+ },
3450
+ /**
3451
+ *
3452
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
3453
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
3454
+ * @param {*} [options] Override http request option.
3455
+ * @throws {RequiredError}
3456
+ */
3457
+ passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail: async (body: PassportAuthEnterpriseChangeEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3458
+ // verify required parameter 'body' is not null or undefined
3459
+ assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail', 'body', body)
3460
+ const localVarPath = `/passport/enterprise/authed/v1/email/change`;
3461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3463
+ let baseOptions;
3464
+ if (configuration) {
3465
+ baseOptions = configuration.baseOptions;
3466
+ }
3467
+
3468
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3469
+ const localVarHeaderParameter = {} as any;
3470
+ const localVarQueryParameter = {} as any;
3471
+
3472
+
3473
+
3474
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3475
+
3476
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3478
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3479
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
3480
+
3481
+ return {
3482
+ url: toPathString(localVarUrlObj),
3483
+ options: localVarRequestOptions,
3484
+ };
3485
+ },
3352
3486
  /**
3353
3487
  *
3354
3488
  * @summary 已登录用户修改密码
@@ -3945,7 +4079,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
3945
4079
  },
3946
4080
  /**
3947
4081
  *
3948
- * @summary 已登录用户验证邮箱
4082
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
3949
4083
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
3950
4084
  * @param {*} [options] Override http request option.
3951
4085
  * @throws {RequiredError}
@@ -3953,7 +4087,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
3953
4087
  passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail: async (body: PassportAuthEnterpriseVerifyEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3954
4088
  // verify required parameter 'body' is not null or undefined
3955
4089
  assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail', 'body', body)
3956
- const localVarPath = `/passport/enterprise/auth/v1/password/request-reset`;
4090
+ const localVarPath = `/passport/enterprise/authed/v1/email/verify`;
3957
4091
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3958
4092
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3959
4093
  let baseOptions;
@@ -3981,7 +4115,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
3981
4115
  },
3982
4116
  /**
3983
4117
  *
3984
- * @summary 已登录用户验证手机号
4118
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
3985
4119
  * @param {string} [phone]
3986
4120
  * @param {string} [verifyCode]
3987
4121
  * @param {*} [options] Override http request option.
@@ -4019,6 +4153,42 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
4019
4153
  options: localVarRequestOptions,
4020
4154
  };
4021
4155
  },
4156
+ /**
4157
+ *
4158
+ * @summary 请求重置密码
4159
+ * @param {PassportEnterprisePasswordResetRequest} body
4160
+ * @param {*} [options] Override http request option.
4161
+ * @throws {RequiredError}
4162
+ */
4163
+ passportAuthEnterpriseServicePassportEnterprisePasswordReset: async (body: PassportEnterprisePasswordResetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4164
+ // verify required parameter 'body' is not null or undefined
4165
+ assertParamExists('passportAuthEnterpriseServicePassportEnterprisePasswordReset', 'body', body)
4166
+ const localVarPath = `/passport/enterprise/auth/v1/password/request-reset`;
4167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4168
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4169
+ let baseOptions;
4170
+ if (configuration) {
4171
+ baseOptions = configuration.baseOptions;
4172
+ }
4173
+
4174
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4175
+ const localVarHeaderParameter = {} as any;
4176
+ const localVarQueryParameter = {} as any;
4177
+
4178
+
4179
+
4180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4181
+
4182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4184
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4185
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
4186
+
4187
+ return {
4188
+ url: toPathString(localVarUrlObj),
4189
+ options: localVarRequestOptions,
4190
+ };
4191
+ },
4022
4192
  /**
4023
4193
  *
4024
4194
  * @summary 登录/注册流程中发送验证码
@@ -4208,6 +4378,45 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
4208
4378
  export const PassportAuthEnterpriseServiceApiFp = function(configuration?: Configuration) {
4209
4379
  const localVarAxiosParamCreator = PassportAuthEnterpriseServiceApiAxiosParamCreator(configuration)
4210
4380
  return {
4381
+ /**
4382
+ *
4383
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
4384
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
4385
+ * @param {*} [options] Override http request option.
4386
+ * @throws {RequiredError}
4387
+ */
4388
+ async passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body: PassportAuthEnterpriseBindEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseBindEmailResponse>> {
4389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options);
4390
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4391
+ const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail']?.[localVarOperationServerIndex]?.url;
4392
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4393
+ },
4394
+ /**
4395
+ *
4396
+ * @summary 已登录用户绑定手机号
4397
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
4398
+ * @param {*} [options] Override http request option.
4399
+ * @throws {RequiredError}
4400
+ */
4401
+ async passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body: PassportAuthEnterpriseBindPhoneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseBindPhoneResponse>> {
4402
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options);
4403
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4404
+ const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone']?.[localVarOperationServerIndex]?.url;
4405
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4406
+ },
4407
+ /**
4408
+ *
4409
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
4410
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
4411
+ * @param {*} [options] Override http request option.
4412
+ * @throws {RequiredError}
4413
+ */
4414
+ async passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body: PassportAuthEnterpriseChangeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseChangeEmailResponse>> {
4415
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options);
4416
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4417
+ const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail']?.[localVarOperationServerIndex]?.url;
4418
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4419
+ },
4211
4420
  /**
4212
4421
  *
4213
4422
  * @summary 已登录用户修改密码
@@ -4428,7 +4637,7 @@ export const PassportAuthEnterpriseServiceApiFp = function(configuration?: Confi
4428
4637
  },
4429
4638
  /**
4430
4639
  *
4431
- * @summary 已登录用户验证邮箱
4640
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
4432
4641
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
4433
4642
  * @param {*} [options] Override http request option.
4434
4643
  * @throws {RequiredError}
@@ -4441,7 +4650,7 @@ export const PassportAuthEnterpriseServiceApiFp = function(configuration?: Confi
4441
4650
  },
4442
4651
  /**
4443
4652
  *
4444
- * @summary 已登录用户验证手机号
4653
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
4445
4654
  * @param {string} [phone]
4446
4655
  * @param {string} [verifyCode]
4447
4656
  * @param {*} [options] Override http request option.
@@ -4453,6 +4662,19 @@ export const PassportAuthEnterpriseServiceApiFp = function(configuration?: Confi
4453
4662
  const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone']?.[localVarOperationServerIndex]?.url;
4454
4663
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4455
4664
  },
4665
+ /**
4666
+ *
4667
+ * @summary 请求重置密码
4668
+ * @param {PassportEnterprisePasswordResetRequest} body
4669
+ * @param {*} [options] Override http request option.
4670
+ * @throws {RequiredError}
4671
+ */
4672
+ async passportAuthEnterpriseServicePassportEnterprisePasswordReset(body: PassportEnterprisePasswordResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportEnterprisePasswordResetResponse>> {
4673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options);
4674
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4675
+ const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportEnterprisePasswordReset']?.[localVarOperationServerIndex]?.url;
4676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4677
+ },
4456
4678
  /**
4457
4679
  *
4458
4680
  * @summary 登录/注册流程中发送验证码
@@ -4527,6 +4749,36 @@ export const PassportAuthEnterpriseServiceApiFp = function(configuration?: Confi
4527
4749
  export const PassportAuthEnterpriseServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4528
4750
  const localVarFp = PassportAuthEnterpriseServiceApiFp(configuration)
4529
4751
  return {
4752
+ /**
4753
+ *
4754
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
4755
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
4756
+ * @param {*} [options] Override http request option.
4757
+ * @throws {RequiredError}
4758
+ */
4759
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body: PassportAuthEnterpriseBindEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseBindEmailResponse> {
4760
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options).then((request) => request(axios, basePath));
4761
+ },
4762
+ /**
4763
+ *
4764
+ * @summary 已登录用户绑定手机号
4765
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
4766
+ * @param {*} [options] Override http request option.
4767
+ * @throws {RequiredError}
4768
+ */
4769
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body: PassportAuthEnterpriseBindPhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseBindPhoneResponse> {
4770
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options).then((request) => request(axios, basePath));
4771
+ },
4772
+ /**
4773
+ *
4774
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
4775
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
4776
+ * @param {*} [options] Override http request option.
4777
+ * @throws {RequiredError}
4778
+ */
4779
+ passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body: PassportAuthEnterpriseChangeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseChangeEmailResponse> {
4780
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options).then((request) => request(axios, basePath));
4781
+ },
4530
4782
  /**
4531
4783
  *
4532
4784
  * @summary 已登录用户修改密码
@@ -4696,7 +4948,7 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration?:
4696
4948
  },
4697
4949
  /**
4698
4950
  *
4699
- * @summary 已登录用户验证邮箱
4951
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
4700
4952
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
4701
4953
  * @param {*} [options] Override http request option.
4702
4954
  * @throws {RequiredError}
@@ -4706,7 +4958,7 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration?:
4706
4958
  },
4707
4959
  /**
4708
4960
  *
4709
- * @summary 已登录用户验证手机号
4961
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
4710
4962
  * @param {string} [phone]
4711
4963
  * @param {string} [verifyCode]
4712
4964
  * @param {*} [options] Override http request option.
@@ -4715,6 +4967,16 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration?:
4715
4967
  passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone?: string, verifyCode?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseVerifyPhoneResponse> {
4716
4968
  return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options).then((request) => request(axios, basePath));
4717
4969
  },
4970
+ /**
4971
+ *
4972
+ * @summary 请求重置密码
4973
+ * @param {PassportEnterprisePasswordResetRequest} body
4974
+ * @param {*} [options] Override http request option.
4975
+ * @throws {RequiredError}
4976
+ */
4977
+ passportAuthEnterpriseServicePassportEnterprisePasswordReset(body: PassportEnterprisePasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportEnterprisePasswordResetResponse> {
4978
+ return localVarFp.passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options).then((request) => request(axios, basePath));
4979
+ },
4718
4980
  /**
4719
4981
  *
4720
4982
  * @summary 登录/注册流程中发送验证码
@@ -4772,6 +5034,33 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration?:
4772
5034
  * PassportAuthEnterpriseServiceApi - interface
4773
5035
  */
4774
5036
  export interface PassportAuthEnterpriseServiceApiInterface {
5037
+ /**
5038
+ *
5039
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
5040
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
5041
+ * @param {*} [options] Override http request option.
5042
+ * @throws {RequiredError}
5043
+ */
5044
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body: PassportAuthEnterpriseBindEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseBindEmailResponse>;
5045
+
5046
+ /**
5047
+ *
5048
+ * @summary 已登录用户绑定手机号
5049
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
5050
+ * @param {*} [options] Override http request option.
5051
+ * @throws {RequiredError}
5052
+ */
5053
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body: PassportAuthEnterpriseBindPhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseBindPhoneResponse>;
5054
+
5055
+ /**
5056
+ *
5057
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
5058
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
5059
+ * @param {*} [options] Override http request option.
5060
+ * @throws {RequiredError}
5061
+ */
5062
+ passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body: PassportAuthEnterpriseChangeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseChangeEmailResponse>;
5063
+
4775
5064
  /**
4776
5065
  *
4777
5066
  * @summary 已登录用户修改密码
@@ -4924,7 +5213,7 @@ export interface PassportAuthEnterpriseServiceApiInterface {
4924
5213
 
4925
5214
  /**
4926
5215
  *
4927
- * @summary 已登录用户验证邮箱
5216
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
4928
5217
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
4929
5218
  * @param {*} [options] Override http request option.
4930
5219
  * @throws {RequiredError}
@@ -4933,7 +5222,7 @@ export interface PassportAuthEnterpriseServiceApiInterface {
4933
5222
 
4934
5223
  /**
4935
5224
  *
4936
- * @summary 已登录用户验证手机号
5225
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
4937
5226
  * @param {string} [phone]
4938
5227
  * @param {string} [verifyCode]
4939
5228
  * @param {*} [options] Override http request option.
@@ -4941,6 +5230,15 @@ export interface PassportAuthEnterpriseServiceApiInterface {
4941
5230
  */
4942
5231
  passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone?: string, verifyCode?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseVerifyPhoneResponse>;
4943
5232
 
5233
+ /**
5234
+ *
5235
+ * @summary 请求重置密码
5236
+ * @param {PassportEnterprisePasswordResetRequest} body
5237
+ * @param {*} [options] Override http request option.
5238
+ * @throws {RequiredError}
5239
+ */
5240
+ passportAuthEnterpriseServicePassportEnterprisePasswordReset(body: PassportEnterprisePasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportEnterprisePasswordResetResponse>;
5241
+
4944
5242
  /**
4945
5243
  *
4946
5244
  * @summary 登录/注册流程中发送验证码
@@ -4992,6 +5290,39 @@ export interface PassportAuthEnterpriseServiceApiInterface {
4992
5290
  * PassportAuthEnterpriseServiceApi - object-oriented interface
4993
5291
  */
4994
5292
  export class PassportAuthEnterpriseServiceApi extends BaseAPI implements PassportAuthEnterpriseServiceApiInterface {
5293
+ /**
5294
+ *
5295
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
5296
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
5297
+ * @param {*} [options] Override http request option.
5298
+ * @throws {RequiredError}
5299
+ */
5300
+ public passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body: PassportAuthEnterpriseBindEmailRequest, options?: RawAxiosRequestConfig) {
5301
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options).then((request) => request(this.axios, this.basePath));
5302
+ }
5303
+
5304
+ /**
5305
+ *
5306
+ * @summary 已登录用户绑定手机号
5307
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
5308
+ * @param {*} [options] Override http request option.
5309
+ * @throws {RequiredError}
5310
+ */
5311
+ public passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body: PassportAuthEnterpriseBindPhoneRequest, options?: RawAxiosRequestConfig) {
5312
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options).then((request) => request(this.axios, this.basePath));
5313
+ }
5314
+
5315
+ /**
5316
+ *
5317
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
5318
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
5319
+ * @param {*} [options] Override http request option.
5320
+ * @throws {RequiredError}
5321
+ */
5322
+ public passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body: PassportAuthEnterpriseChangeEmailRequest, options?: RawAxiosRequestConfig) {
5323
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options).then((request) => request(this.axios, this.basePath));
5324
+ }
5325
+
4995
5326
  /**
4996
5327
  *
4997
5328
  * @summary 已登录用户修改密码
@@ -5178,7 +5509,7 @@ export class PassportAuthEnterpriseServiceApi extends BaseAPI implements Passpor
5178
5509
 
5179
5510
  /**
5180
5511
  *
5181
- * @summary 已登录用户验证邮箱
5512
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
5182
5513
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
5183
5514
  * @param {*} [options] Override http request option.
5184
5515
  * @throws {RequiredError}
@@ -5189,7 +5520,7 @@ export class PassportAuthEnterpriseServiceApi extends BaseAPI implements Passpor
5189
5520
 
5190
5521
  /**
5191
5522
  *
5192
- * @summary 已登录用户验证手机号
5523
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
5193
5524
  * @param {string} [phone]
5194
5525
  * @param {string} [verifyCode]
5195
5526
  * @param {*} [options] Override http request option.
@@ -5199,6 +5530,17 @@ export class PassportAuthEnterpriseServiceApi extends BaseAPI implements Passpor
5199
5530
  return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options).then((request) => request(this.axios, this.basePath));
5200
5531
  }
5201
5532
 
5533
+ /**
5534
+ *
5535
+ * @summary 请求重置密码
5536
+ * @param {PassportEnterprisePasswordResetRequest} body
5537
+ * @param {*} [options] Override http request option.
5538
+ * @throws {RequiredError}
5539
+ */
5540
+ public passportAuthEnterpriseServicePassportEnterprisePasswordReset(body: PassportEnterprisePasswordResetRequest, options?: RawAxiosRequestConfig) {
5541
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options).then((request) => request(this.axios, this.basePath));
5542
+ }
5543
+
5202
5544
  /**
5203
5545
  *
5204
5546
  * @summary 登录/注册流程中发送验证码