@cherryin/passport-api-client 0.1.19 → 0.1.21

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
@@ -1815,6 +1815,96 @@ export class PassportAuthEnterpriseRPCServiceApi extends BaseAPI {
1815
1815
  */
1816
1816
  export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuration) {
1817
1817
  return {
1818
+ /**
1819
+ *
1820
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
1821
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
1822
+ * @param {*} [options] Override http request option.
1823
+ * @throws {RequiredError}
1824
+ */
1825
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1826
+ // verify required parameter 'body' is not null or undefined
1827
+ assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail', 'body', body);
1828
+ const localVarPath = `/passport/enterprise/authed/v1/email/bind`;
1829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1830
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1831
+ let baseOptions;
1832
+ if (configuration) {
1833
+ baseOptions = configuration.baseOptions;
1834
+ }
1835
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1836
+ const localVarHeaderParameter = {};
1837
+ const localVarQueryParameter = {};
1838
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1841
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1842
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1843
+ return {
1844
+ url: toPathString(localVarUrlObj),
1845
+ options: localVarRequestOptions,
1846
+ };
1847
+ }),
1848
+ /**
1849
+ *
1850
+ * @summary 已登录用户绑定手机号
1851
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
1852
+ * @param {*} [options] Override http request option.
1853
+ * @throws {RequiredError}
1854
+ */
1855
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1856
+ // verify required parameter 'body' is not null or undefined
1857
+ assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone', 'body', body);
1858
+ const localVarPath = `/passport/enterprise/authed/v1/phone/bind`;
1859
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1860
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1861
+ let baseOptions;
1862
+ if (configuration) {
1863
+ baseOptions = configuration.baseOptions;
1864
+ }
1865
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1866
+ const localVarHeaderParameter = {};
1867
+ const localVarQueryParameter = {};
1868
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1869
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1870
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1871
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1872
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1873
+ return {
1874
+ url: toPathString(localVarUrlObj),
1875
+ options: localVarRequestOptions,
1876
+ };
1877
+ }),
1878
+ /**
1879
+ *
1880
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
1881
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
1882
+ * @param {*} [options] Override http request option.
1883
+ * @throws {RequiredError}
1884
+ */
1885
+ passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1886
+ // verify required parameter 'body' is not null or undefined
1887
+ assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail', 'body', body);
1888
+ const localVarPath = `/passport/enterprise/authed/v1/email/change`;
1889
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1890
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1891
+ let baseOptions;
1892
+ if (configuration) {
1893
+ baseOptions = configuration.baseOptions;
1894
+ }
1895
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1896
+ const localVarHeaderParameter = {};
1897
+ const localVarQueryParameter = {};
1898
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1899
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1900
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1901
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1902
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1903
+ return {
1904
+ url: toPathString(localVarUrlObj),
1905
+ options: localVarRequestOptions,
1906
+ };
1907
+ }),
1818
1908
  /**
1819
1909
  *
1820
1910
  * @summary 已登录用户修改密码
@@ -2312,7 +2402,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
2312
2402
  }),
2313
2403
  /**
2314
2404
  *
2315
- * @summary 已登录用户验证邮箱
2405
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
2316
2406
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
2317
2407
  * @param {*} [options] Override http request option.
2318
2408
  * @throws {RequiredError}
@@ -2320,7 +2410,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
2320
2410
  passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
2321
2411
  // verify required parameter 'body' is not null or undefined
2322
2412
  assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail', 'body', body);
2323
- const localVarPath = `/passport/enterprise/auth/v1/password/request-reset`;
2413
+ const localVarPath = `/passport/enterprise/authed/v1/email/verify`;
2324
2414
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2325
2415
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2326
2416
  let baseOptions;
@@ -2342,7 +2432,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
2342
2432
  }),
2343
2433
  /**
2344
2434
  *
2345
- * @summary 已登录用户验证手机号
2435
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
2346
2436
  * @param {string} [phone]
2347
2437
  * @param {string} [verifyCode]
2348
2438
  * @param {*} [options] Override http request option.
@@ -2373,6 +2463,36 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
2373
2463
  options: localVarRequestOptions,
2374
2464
  };
2375
2465
  }),
2466
+ /**
2467
+ *
2468
+ * @summary 请求重置密码
2469
+ * @param {PassportEnterprisePasswordResetRequest} body
2470
+ * @param {*} [options] Override http request option.
2471
+ * @throws {RequiredError}
2472
+ */
2473
+ passportAuthEnterpriseServicePassportEnterprisePasswordReset: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
2474
+ // verify required parameter 'body' is not null or undefined
2475
+ assertParamExists('passportAuthEnterpriseServicePassportEnterprisePasswordReset', 'body', body);
2476
+ const localVarPath = `/passport/enterprise/auth/v1/password/request-reset`;
2477
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2478
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2479
+ let baseOptions;
2480
+ if (configuration) {
2481
+ baseOptions = configuration.baseOptions;
2482
+ }
2483
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2484
+ const localVarHeaderParameter = {};
2485
+ const localVarQueryParameter = {};
2486
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2487
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2489
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2490
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
2491
+ return {
2492
+ url: toPathString(localVarUrlObj),
2493
+ options: localVarRequestOptions,
2494
+ };
2495
+ }),
2376
2496
  /**
2377
2497
  *
2378
2498
  * @summary 登录/注册流程中发送验证码
@@ -2531,6 +2651,54 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
2531
2651
  export const PassportAuthEnterpriseServiceApiFp = function (configuration) {
2532
2652
  const localVarAxiosParamCreator = PassportAuthEnterpriseServiceApiAxiosParamCreator(configuration);
2533
2653
  return {
2654
+ /**
2655
+ *
2656
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
2657
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
2658
+ * @param {*} [options] Override http request option.
2659
+ * @throws {RequiredError}
2660
+ */
2661
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options) {
2662
+ return __awaiter(this, void 0, void 0, function* () {
2663
+ var _a, _b, _c;
2664
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options);
2665
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2666
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2667
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2668
+ });
2669
+ },
2670
+ /**
2671
+ *
2672
+ * @summary 已登录用户绑定手机号
2673
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
2674
+ * @param {*} [options] Override http request option.
2675
+ * @throws {RequiredError}
2676
+ */
2677
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options) {
2678
+ return __awaiter(this, void 0, void 0, function* () {
2679
+ var _a, _b, _c;
2680
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options);
2681
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2682
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2683
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2684
+ });
2685
+ },
2686
+ /**
2687
+ *
2688
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
2689
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
2690
+ * @param {*} [options] Override http request option.
2691
+ * @throws {RequiredError}
2692
+ */
2693
+ passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options) {
2694
+ return __awaiter(this, void 0, void 0, function* () {
2695
+ var _a, _b, _c;
2696
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options);
2697
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2698
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2699
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2700
+ });
2701
+ },
2534
2702
  /**
2535
2703
  *
2536
2704
  * @summary 已登录用户修改密码
@@ -2802,7 +2970,7 @@ export const PassportAuthEnterpriseServiceApiFp = function (configuration) {
2802
2970
  },
2803
2971
  /**
2804
2972
  *
2805
- * @summary 已登录用户验证邮箱
2973
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
2806
2974
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
2807
2975
  * @param {*} [options] Override http request option.
2808
2976
  * @throws {RequiredError}
@@ -2818,7 +2986,7 @@ export const PassportAuthEnterpriseServiceApiFp = function (configuration) {
2818
2986
  },
2819
2987
  /**
2820
2988
  *
2821
- * @summary 已登录用户验证手机号
2989
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
2822
2990
  * @param {string} [phone]
2823
2991
  * @param {string} [verifyCode]
2824
2992
  * @param {*} [options] Override http request option.
@@ -2833,6 +3001,22 @@ export const PassportAuthEnterpriseServiceApiFp = function (configuration) {
2833
3001
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2834
3002
  });
2835
3003
  },
3004
+ /**
3005
+ *
3006
+ * @summary 请求重置密码
3007
+ * @param {PassportEnterprisePasswordResetRequest} body
3008
+ * @param {*} [options] Override http request option.
3009
+ * @throws {RequiredError}
3010
+ */
3011
+ passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options) {
3012
+ return __awaiter(this, void 0, void 0, function* () {
3013
+ var _a, _b, _c;
3014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options);
3015
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3016
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportEnterprisePasswordReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3017
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3018
+ });
3019
+ },
2836
3020
  /**
2837
3021
  *
2838
3022
  * @summary 登录/注册流程中发送验证码
@@ -2921,6 +3105,36 @@ export const PassportAuthEnterpriseServiceApiFp = function (configuration) {
2921
3105
  export const PassportAuthEnterpriseServiceApiFactory = function (configuration, basePath, axios) {
2922
3106
  const localVarFp = PassportAuthEnterpriseServiceApiFp(configuration);
2923
3107
  return {
3108
+ /**
3109
+ *
3110
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
3111
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
3112
+ * @param {*} [options] Override http request option.
3113
+ * @throws {RequiredError}
3114
+ */
3115
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options) {
3116
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options).then((request) => request(axios, basePath));
3117
+ },
3118
+ /**
3119
+ *
3120
+ * @summary 已登录用户绑定手机号
3121
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
3122
+ * @param {*} [options] Override http request option.
3123
+ * @throws {RequiredError}
3124
+ */
3125
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options) {
3126
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options).then((request) => request(axios, basePath));
3127
+ },
3128
+ /**
3129
+ *
3130
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
3131
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
3132
+ * @param {*} [options] Override http request option.
3133
+ * @throws {RequiredError}
3134
+ */
3135
+ passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options) {
3136
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options).then((request) => request(axios, basePath));
3137
+ },
2924
3138
  /**
2925
3139
  *
2926
3140
  * @summary 已登录用户修改密码
@@ -3090,7 +3304,7 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration,
3090
3304
  },
3091
3305
  /**
3092
3306
  *
3093
- * @summary 已登录用户验证邮箱
3307
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
3094
3308
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
3095
3309
  * @param {*} [options] Override http request option.
3096
3310
  * @throws {RequiredError}
@@ -3100,7 +3314,7 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration,
3100
3314
  },
3101
3315
  /**
3102
3316
  *
3103
- * @summary 已登录用户验证手机号
3317
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
3104
3318
  * @param {string} [phone]
3105
3319
  * @param {string} [verifyCode]
3106
3320
  * @param {*} [options] Override http request option.
@@ -3109,6 +3323,16 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration,
3109
3323
  passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options) {
3110
3324
  return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options).then((request) => request(axios, basePath));
3111
3325
  },
3326
+ /**
3327
+ *
3328
+ * @summary 请求重置密码
3329
+ * @param {PassportEnterprisePasswordResetRequest} body
3330
+ * @param {*} [options] Override http request option.
3331
+ * @throws {RequiredError}
3332
+ */
3333
+ passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options) {
3334
+ return localVarFp.passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options).then((request) => request(axios, basePath));
3335
+ },
3112
3336
  /**
3113
3337
  *
3114
3338
  * @summary 登录/注册流程中发送验证码
@@ -3165,6 +3389,36 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration,
3165
3389
  * PassportAuthEnterpriseServiceApi - object-oriented interface
3166
3390
  */
3167
3391
  export class PassportAuthEnterpriseServiceApi extends BaseAPI {
3392
+ /**
3393
+ *
3394
+ * @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
3395
+ * @param {PassportAuthEnterpriseBindEmailRequest} body
3396
+ * @param {*} [options] Override http request option.
3397
+ * @throws {RequiredError}
3398
+ */
3399
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options) {
3400
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options).then((request) => request(this.axios, this.basePath));
3401
+ }
3402
+ /**
3403
+ *
3404
+ * @summary 已登录用户绑定手机号
3405
+ * @param {PassportAuthEnterpriseBindPhoneRequest} body
3406
+ * @param {*} [options] Override http request option.
3407
+ * @throws {RequiredError}
3408
+ */
3409
+ passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options) {
3410
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options).then((request) => request(this.axios, this.basePath));
3411
+ }
3412
+ /**
3413
+ *
3414
+ * @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
3415
+ * @param {PassportAuthEnterpriseChangeEmailRequest} body
3416
+ * @param {*} [options] Override http request option.
3417
+ * @throws {RequiredError}
3418
+ */
3419
+ passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options) {
3420
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options).then((request) => request(this.axios, this.basePath));
3421
+ }
3168
3422
  /**
3169
3423
  *
3170
3424
  * @summary 已登录用户修改密码
@@ -3334,7 +3588,7 @@ export class PassportAuthEnterpriseServiceApi extends BaseAPI {
3334
3588
  }
3335
3589
  /**
3336
3590
  *
3337
- * @summary 已登录用户验证邮箱
3591
+ * @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
3338
3592
  * @param {PassportAuthEnterpriseVerifyEmailRequest} body
3339
3593
  * @param {*} [options] Override http request option.
3340
3594
  * @throws {RequiredError}
@@ -3344,7 +3598,7 @@ export class PassportAuthEnterpriseServiceApi extends BaseAPI {
3344
3598
  }
3345
3599
  /**
3346
3600
  *
3347
- * @summary 已登录用户验证手机号
3601
+ * @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
3348
3602
  * @param {string} [phone]
3349
3603
  * @param {string} [verifyCode]
3350
3604
  * @param {*} [options] Override http request option.
@@ -3353,6 +3607,16 @@ export class PassportAuthEnterpriseServiceApi extends BaseAPI {
3353
3607
  passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options) {
3354
3608
  return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options).then((request) => request(this.axios, this.basePath));
3355
3609
  }
3610
+ /**
3611
+ *
3612
+ * @summary 请求重置密码
3613
+ * @param {PassportEnterprisePasswordResetRequest} body
3614
+ * @param {*} [options] Override http request option.
3615
+ * @throws {RequiredError}
3616
+ */
3617
+ passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options) {
3618
+ return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options).then((request) => request(this.axios, this.basePath));
3619
+ }
3356
3620
  /**
3357
3621
  *
3358
3622
  * @summary 登录/注册流程中发送验证码
@@ -0,0 +1,24 @@
1
+ # PassportAuthEnterpriseBindEmailRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **email** | **string** | | [optional] [default to undefined]
9
+ **verify_code** | **string** | | [optional] [default to undefined]
10
+ **callback_url** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PassportAuthEnterpriseBindEmailRequest } from '@cherryin/passport-api-client';
16
+
17
+ const instance: PassportAuthEnterpriseBindEmailRequest = {
18
+ email,
19
+ verify_code,
20
+ callback_url,
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,22 @@
1
+ # PassportAuthEnterpriseBindEmailResponse
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
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassportAuthEnterpriseBindEmailResponse } from '@cherryin/passport-api-client';
15
+
16
+ const instance: PassportAuthEnterpriseBindEmailResponse = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[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,22 @@
1
+ # PassportAuthEnterpriseBindPhoneRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **phone** | **string** | | [optional] [default to undefined]
9
+ **verify_code** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassportAuthEnterpriseBindPhoneRequest } from '@cherryin/passport-api-client';
15
+
16
+ const instance: PassportAuthEnterpriseBindPhoneRequest = {
17
+ phone,
18
+ verify_code,
19
+ };
20
+ ```
21
+
22
+ [[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,22 @@
1
+ # PassportAuthEnterpriseBindPhoneResponse
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
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassportAuthEnterpriseBindPhoneResponse } from '@cherryin/passport-api-client';
15
+
16
+ const instance: PassportAuthEnterpriseBindPhoneResponse = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[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
+ # PassportAuthEnterpriseChangeEmailRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **email** | **string** | | [optional] [default to undefined]
9
+ **verify_code** | **string** | | [optional] [default to undefined]
10
+ **callback_url** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PassportAuthEnterpriseChangeEmailRequest } from '@cherryin/passport-api-client';
16
+
17
+ const instance: PassportAuthEnterpriseChangeEmailRequest = {
18
+ email,
19
+ verify_code,
20
+ callback_url,
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,22 @@
1
+ # PassportAuthEnterpriseChangeEmailResponse
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
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassportAuthEnterpriseChangeEmailResponse } from '@cherryin/passport-api-client';
15
+
16
+ const instance: PassportAuthEnterpriseChangeEmailResponse = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)