@cherryin/passport-api-client 0.1.32 → 0.1.33

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/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PassportAuthUserServiceApi = exports.PassportAuthUserServiceApiFactory = exports.PassportAuthUserServiceApiFp = exports.PassportAuthUserServiceApiAxiosParamCreator = exports.PassportAuthUserRPCServiceApi = exports.PassportAuthUserRPCServiceApiFactory = exports.PassportAuthUserRPCServiceApiFp = exports.PassportAuthUserRPCServiceApiAxiosParamCreator = exports.PassportAuthEnterpriseServiceApi = exports.PassportAuthEnterpriseServiceApiFactory = exports.PassportAuthEnterpriseServiceApiFp = exports.PassportAuthEnterpriseServiceApiAxiosParamCreator = exports.PassportAuthEnterpriseRPCServiceApi = exports.PassportAuthEnterpriseRPCServiceApiFactory = exports.PassportAuthEnterpriseRPCServiceApiFp = exports.PassportAuthEnterpriseRPCServiceApiAxiosParamCreator = exports.PassportAuthAdminServiceApi = exports.PassportAuthAdminServiceApiFactory = exports.PassportAuthAdminServiceApiFp = exports.PassportAuthAdminServiceApiAxiosParamCreator = exports.PassportAuthAdminRPCServiceApi = exports.PassportAuthAdminRPCServiceApiFactory = exports.PassportAuthAdminRPCServiceApiFp = exports.PassportAuthAdminRPCServiceApiAxiosParamCreator = void 0;
25
+ exports.PassportOrgServiceApi = exports.PassportOrgServiceApiFactory = exports.PassportOrgServiceApiFp = exports.PassportOrgServiceApiAxiosParamCreator = exports.PassportAuthUserServiceApi = exports.PassportAuthUserServiceApiFactory = exports.PassportAuthUserServiceApiFp = exports.PassportAuthUserServiceApiAxiosParamCreator = exports.PassportAuthUserRPCServiceApi = exports.PassportAuthUserRPCServiceApiFactory = exports.PassportAuthUserRPCServiceApiFp = exports.PassportAuthUserRPCServiceApiAxiosParamCreator = exports.PassportAuthEnterpriseServiceApi = exports.PassportAuthEnterpriseServiceApiFactory = exports.PassportAuthEnterpriseServiceApiFp = exports.PassportAuthEnterpriseServiceApiAxiosParamCreator = exports.PassportAuthEnterpriseRPCServiceApi = exports.PassportAuthEnterpriseRPCServiceApiFactory = exports.PassportAuthEnterpriseRPCServiceApiFp = exports.PassportAuthEnterpriseRPCServiceApiAxiosParamCreator = exports.PassportAuthAdminServiceApi = exports.PassportAuthAdminServiceApiFactory = exports.PassportAuthAdminServiceApiFp = exports.PassportAuthAdminServiceApiAxiosParamCreator = exports.PassportAuthAdminRPCServiceApi = exports.PassportAuthAdminRPCServiceApiFactory = exports.PassportAuthAdminRPCServiceApiFp = exports.PassportAuthAdminRPCServiceApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -6530,3 +6530,738 @@ class PassportAuthUserServiceApi extends base_1.BaseAPI {
6530
6530
  }
6531
6531
  }
6532
6532
  exports.PassportAuthUserServiceApi = PassportAuthUserServiceApi;
6533
+ /**
6534
+ * PassportOrgServiceApi - axios parameter creator
6535
+ */
6536
+ const PassportOrgServiceApiAxiosParamCreator = function (configuration) {
6537
+ return {
6538
+ /**
6539
+ *
6540
+ * @summary 创建组织(需要企业认证通过)
6541
+ * @param {PassportOrgCreateRequest} body
6542
+ * @param {*} [options] Override http request option.
6543
+ * @throws {RequiredError}
6544
+ */
6545
+ passportOrgServicePassportOrgCreate: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
6546
+ // verify required parameter 'body' is not null or undefined
6547
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgCreate', 'body', body);
6548
+ const localVarPath = `/passport/enterprise/authed/v1/organizations`;
6549
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6550
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6551
+ let baseOptions;
6552
+ if (configuration) {
6553
+ baseOptions = configuration.baseOptions;
6554
+ }
6555
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6556
+ const localVarHeaderParameter = {};
6557
+ const localVarQueryParameter = {};
6558
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6559
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6560
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6561
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6562
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
6563
+ return {
6564
+ url: (0, common_1.toPathString)(localVarUrlObj),
6565
+ options: localVarRequestOptions,
6566
+ };
6567
+ }),
6568
+ /**
6569
+ *
6570
+ * @summary 删除组织(仅 Owner)
6571
+ * @param {string} oid required: 组织 OID
6572
+ * @param {*} [options] Override http request option.
6573
+ * @throws {RequiredError}
6574
+ */
6575
+ passportOrgServicePassportOrgDelete: (oid_1, ...args_1) => __awaiter(this, [oid_1, ...args_1], void 0, function* (oid, options = {}) {
6576
+ // verify required parameter 'oid' is not null or undefined
6577
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgDelete', 'oid', oid);
6578
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
6579
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
6580
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6581
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6582
+ let baseOptions;
6583
+ if (configuration) {
6584
+ baseOptions = configuration.baseOptions;
6585
+ }
6586
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
6587
+ const localVarHeaderParameter = {};
6588
+ const localVarQueryParameter = {};
6589
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6590
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6591
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6592
+ return {
6593
+ url: (0, common_1.toPathString)(localVarUrlObj),
6594
+ options: localVarRequestOptions,
6595
+ };
6596
+ }),
6597
+ /**
6598
+ *
6599
+ * @summary 获取组织详情(需要是组织成员)
6600
+ * @param {string} oid required: 组织 OID
6601
+ * @param {*} [options] Override http request option.
6602
+ * @throws {RequiredError}
6603
+ */
6604
+ passportOrgServicePassportOrgGet: (oid_1, ...args_1) => __awaiter(this, [oid_1, ...args_1], void 0, function* (oid, options = {}) {
6605
+ // verify required parameter 'oid' is not null or undefined
6606
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgGet', 'oid', oid);
6607
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
6608
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
6609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6610
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6611
+ let baseOptions;
6612
+ if (configuration) {
6613
+ baseOptions = configuration.baseOptions;
6614
+ }
6615
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6616
+ const localVarHeaderParameter = {};
6617
+ const localVarQueryParameter = {};
6618
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6619
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6620
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6621
+ return {
6622
+ url: (0, common_1.toPathString)(localVarUrlObj),
6623
+ options: localVarRequestOptions,
6624
+ };
6625
+ }),
6626
+ /**
6627
+ *
6628
+ * @summary 获取当前用户的组织列表
6629
+ * @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
6630
+ * @param {*} [options] Override http request option.
6631
+ * @throws {RequiredError}
6632
+ */
6633
+ passportOrgServicePassportOrgList: (appName_1, ...args_1) => __awaiter(this, [appName_1, ...args_1], void 0, function* (appName, options = {}) {
6634
+ const localVarPath = `/passport/enterprise/authed/v1/organizations`;
6635
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6636
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6637
+ let baseOptions;
6638
+ if (configuration) {
6639
+ baseOptions = configuration.baseOptions;
6640
+ }
6641
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6642
+ const localVarHeaderParameter = {};
6643
+ const localVarQueryParameter = {};
6644
+ if (appName !== undefined) {
6645
+ localVarQueryParameter['app_name'] = appName;
6646
+ }
6647
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6648
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6649
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6650
+ return {
6651
+ url: (0, common_1.toPathString)(localVarUrlObj),
6652
+ options: localVarRequestOptions,
6653
+ };
6654
+ }),
6655
+ /**
6656
+ *
6657
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
6658
+ * @param {string} oid required: 组织 OID(路径参数)
6659
+ * @param {PassportOrgMemberAddBody} body
6660
+ * @param {*} [options] Override http request option.
6661
+ * @throws {RequiredError}
6662
+ */
6663
+ passportOrgServicePassportOrgMemberAdd: (oid_1, body_1, ...args_1) => __awaiter(this, [oid_1, body_1, ...args_1], void 0, function* (oid, body, options = {}) {
6664
+ // verify required parameter 'oid' is not null or undefined
6665
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberAdd', 'oid', oid);
6666
+ // verify required parameter 'body' is not null or undefined
6667
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberAdd', 'body', body);
6668
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members`
6669
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
6670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6671
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6672
+ let baseOptions;
6673
+ if (configuration) {
6674
+ baseOptions = configuration.baseOptions;
6675
+ }
6676
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6677
+ const localVarHeaderParameter = {};
6678
+ const localVarQueryParameter = {};
6679
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6680
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6681
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6682
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6683
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
6684
+ return {
6685
+ url: (0, common_1.toPathString)(localVarUrlObj),
6686
+ options: localVarRequestOptions,
6687
+ };
6688
+ }),
6689
+ /**
6690
+ *
6691
+ * @summary 变更成员角色(需要比目标角色更高权限)
6692
+ * @param {string} oid required: 组织 OID(路径参数)
6693
+ * @param {string} eid required: 目标成员 EID(路径参数)
6694
+ * @param {PassportOrgMemberChangeRoleBody} body
6695
+ * @param {*} [options] Override http request option.
6696
+ * @throws {RequiredError}
6697
+ */
6698
+ passportOrgServicePassportOrgMemberChangeRole: (oid_1, eid_1, body_1, ...args_1) => __awaiter(this, [oid_1, eid_1, body_1, ...args_1], void 0, function* (oid, eid, body, options = {}) {
6699
+ // verify required parameter 'oid' is not null or undefined
6700
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberChangeRole', 'oid', oid);
6701
+ // verify required parameter 'eid' is not null or undefined
6702
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberChangeRole', 'eid', eid);
6703
+ // verify required parameter 'body' is not null or undefined
6704
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberChangeRole', 'body', body);
6705
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members/{eid}`
6706
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)))
6707
+ .replace(`{${"eid"}}`, encodeURIComponent(String(eid)));
6708
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6709
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6710
+ let baseOptions;
6711
+ if (configuration) {
6712
+ baseOptions = configuration.baseOptions;
6713
+ }
6714
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6715
+ const localVarHeaderParameter = {};
6716
+ const localVarQueryParameter = {};
6717
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6718
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6719
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6720
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6721
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
6722
+ return {
6723
+ url: (0, common_1.toPathString)(localVarUrlObj),
6724
+ options: localVarRequestOptions,
6725
+ };
6726
+ }),
6727
+ /**
6728
+ *
6729
+ * @summary 获取组织成员列表
6730
+ * @param {string} oid required: 组织 OID
6731
+ * @param {string} [page] @gotags: form:\"page\" optional: 页码
6732
+ * @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
6733
+ * @param {*} [options] Override http request option.
6734
+ * @throws {RequiredError}
6735
+ */
6736
+ passportOrgServicePassportOrgMemberList: (oid_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [oid_1, page_1, pageSize_1, ...args_1], void 0, function* (oid, page, pageSize, options = {}) {
6737
+ // verify required parameter 'oid' is not null or undefined
6738
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberList', 'oid', oid);
6739
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members`
6740
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
6741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6742
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6743
+ let baseOptions;
6744
+ if (configuration) {
6745
+ baseOptions = configuration.baseOptions;
6746
+ }
6747
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6748
+ const localVarHeaderParameter = {};
6749
+ const localVarQueryParameter = {};
6750
+ if (page !== undefined) {
6751
+ localVarQueryParameter['page'] = page;
6752
+ }
6753
+ if (pageSize !== undefined) {
6754
+ localVarQueryParameter['page_size'] = pageSize;
6755
+ }
6756
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6758
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6759
+ return {
6760
+ url: (0, common_1.toPathString)(localVarUrlObj),
6761
+ options: localVarRequestOptions,
6762
+ };
6763
+ }),
6764
+ /**
6765
+ *
6766
+ * @summary 移除组织成员(需要 Owner 或 Admin)
6767
+ * @param {string} oid required: 组织 OID(路径参数)
6768
+ * @param {string} eid required: 目标成员 EID(路径参数)
6769
+ * @param {*} [options] Override http request option.
6770
+ * @throws {RequiredError}
6771
+ */
6772
+ passportOrgServicePassportOrgMemberRemove: (oid_1, eid_1, ...args_1) => __awaiter(this, [oid_1, eid_1, ...args_1], void 0, function* (oid, eid, options = {}) {
6773
+ // verify required parameter 'oid' is not null or undefined
6774
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberRemove', 'oid', oid);
6775
+ // verify required parameter 'eid' is not null or undefined
6776
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMemberRemove', 'eid', eid);
6777
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members/{eid}`
6778
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)))
6779
+ .replace(`{${"eid"}}`, encodeURIComponent(String(eid)));
6780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6781
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6782
+ let baseOptions;
6783
+ if (configuration) {
6784
+ baseOptions = configuration.baseOptions;
6785
+ }
6786
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
6787
+ const localVarHeaderParameter = {};
6788
+ const localVarQueryParameter = {};
6789
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6790
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6791
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6792
+ return {
6793
+ url: (0, common_1.toPathString)(localVarUrlObj),
6794
+ options: localVarRequestOptions,
6795
+ };
6796
+ }),
6797
+ /**
6798
+ *
6799
+ * @summary 获取当前用户在指定组织的成员关系
6800
+ * @param {string} oid required: 组织 OID
6801
+ * @param {*} [options] Override http request option.
6802
+ * @throws {RequiredError}
6803
+ */
6804
+ passportOrgServicePassportOrgMembershipGet: (oid_1, ...args_1) => __awaiter(this, [oid_1, ...args_1], void 0, function* (oid, options = {}) {
6805
+ // verify required parameter 'oid' is not null or undefined
6806
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgMembershipGet', 'oid', oid);
6807
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/membership`
6808
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
6809
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6810
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6811
+ let baseOptions;
6812
+ if (configuration) {
6813
+ baseOptions = configuration.baseOptions;
6814
+ }
6815
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6816
+ const localVarHeaderParameter = {};
6817
+ const localVarQueryParameter = {};
6818
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6819
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6820
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6821
+ return {
6822
+ url: (0, common_1.toPathString)(localVarUrlObj),
6823
+ options: localVarRequestOptions,
6824
+ };
6825
+ }),
6826
+ /**
6827
+ *
6828
+ * @summary 更新组织信息(需要 Owner 或 Admin)
6829
+ * @param {string} oid required: 组织 OID(路径参数)
6830
+ * @param {PassportOrgUpdateBody} body
6831
+ * @param {*} [options] Override http request option.
6832
+ * @throws {RequiredError}
6833
+ */
6834
+ passportOrgServicePassportOrgUpdate: (oid_1, body_1, ...args_1) => __awaiter(this, [oid_1, body_1, ...args_1], void 0, function* (oid, body, options = {}) {
6835
+ // verify required parameter 'oid' is not null or undefined
6836
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgUpdate', 'oid', oid);
6837
+ // verify required parameter 'body' is not null or undefined
6838
+ (0, common_1.assertParamExists)('passportOrgServicePassportOrgUpdate', 'body', body);
6839
+ const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
6840
+ .replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
6841
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6842
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6843
+ let baseOptions;
6844
+ if (configuration) {
6845
+ baseOptions = configuration.baseOptions;
6846
+ }
6847
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6848
+ const localVarHeaderParameter = {};
6849
+ const localVarQueryParameter = {};
6850
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6851
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6853
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6854
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
6855
+ return {
6856
+ url: (0, common_1.toPathString)(localVarUrlObj),
6857
+ options: localVarRequestOptions,
6858
+ };
6859
+ }),
6860
+ };
6861
+ };
6862
+ exports.PassportOrgServiceApiAxiosParamCreator = PassportOrgServiceApiAxiosParamCreator;
6863
+ /**
6864
+ * PassportOrgServiceApi - functional programming interface
6865
+ */
6866
+ const PassportOrgServiceApiFp = function (configuration) {
6867
+ const localVarAxiosParamCreator = (0, exports.PassportOrgServiceApiAxiosParamCreator)(configuration);
6868
+ return {
6869
+ /**
6870
+ *
6871
+ * @summary 创建组织(需要企业认证通过)
6872
+ * @param {PassportOrgCreateRequest} body
6873
+ * @param {*} [options] Override http request option.
6874
+ * @throws {RequiredError}
6875
+ */
6876
+ passportOrgServicePassportOrgCreate(body, options) {
6877
+ return __awaiter(this, void 0, void 0, function* () {
6878
+ var _a, _b, _c;
6879
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgCreate(body, options);
6880
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6881
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6882
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6883
+ });
6884
+ },
6885
+ /**
6886
+ *
6887
+ * @summary 删除组织(仅 Owner)
6888
+ * @param {string} oid required: 组织 OID
6889
+ * @param {*} [options] Override http request option.
6890
+ * @throws {RequiredError}
6891
+ */
6892
+ passportOrgServicePassportOrgDelete(oid, options) {
6893
+ return __awaiter(this, void 0, void 0, function* () {
6894
+ var _a, _b, _c;
6895
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgDelete(oid, options);
6896
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6897
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6898
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6899
+ });
6900
+ },
6901
+ /**
6902
+ *
6903
+ * @summary 获取组织详情(需要是组织成员)
6904
+ * @param {string} oid required: 组织 OID
6905
+ * @param {*} [options] Override http request option.
6906
+ * @throws {RequiredError}
6907
+ */
6908
+ passportOrgServicePassportOrgGet(oid, options) {
6909
+ return __awaiter(this, void 0, void 0, function* () {
6910
+ var _a, _b, _c;
6911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgGet(oid, options);
6912
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6913
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6914
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6915
+ });
6916
+ },
6917
+ /**
6918
+ *
6919
+ * @summary 获取当前用户的组织列表
6920
+ * @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
6921
+ * @param {*} [options] Override http request option.
6922
+ * @throws {RequiredError}
6923
+ */
6924
+ passportOrgServicePassportOrgList(appName, options) {
6925
+ return __awaiter(this, void 0, void 0, function* () {
6926
+ var _a, _b, _c;
6927
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgList(appName, options);
6928
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6929
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6930
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6931
+ });
6932
+ },
6933
+ /**
6934
+ *
6935
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
6936
+ * @param {string} oid required: 组织 OID(路径参数)
6937
+ * @param {PassportOrgMemberAddBody} body
6938
+ * @param {*} [options] Override http request option.
6939
+ * @throws {RequiredError}
6940
+ */
6941
+ passportOrgServicePassportOrgMemberAdd(oid, body, options) {
6942
+ return __awaiter(this, void 0, void 0, function* () {
6943
+ var _a, _b, _c;
6944
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberAdd(oid, body, options);
6945
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6946
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberAdd']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6947
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6948
+ });
6949
+ },
6950
+ /**
6951
+ *
6952
+ * @summary 变更成员角色(需要比目标角色更高权限)
6953
+ * @param {string} oid required: 组织 OID(路径参数)
6954
+ * @param {string} eid required: 目标成员 EID(路径参数)
6955
+ * @param {PassportOrgMemberChangeRoleBody} body
6956
+ * @param {*} [options] Override http request option.
6957
+ * @throws {RequiredError}
6958
+ */
6959
+ passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options) {
6960
+ return __awaiter(this, void 0, void 0, function* () {
6961
+ var _a, _b, _c;
6962
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options);
6963
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6964
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberChangeRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6965
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6966
+ });
6967
+ },
6968
+ /**
6969
+ *
6970
+ * @summary 获取组织成员列表
6971
+ * @param {string} oid required: 组织 OID
6972
+ * @param {string} [page] @gotags: form:\"page\" optional: 页码
6973
+ * @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
6974
+ * @param {*} [options] Override http request option.
6975
+ * @throws {RequiredError}
6976
+ */
6977
+ passportOrgServicePassportOrgMemberList(oid, page, pageSize, options) {
6978
+ return __awaiter(this, void 0, void 0, function* () {
6979
+ var _a, _b, _c;
6980
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberList(oid, page, pageSize, options);
6981
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6982
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6983
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6984
+ });
6985
+ },
6986
+ /**
6987
+ *
6988
+ * @summary 移除组织成员(需要 Owner 或 Admin)
6989
+ * @param {string} oid required: 组织 OID(路径参数)
6990
+ * @param {string} eid required: 目标成员 EID(路径参数)
6991
+ * @param {*} [options] Override http request option.
6992
+ * @throws {RequiredError}
6993
+ */
6994
+ passportOrgServicePassportOrgMemberRemove(oid, eid, options) {
6995
+ return __awaiter(this, void 0, void 0, function* () {
6996
+ var _a, _b, _c;
6997
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberRemove(oid, eid, options);
6998
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6999
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberRemove']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7000
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7001
+ });
7002
+ },
7003
+ /**
7004
+ *
7005
+ * @summary 获取当前用户在指定组织的成员关系
7006
+ * @param {string} oid required: 组织 OID
7007
+ * @param {*} [options] Override http request option.
7008
+ * @throws {RequiredError}
7009
+ */
7010
+ passportOrgServicePassportOrgMembershipGet(oid, options) {
7011
+ return __awaiter(this, void 0, void 0, function* () {
7012
+ var _a, _b, _c;
7013
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMembershipGet(oid, options);
7014
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7015
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMembershipGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7016
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7017
+ });
7018
+ },
7019
+ /**
7020
+ *
7021
+ * @summary 更新组织信息(需要 Owner 或 Admin)
7022
+ * @param {string} oid required: 组织 OID(路径参数)
7023
+ * @param {PassportOrgUpdateBody} body
7024
+ * @param {*} [options] Override http request option.
7025
+ * @throws {RequiredError}
7026
+ */
7027
+ passportOrgServicePassportOrgUpdate(oid, body, options) {
7028
+ return __awaiter(this, void 0, void 0, function* () {
7029
+ var _a, _b, _c;
7030
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgUpdate(oid, body, options);
7031
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7032
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7033
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7034
+ });
7035
+ },
7036
+ };
7037
+ };
7038
+ exports.PassportOrgServiceApiFp = PassportOrgServiceApiFp;
7039
+ /**
7040
+ * PassportOrgServiceApi - factory interface
7041
+ */
7042
+ const PassportOrgServiceApiFactory = function (configuration, basePath, axios) {
7043
+ const localVarFp = (0, exports.PassportOrgServiceApiFp)(configuration);
7044
+ return {
7045
+ /**
7046
+ *
7047
+ * @summary 创建组织(需要企业认证通过)
7048
+ * @param {PassportOrgCreateRequest} body
7049
+ * @param {*} [options] Override http request option.
7050
+ * @throws {RequiredError}
7051
+ */
7052
+ passportOrgServicePassportOrgCreate(body, options) {
7053
+ return localVarFp.passportOrgServicePassportOrgCreate(body, options).then((request) => request(axios, basePath));
7054
+ },
7055
+ /**
7056
+ *
7057
+ * @summary 删除组织(仅 Owner)
7058
+ * @param {string} oid required: 组织 OID
7059
+ * @param {*} [options] Override http request option.
7060
+ * @throws {RequiredError}
7061
+ */
7062
+ passportOrgServicePassportOrgDelete(oid, options) {
7063
+ return localVarFp.passportOrgServicePassportOrgDelete(oid, options).then((request) => request(axios, basePath));
7064
+ },
7065
+ /**
7066
+ *
7067
+ * @summary 获取组织详情(需要是组织成员)
7068
+ * @param {string} oid required: 组织 OID
7069
+ * @param {*} [options] Override http request option.
7070
+ * @throws {RequiredError}
7071
+ */
7072
+ passportOrgServicePassportOrgGet(oid, options) {
7073
+ return localVarFp.passportOrgServicePassportOrgGet(oid, options).then((request) => request(axios, basePath));
7074
+ },
7075
+ /**
7076
+ *
7077
+ * @summary 获取当前用户的组织列表
7078
+ * @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
7079
+ * @param {*} [options] Override http request option.
7080
+ * @throws {RequiredError}
7081
+ */
7082
+ passportOrgServicePassportOrgList(appName, options) {
7083
+ return localVarFp.passportOrgServicePassportOrgList(appName, options).then((request) => request(axios, basePath));
7084
+ },
7085
+ /**
7086
+ *
7087
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
7088
+ * @param {string} oid required: 组织 OID(路径参数)
7089
+ * @param {PassportOrgMemberAddBody} body
7090
+ * @param {*} [options] Override http request option.
7091
+ * @throws {RequiredError}
7092
+ */
7093
+ passportOrgServicePassportOrgMemberAdd(oid, body, options) {
7094
+ return localVarFp.passportOrgServicePassportOrgMemberAdd(oid, body, options).then((request) => request(axios, basePath));
7095
+ },
7096
+ /**
7097
+ *
7098
+ * @summary 变更成员角色(需要比目标角色更高权限)
7099
+ * @param {string} oid required: 组织 OID(路径参数)
7100
+ * @param {string} eid required: 目标成员 EID(路径参数)
7101
+ * @param {PassportOrgMemberChangeRoleBody} body
7102
+ * @param {*} [options] Override http request option.
7103
+ * @throws {RequiredError}
7104
+ */
7105
+ passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options) {
7106
+ return localVarFp.passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options).then((request) => request(axios, basePath));
7107
+ },
7108
+ /**
7109
+ *
7110
+ * @summary 获取组织成员列表
7111
+ * @param {string} oid required: 组织 OID
7112
+ * @param {string} [page] @gotags: form:\"page\" optional: 页码
7113
+ * @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
7114
+ * @param {*} [options] Override http request option.
7115
+ * @throws {RequiredError}
7116
+ */
7117
+ passportOrgServicePassportOrgMemberList(oid, page, pageSize, options) {
7118
+ return localVarFp.passportOrgServicePassportOrgMemberList(oid, page, pageSize, options).then((request) => request(axios, basePath));
7119
+ },
7120
+ /**
7121
+ *
7122
+ * @summary 移除组织成员(需要 Owner 或 Admin)
7123
+ * @param {string} oid required: 组织 OID(路径参数)
7124
+ * @param {string} eid required: 目标成员 EID(路径参数)
7125
+ * @param {*} [options] Override http request option.
7126
+ * @throws {RequiredError}
7127
+ */
7128
+ passportOrgServicePassportOrgMemberRemove(oid, eid, options) {
7129
+ return localVarFp.passportOrgServicePassportOrgMemberRemove(oid, eid, options).then((request) => request(axios, basePath));
7130
+ },
7131
+ /**
7132
+ *
7133
+ * @summary 获取当前用户在指定组织的成员关系
7134
+ * @param {string} oid required: 组织 OID
7135
+ * @param {*} [options] Override http request option.
7136
+ * @throws {RequiredError}
7137
+ */
7138
+ passportOrgServicePassportOrgMembershipGet(oid, options) {
7139
+ return localVarFp.passportOrgServicePassportOrgMembershipGet(oid, options).then((request) => request(axios, basePath));
7140
+ },
7141
+ /**
7142
+ *
7143
+ * @summary 更新组织信息(需要 Owner 或 Admin)
7144
+ * @param {string} oid required: 组织 OID(路径参数)
7145
+ * @param {PassportOrgUpdateBody} body
7146
+ * @param {*} [options] Override http request option.
7147
+ * @throws {RequiredError}
7148
+ */
7149
+ passportOrgServicePassportOrgUpdate(oid, body, options) {
7150
+ return localVarFp.passportOrgServicePassportOrgUpdate(oid, body, options).then((request) => request(axios, basePath));
7151
+ },
7152
+ };
7153
+ };
7154
+ exports.PassportOrgServiceApiFactory = PassportOrgServiceApiFactory;
7155
+ /**
7156
+ * PassportOrgServiceApi - object-oriented interface
7157
+ */
7158
+ class PassportOrgServiceApi extends base_1.BaseAPI {
7159
+ /**
7160
+ *
7161
+ * @summary 创建组织(需要企业认证通过)
7162
+ * @param {PassportOrgCreateRequest} body
7163
+ * @param {*} [options] Override http request option.
7164
+ * @throws {RequiredError}
7165
+ */
7166
+ passportOrgServicePassportOrgCreate(body, options) {
7167
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgCreate(body, options).then((request) => request(this.axios, this.basePath));
7168
+ }
7169
+ /**
7170
+ *
7171
+ * @summary 删除组织(仅 Owner)
7172
+ * @param {string} oid required: 组织 OID
7173
+ * @param {*} [options] Override http request option.
7174
+ * @throws {RequiredError}
7175
+ */
7176
+ passportOrgServicePassportOrgDelete(oid, options) {
7177
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgDelete(oid, options).then((request) => request(this.axios, this.basePath));
7178
+ }
7179
+ /**
7180
+ *
7181
+ * @summary 获取组织详情(需要是组织成员)
7182
+ * @param {string} oid required: 组织 OID
7183
+ * @param {*} [options] Override http request option.
7184
+ * @throws {RequiredError}
7185
+ */
7186
+ passportOrgServicePassportOrgGet(oid, options) {
7187
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgGet(oid, options).then((request) => request(this.axios, this.basePath));
7188
+ }
7189
+ /**
7190
+ *
7191
+ * @summary 获取当前用户的组织列表
7192
+ * @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
7193
+ * @param {*} [options] Override http request option.
7194
+ * @throws {RequiredError}
7195
+ */
7196
+ passportOrgServicePassportOrgList(appName, options) {
7197
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgList(appName, options).then((request) => request(this.axios, this.basePath));
7198
+ }
7199
+ /**
7200
+ *
7201
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
7202
+ * @param {string} oid required: 组织 OID(路径参数)
7203
+ * @param {PassportOrgMemberAddBody} body
7204
+ * @param {*} [options] Override http request option.
7205
+ * @throws {RequiredError}
7206
+ */
7207
+ passportOrgServicePassportOrgMemberAdd(oid, body, options) {
7208
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgMemberAdd(oid, body, options).then((request) => request(this.axios, this.basePath));
7209
+ }
7210
+ /**
7211
+ *
7212
+ * @summary 变更成员角色(需要比目标角色更高权限)
7213
+ * @param {string} oid required: 组织 OID(路径参数)
7214
+ * @param {string} eid required: 目标成员 EID(路径参数)
7215
+ * @param {PassportOrgMemberChangeRoleBody} body
7216
+ * @param {*} [options] Override http request option.
7217
+ * @throws {RequiredError}
7218
+ */
7219
+ passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options) {
7220
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options).then((request) => request(this.axios, this.basePath));
7221
+ }
7222
+ /**
7223
+ *
7224
+ * @summary 获取组织成员列表
7225
+ * @param {string} oid required: 组织 OID
7226
+ * @param {string} [page] @gotags: form:\"page\" optional: 页码
7227
+ * @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
7228
+ * @param {*} [options] Override http request option.
7229
+ * @throws {RequiredError}
7230
+ */
7231
+ passportOrgServicePassportOrgMemberList(oid, page, pageSize, options) {
7232
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgMemberList(oid, page, pageSize, options).then((request) => request(this.axios, this.basePath));
7233
+ }
7234
+ /**
7235
+ *
7236
+ * @summary 移除组织成员(需要 Owner 或 Admin)
7237
+ * @param {string} oid required: 组织 OID(路径参数)
7238
+ * @param {string} eid required: 目标成员 EID(路径参数)
7239
+ * @param {*} [options] Override http request option.
7240
+ * @throws {RequiredError}
7241
+ */
7242
+ passportOrgServicePassportOrgMemberRemove(oid, eid, options) {
7243
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgMemberRemove(oid, eid, options).then((request) => request(this.axios, this.basePath));
7244
+ }
7245
+ /**
7246
+ *
7247
+ * @summary 获取当前用户在指定组织的成员关系
7248
+ * @param {string} oid required: 组织 OID
7249
+ * @param {*} [options] Override http request option.
7250
+ * @throws {RequiredError}
7251
+ */
7252
+ passportOrgServicePassportOrgMembershipGet(oid, options) {
7253
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgMembershipGet(oid, options).then((request) => request(this.axios, this.basePath));
7254
+ }
7255
+ /**
7256
+ *
7257
+ * @summary 更新组织信息(需要 Owner 或 Admin)
7258
+ * @param {string} oid required: 组织 OID(路径参数)
7259
+ * @param {PassportOrgUpdateBody} body
7260
+ * @param {*} [options] Override http request option.
7261
+ * @throws {RequiredError}
7262
+ */
7263
+ passportOrgServicePassportOrgUpdate(oid, body, options) {
7264
+ return (0, exports.PassportOrgServiceApiFp)(this.configuration).passportOrgServicePassportOrgUpdate(oid, body, options).then((request) => request(this.axios, this.basePath));
7265
+ }
7266
+ }
7267
+ exports.PassportOrgServiceApi = PassportOrgServiceApi;