@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/.openapi-generator/FILES +6 -0
- package/README.md +14 -4
- package/api.ts +353 -11
- package/dist/api.d.ts +196 -10
- package/dist/api.js +273 -9
- package/dist/esm/api.d.ts +196 -10
- package/dist/esm/api.js +273 -9
- package/docs/PassportAuthEnterpriseBindEmailRequest.md +24 -0
- package/docs/PassportAuthEnterpriseBindEmailResponse.md +22 -0
- package/docs/PassportAuthEnterpriseBindPhoneRequest.md +22 -0
- package/docs/PassportAuthEnterpriseBindPhoneResponse.md +22 -0
- package/docs/PassportAuthEnterpriseChangeEmailRequest.md +24 -0
- package/docs/PassportAuthEnterpriseChangeEmailResponse.md +22 -0
- package/docs/PassportAuthEnterpriseServiceApi.md +214 -2
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -1830,6 +1830,96 @@ exports.PassportAuthEnterpriseRPCServiceApi = PassportAuthEnterpriseRPCServiceAp
|
|
|
1830
1830
|
*/
|
|
1831
1831
|
const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuration) {
|
|
1832
1832
|
return {
|
|
1833
|
+
/**
|
|
1834
|
+
*
|
|
1835
|
+
* @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
|
|
1836
|
+
* @param {PassportAuthEnterpriseBindEmailRequest} body
|
|
1837
|
+
* @param {*} [options] Override http request option.
|
|
1838
|
+
* @throws {RequiredError}
|
|
1839
|
+
*/
|
|
1840
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1841
|
+
// verify required parameter 'body' is not null or undefined
|
|
1842
|
+
(0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail', 'body', body);
|
|
1843
|
+
const localVarPath = `/passport/enterprise/authed/v1/email/bind`;
|
|
1844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1845
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1846
|
+
let baseOptions;
|
|
1847
|
+
if (configuration) {
|
|
1848
|
+
baseOptions = configuration.baseOptions;
|
|
1849
|
+
}
|
|
1850
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1851
|
+
const localVarHeaderParameter = {};
|
|
1852
|
+
const localVarQueryParameter = {};
|
|
1853
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1854
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1856
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1857
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1858
|
+
return {
|
|
1859
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1860
|
+
options: localVarRequestOptions,
|
|
1861
|
+
};
|
|
1862
|
+
}),
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @summary 已登录用户绑定手机号
|
|
1866
|
+
* @param {PassportAuthEnterpriseBindPhoneRequest} body
|
|
1867
|
+
* @param {*} [options] Override http request option.
|
|
1868
|
+
* @throws {RequiredError}
|
|
1869
|
+
*/
|
|
1870
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1871
|
+
// verify required parameter 'body' is not null or undefined
|
|
1872
|
+
(0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone', 'body', body);
|
|
1873
|
+
const localVarPath = `/passport/enterprise/authed/v1/phone/bind`;
|
|
1874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1875
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1876
|
+
let baseOptions;
|
|
1877
|
+
if (configuration) {
|
|
1878
|
+
baseOptions = configuration.baseOptions;
|
|
1879
|
+
}
|
|
1880
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1881
|
+
const localVarHeaderParameter = {};
|
|
1882
|
+
const localVarQueryParameter = {};
|
|
1883
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1884
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1886
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1887
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1888
|
+
return {
|
|
1889
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1890
|
+
options: localVarRequestOptions,
|
|
1891
|
+
};
|
|
1892
|
+
}),
|
|
1893
|
+
/**
|
|
1894
|
+
*
|
|
1895
|
+
* @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
|
|
1896
|
+
* @param {PassportAuthEnterpriseChangeEmailRequest} body
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
*/
|
|
1900
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1901
|
+
// verify required parameter 'body' is not null or undefined
|
|
1902
|
+
(0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail', 'body', body);
|
|
1903
|
+
const localVarPath = `/passport/enterprise/authed/v1/email/change`;
|
|
1904
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1905
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1906
|
+
let baseOptions;
|
|
1907
|
+
if (configuration) {
|
|
1908
|
+
baseOptions = configuration.baseOptions;
|
|
1909
|
+
}
|
|
1910
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1911
|
+
const localVarHeaderParameter = {};
|
|
1912
|
+
const localVarQueryParameter = {};
|
|
1913
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1914
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1916
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1917
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1918
|
+
return {
|
|
1919
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1920
|
+
options: localVarRequestOptions,
|
|
1921
|
+
};
|
|
1922
|
+
}),
|
|
1833
1923
|
/**
|
|
1834
1924
|
*
|
|
1835
1925
|
* @summary 已登录用户修改密码
|
|
@@ -2327,7 +2417,7 @@ const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuratio
|
|
|
2327
2417
|
}),
|
|
2328
2418
|
/**
|
|
2329
2419
|
*
|
|
2330
|
-
* @summary 已登录用户验证邮箱
|
|
2420
|
+
* @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
|
|
2331
2421
|
* @param {PassportAuthEnterpriseVerifyEmailRequest} body
|
|
2332
2422
|
* @param {*} [options] Override http request option.
|
|
2333
2423
|
* @throws {RequiredError}
|
|
@@ -2335,7 +2425,7 @@ const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuratio
|
|
|
2335
2425
|
passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
2336
2426
|
// verify required parameter 'body' is not null or undefined
|
|
2337
2427
|
(0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail', 'body', body);
|
|
2338
|
-
const localVarPath = `/passport/enterprise/
|
|
2428
|
+
const localVarPath = `/passport/enterprise/authed/v1/email/verify`;
|
|
2339
2429
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2340
2430
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2341
2431
|
let baseOptions;
|
|
@@ -2357,7 +2447,7 @@ const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuratio
|
|
|
2357
2447
|
}),
|
|
2358
2448
|
/**
|
|
2359
2449
|
*
|
|
2360
|
-
* @summary 已登录用户验证手机号
|
|
2450
|
+
* @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
|
|
2361
2451
|
* @param {string} [phone]
|
|
2362
2452
|
* @param {string} [verifyCode]
|
|
2363
2453
|
* @param {*} [options] Override http request option.
|
|
@@ -2388,6 +2478,36 @@ const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuratio
|
|
|
2388
2478
|
options: localVarRequestOptions,
|
|
2389
2479
|
};
|
|
2390
2480
|
}),
|
|
2481
|
+
/**
|
|
2482
|
+
*
|
|
2483
|
+
* @summary 请求重置密码
|
|
2484
|
+
* @param {PassportEnterprisePasswordResetRequest} body
|
|
2485
|
+
* @param {*} [options] Override http request option.
|
|
2486
|
+
* @throws {RequiredError}
|
|
2487
|
+
*/
|
|
2488
|
+
passportAuthEnterpriseServicePassportEnterprisePasswordReset: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
2489
|
+
// verify required parameter 'body' is not null or undefined
|
|
2490
|
+
(0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportEnterprisePasswordReset', 'body', body);
|
|
2491
|
+
const localVarPath = `/passport/enterprise/auth/v1/password/request-reset`;
|
|
2492
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2493
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2494
|
+
let baseOptions;
|
|
2495
|
+
if (configuration) {
|
|
2496
|
+
baseOptions = configuration.baseOptions;
|
|
2497
|
+
}
|
|
2498
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2499
|
+
const localVarHeaderParameter = {};
|
|
2500
|
+
const localVarQueryParameter = {};
|
|
2501
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2502
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2504
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2505
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2506
|
+
return {
|
|
2507
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2508
|
+
options: localVarRequestOptions,
|
|
2509
|
+
};
|
|
2510
|
+
}),
|
|
2391
2511
|
/**
|
|
2392
2512
|
*
|
|
2393
2513
|
* @summary 登录/注册流程中发送验证码
|
|
@@ -2547,6 +2667,54 @@ exports.PassportAuthEnterpriseServiceApiAxiosParamCreator = PassportAuthEnterpri
|
|
|
2547
2667
|
const PassportAuthEnterpriseServiceApiFp = function (configuration) {
|
|
2548
2668
|
const localVarAxiosParamCreator = (0, exports.PassportAuthEnterpriseServiceApiAxiosParamCreator)(configuration);
|
|
2549
2669
|
return {
|
|
2670
|
+
/**
|
|
2671
|
+
*
|
|
2672
|
+
* @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
|
|
2673
|
+
* @param {PassportAuthEnterpriseBindEmailRequest} body
|
|
2674
|
+
* @param {*} [options] Override http request option.
|
|
2675
|
+
* @throws {RequiredError}
|
|
2676
|
+
*/
|
|
2677
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options) {
|
|
2678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2679
|
+
var _a, _b, _c;
|
|
2680
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(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 = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2683
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2684
|
+
});
|
|
2685
|
+
},
|
|
2686
|
+
/**
|
|
2687
|
+
*
|
|
2688
|
+
* @summary 已登录用户绑定手机号
|
|
2689
|
+
* @param {PassportAuthEnterpriseBindPhoneRequest} body
|
|
2690
|
+
* @param {*} [options] Override http request option.
|
|
2691
|
+
* @throws {RequiredError}
|
|
2692
|
+
*/
|
|
2693
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options) {
|
|
2694
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2695
|
+
var _a, _b, _c;
|
|
2696
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(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 = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2699
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2700
|
+
});
|
|
2701
|
+
},
|
|
2702
|
+
/**
|
|
2703
|
+
*
|
|
2704
|
+
* @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
|
|
2705
|
+
* @param {PassportAuthEnterpriseChangeEmailRequest} body
|
|
2706
|
+
* @param {*} [options] Override http request option.
|
|
2707
|
+
* @throws {RequiredError}
|
|
2708
|
+
*/
|
|
2709
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options) {
|
|
2710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2711
|
+
var _a, _b, _c;
|
|
2712
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options);
|
|
2713
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2714
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2715
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2716
|
+
});
|
|
2717
|
+
},
|
|
2550
2718
|
/**
|
|
2551
2719
|
*
|
|
2552
2720
|
* @summary 已登录用户修改密码
|
|
@@ -2818,7 +2986,7 @@ const PassportAuthEnterpriseServiceApiFp = function (configuration) {
|
|
|
2818
2986
|
},
|
|
2819
2987
|
/**
|
|
2820
2988
|
*
|
|
2821
|
-
* @summary 已登录用户验证邮箱
|
|
2989
|
+
* @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
|
|
2822
2990
|
* @param {PassportAuthEnterpriseVerifyEmailRequest} body
|
|
2823
2991
|
* @param {*} [options] Override http request option.
|
|
2824
2992
|
* @throws {RequiredError}
|
|
@@ -2834,7 +3002,7 @@ const PassportAuthEnterpriseServiceApiFp = function (configuration) {
|
|
|
2834
3002
|
},
|
|
2835
3003
|
/**
|
|
2836
3004
|
*
|
|
2837
|
-
* @summary 已登录用户验证手机号
|
|
3005
|
+
* @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
|
|
2838
3006
|
* @param {string} [phone]
|
|
2839
3007
|
* @param {string} [verifyCode]
|
|
2840
3008
|
* @param {*} [options] Override http request option.
|
|
@@ -2849,6 +3017,22 @@ const PassportAuthEnterpriseServiceApiFp = function (configuration) {
|
|
|
2849
3017
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2850
3018
|
});
|
|
2851
3019
|
},
|
|
3020
|
+
/**
|
|
3021
|
+
*
|
|
3022
|
+
* @summary 请求重置密码
|
|
3023
|
+
* @param {PassportEnterprisePasswordResetRequest} body
|
|
3024
|
+
* @param {*} [options] Override http request option.
|
|
3025
|
+
* @throws {RequiredError}
|
|
3026
|
+
*/
|
|
3027
|
+
passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options) {
|
|
3028
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3029
|
+
var _a, _b, _c;
|
|
3030
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options);
|
|
3031
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3032
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportEnterprisePasswordReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3033
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3034
|
+
});
|
|
3035
|
+
},
|
|
2852
3036
|
/**
|
|
2853
3037
|
*
|
|
2854
3038
|
* @summary 登录/注册流程中发送验证码
|
|
@@ -2938,6 +3122,36 @@ exports.PassportAuthEnterpriseServiceApiFp = PassportAuthEnterpriseServiceApiFp;
|
|
|
2938
3122
|
const PassportAuthEnterpriseServiceApiFactory = function (configuration, basePath, axios) {
|
|
2939
3123
|
const localVarFp = (0, exports.PassportAuthEnterpriseServiceApiFp)(configuration);
|
|
2940
3124
|
return {
|
|
3125
|
+
/**
|
|
3126
|
+
*
|
|
3127
|
+
* @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
|
|
3128
|
+
* @param {PassportAuthEnterpriseBindEmailRequest} body
|
|
3129
|
+
* @param {*} [options] Override http request option.
|
|
3130
|
+
* @throws {RequiredError}
|
|
3131
|
+
*/
|
|
3132
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options) {
|
|
3133
|
+
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options).then((request) => request(axios, basePath));
|
|
3134
|
+
},
|
|
3135
|
+
/**
|
|
3136
|
+
*
|
|
3137
|
+
* @summary 已登录用户绑定手机号
|
|
3138
|
+
* @param {PassportAuthEnterpriseBindPhoneRequest} body
|
|
3139
|
+
* @param {*} [options] Override http request option.
|
|
3140
|
+
* @throws {RequiredError}
|
|
3141
|
+
*/
|
|
3142
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options) {
|
|
3143
|
+
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options).then((request) => request(axios, basePath));
|
|
3144
|
+
},
|
|
3145
|
+
/**
|
|
3146
|
+
*
|
|
3147
|
+
* @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
|
|
3148
|
+
* @param {PassportAuthEnterpriseChangeEmailRequest} body
|
|
3149
|
+
* @param {*} [options] Override http request option.
|
|
3150
|
+
* @throws {RequiredError}
|
|
3151
|
+
*/
|
|
3152
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options) {
|
|
3153
|
+
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options).then((request) => request(axios, basePath));
|
|
3154
|
+
},
|
|
2941
3155
|
/**
|
|
2942
3156
|
*
|
|
2943
3157
|
* @summary 已登录用户修改密码
|
|
@@ -3107,7 +3321,7 @@ const PassportAuthEnterpriseServiceApiFactory = function (configuration, basePat
|
|
|
3107
3321
|
},
|
|
3108
3322
|
/**
|
|
3109
3323
|
*
|
|
3110
|
-
* @summary 已登录用户验证邮箱
|
|
3324
|
+
* @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
|
|
3111
3325
|
* @param {PassportAuthEnterpriseVerifyEmailRequest} body
|
|
3112
3326
|
* @param {*} [options] Override http request option.
|
|
3113
3327
|
* @throws {RequiredError}
|
|
@@ -3117,7 +3331,7 @@ const PassportAuthEnterpriseServiceApiFactory = function (configuration, basePat
|
|
|
3117
3331
|
},
|
|
3118
3332
|
/**
|
|
3119
3333
|
*
|
|
3120
|
-
* @summary 已登录用户验证手机号
|
|
3334
|
+
* @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
|
|
3121
3335
|
* @param {string} [phone]
|
|
3122
3336
|
* @param {string} [verifyCode]
|
|
3123
3337
|
* @param {*} [options] Override http request option.
|
|
@@ -3126,6 +3340,16 @@ const PassportAuthEnterpriseServiceApiFactory = function (configuration, basePat
|
|
|
3126
3340
|
passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options) {
|
|
3127
3341
|
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options).then((request) => request(axios, basePath));
|
|
3128
3342
|
},
|
|
3343
|
+
/**
|
|
3344
|
+
*
|
|
3345
|
+
* @summary 请求重置密码
|
|
3346
|
+
* @param {PassportEnterprisePasswordResetRequest} body
|
|
3347
|
+
* @param {*} [options] Override http request option.
|
|
3348
|
+
* @throws {RequiredError}
|
|
3349
|
+
*/
|
|
3350
|
+
passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options) {
|
|
3351
|
+
return localVarFp.passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options).then((request) => request(axios, basePath));
|
|
3352
|
+
},
|
|
3129
3353
|
/**
|
|
3130
3354
|
*
|
|
3131
3355
|
* @summary 登录/注册流程中发送验证码
|
|
@@ -3183,6 +3407,36 @@ exports.PassportAuthEnterpriseServiceApiFactory = PassportAuthEnterpriseServiceA
|
|
|
3183
3407
|
* PassportAuthEnterpriseServiceApi - object-oriented interface
|
|
3184
3408
|
*/
|
|
3185
3409
|
class PassportAuthEnterpriseServiceApi extends base_1.BaseAPI {
|
|
3410
|
+
/**
|
|
3411
|
+
*
|
|
3412
|
+
* @summary 已登录用户绑定邮箱(未绑定邮箱的用户使用)
|
|
3413
|
+
* @param {PassportAuthEnterpriseBindEmailRequest} body
|
|
3414
|
+
* @param {*} [options] Override http request option.
|
|
3415
|
+
* @throws {RequiredError}
|
|
3416
|
+
*/
|
|
3417
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options) {
|
|
3418
|
+
return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail(body, options).then((request) => request(this.axios, this.basePath));
|
|
3419
|
+
}
|
|
3420
|
+
/**
|
|
3421
|
+
*
|
|
3422
|
+
* @summary 已登录用户绑定手机号
|
|
3423
|
+
* @param {PassportAuthEnterpriseBindPhoneRequest} body
|
|
3424
|
+
* @param {*} [options] Override http request option.
|
|
3425
|
+
* @throws {RequiredError}
|
|
3426
|
+
*/
|
|
3427
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options) {
|
|
3428
|
+
return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone(body, options).then((request) => request(this.axios, this.basePath));
|
|
3429
|
+
}
|
|
3430
|
+
/**
|
|
3431
|
+
*
|
|
3432
|
+
* @summary 已登录用户修改登录邮箱(已绑定邮箱的用户使用)
|
|
3433
|
+
* @param {PassportAuthEnterpriseChangeEmailRequest} body
|
|
3434
|
+
* @param {*} [options] Override http request option.
|
|
3435
|
+
* @throws {RequiredError}
|
|
3436
|
+
*/
|
|
3437
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options) {
|
|
3438
|
+
return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail(body, options).then((request) => request(this.axios, this.basePath));
|
|
3439
|
+
}
|
|
3186
3440
|
/**
|
|
3187
3441
|
*
|
|
3188
3442
|
* @summary 已登录用户修改密码
|
|
@@ -3352,7 +3606,7 @@ class PassportAuthEnterpriseServiceApi extends base_1.BaseAPI {
|
|
|
3352
3606
|
}
|
|
3353
3607
|
/**
|
|
3354
3608
|
*
|
|
3355
|
-
* @summary 已登录用户验证邮箱
|
|
3609
|
+
* @summary 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分)
|
|
3356
3610
|
* @param {PassportAuthEnterpriseVerifyEmailRequest} body
|
|
3357
3611
|
* @param {*} [options] Override http request option.
|
|
3358
3612
|
* @throws {RequiredError}
|
|
@@ -3362,7 +3616,7 @@ class PassportAuthEnterpriseServiceApi extends base_1.BaseAPI {
|
|
|
3362
3616
|
}
|
|
3363
3617
|
/**
|
|
3364
3618
|
*
|
|
3365
|
-
* @summary 已登录用户验证手机号
|
|
3619
|
+
* @summary 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分)
|
|
3366
3620
|
* @param {string} [phone]
|
|
3367
3621
|
* @param {string} [verifyCode]
|
|
3368
3622
|
* @param {*} [options] Override http request option.
|
|
@@ -3371,6 +3625,16 @@ class PassportAuthEnterpriseServiceApi extends base_1.BaseAPI {
|
|
|
3371
3625
|
passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options) {
|
|
3372
3626
|
return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone(phone, verifyCode, options).then((request) => request(this.axios, this.basePath));
|
|
3373
3627
|
}
|
|
3628
|
+
/**
|
|
3629
|
+
*
|
|
3630
|
+
* @summary 请求重置密码
|
|
3631
|
+
* @param {PassportEnterprisePasswordResetRequest} body
|
|
3632
|
+
* @param {*} [options] Override http request option.
|
|
3633
|
+
* @throws {RequiredError}
|
|
3634
|
+
*/
|
|
3635
|
+
passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options) {
|
|
3636
|
+
return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportEnterprisePasswordReset(body, options).then((request) => request(this.axios, this.basePath));
|
|
3637
|
+
}
|
|
3374
3638
|
/**
|
|
3375
3639
|
*
|
|
3376
3640
|
* @summary 登录/注册流程中发送验证码
|