@cherryin/passport-api-client 0.1.31 → 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.d.ts CHANGED
@@ -228,6 +228,13 @@ export interface EnterpriseOCRPersonIDCardWarning {
228
228
  [key: string]: number;
229
229
  };
230
230
  }
231
+ export interface EnterpriseOrgMembership {
232
+ 'oid'?: string;
233
+ 'org_name'?: string;
234
+ 'app_name'?: string;
235
+ 'org_status'?: number;
236
+ 'member_role'?: number;
237
+ }
231
238
  export interface GeeTestAuthCaptcha {
232
239
  'captcha_id'?: string;
233
240
  'lot_number'?: string;
@@ -235,6 +242,33 @@ export interface GeeTestAuthCaptcha {
235
242
  'pass_token'?: string;
236
243
  'gen_time'?: string;
237
244
  }
245
+ export interface OrgInfo {
246
+ 'oid'?: string;
247
+ 'aid'?: string;
248
+ 'eid'?: string;
249
+ 'app_name'?: string;
250
+ 'display_name'?: string;
251
+ 'description'?: string;
252
+ 'avatar_url'?: string;
253
+ 'org_status'?: number;
254
+ 'member_count'?: string;
255
+ 'member_role'?: number;
256
+ 'created_at'?: string;
257
+ 'updated_at'?: string;
258
+ }
259
+ export interface OrgMemberInfo {
260
+ 'oid'?: string;
261
+ 'eid'?: string;
262
+ 'aid'?: string;
263
+ 'member_role'?: number;
264
+ 'added_by'?: string;
265
+ 'joined_at'?: string;
266
+ 'display_name'?: string;
267
+ 'email'?: string;
268
+ 'phone'?: string;
269
+ 'avatar_url'?: string;
270
+ 'created_at'?: string;
271
+ }
238
272
  export interface PassportAdminPasswordForgetRequest {
239
273
  'email'?: string;
240
274
  'callback_url'?: string;
@@ -969,6 +1003,76 @@ export interface PassportEnterpriseTokenAuthResponse {
969
1003
  'is_valid'?: boolean;
970
1004
  'session'?: AuthEnterpriseSession;
971
1005
  'user'?: AuthEnterpriseUser;
1006
+ 'organizations'?: Array<EnterpriseOrgMembership>;
1007
+ }
1008
+ export interface PassportOrgCreateRequest {
1009
+ 'app_name'?: string;
1010
+ 'display_name'?: string;
1011
+ 'description'?: string;
1012
+ }
1013
+ export interface PassportOrgCreateResponse {
1014
+ 'code'?: string;
1015
+ 'message'?: string;
1016
+ 'org'?: OrgInfo;
1017
+ 'member'?: OrgMemberInfo;
1018
+ }
1019
+ export interface PassportOrgDeleteResponse {
1020
+ 'code'?: string;
1021
+ 'message'?: string;
1022
+ }
1023
+ export interface PassportOrgGetResponse {
1024
+ 'code'?: string;
1025
+ 'message'?: string;
1026
+ 'org'?: OrgInfo;
1027
+ 'member'?: OrgMemberInfo;
1028
+ }
1029
+ export interface PassportOrgListResponse {
1030
+ 'code'?: string;
1031
+ 'message'?: string;
1032
+ 'orgs'?: Array<OrgInfo>;
1033
+ }
1034
+ export interface PassportOrgMemberAddBody {
1035
+ 'eid'?: string;
1036
+ 'role'?: number;
1037
+ 'email'?: string;
1038
+ 'phone'?: string;
1039
+ }
1040
+ export interface PassportOrgMemberAddResponse {
1041
+ 'code'?: string;
1042
+ 'message'?: string;
1043
+ 'member'?: OrgMemberInfo;
1044
+ }
1045
+ export interface PassportOrgMemberChangeRoleBody {
1046
+ 'role'?: number;
1047
+ }
1048
+ export interface PassportOrgMemberChangeRoleResponse {
1049
+ 'code'?: string;
1050
+ 'message'?: string;
1051
+ }
1052
+ export interface PassportOrgMemberListResponse {
1053
+ 'code'?: string;
1054
+ 'message'?: string;
1055
+ 'members'?: Array<OrgMemberInfo>;
1056
+ 'total'?: string;
1057
+ }
1058
+ export interface PassportOrgMemberRemoveResponse {
1059
+ 'code'?: string;
1060
+ 'message'?: string;
1061
+ }
1062
+ export interface PassportOrgMembershipGetResponse {
1063
+ 'code'?: string;
1064
+ 'message'?: string;
1065
+ 'org'?: OrgInfo;
1066
+ 'member'?: OrgMemberInfo;
1067
+ }
1068
+ export interface PassportOrgUpdateBody {
1069
+ 'display_name'?: string;
1070
+ 'description'?: string;
1071
+ 'avatar_url'?: string;
1072
+ }
1073
+ export interface PassportOrgUpdateResponse {
1074
+ 'code'?: string;
1075
+ 'message'?: string;
972
1076
  }
973
1077
  export interface PassportSendVerificationEmailRequest {
974
1078
  'app_ids'?: string;
@@ -5204,3 +5308,463 @@ export declare class PassportAuthUserServiceApi extends BaseAPI implements Passp
5204
5308
  */
5205
5309
  passportAuthUserServicePassportUserSignUpEmail(body: PassportUserSignUpEmailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserSignUpEmailResponse, any, {}>>;
5206
5310
  }
5311
+ /**
5312
+ * PassportOrgServiceApi - axios parameter creator
5313
+ */
5314
+ export declare const PassportOrgServiceApiAxiosParamCreator: (configuration?: Configuration) => {
5315
+ /**
5316
+ *
5317
+ * @summary 创建组织(需要企业认证通过)
5318
+ * @param {PassportOrgCreateRequest} body
5319
+ * @param {*} [options] Override http request option.
5320
+ * @throws {RequiredError}
5321
+ */
5322
+ passportOrgServicePassportOrgCreate: (body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5323
+ /**
5324
+ *
5325
+ * @summary 删除组织(仅 Owner)
5326
+ * @param {string} oid required: 组织 OID
5327
+ * @param {*} [options] Override http request option.
5328
+ * @throws {RequiredError}
5329
+ */
5330
+ passportOrgServicePassportOrgDelete: (oid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5331
+ /**
5332
+ *
5333
+ * @summary 获取组织详情(需要是组织成员)
5334
+ * @param {string} oid required: 组织 OID
5335
+ * @param {*} [options] Override http request option.
5336
+ * @throws {RequiredError}
5337
+ */
5338
+ passportOrgServicePassportOrgGet: (oid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5339
+ /**
5340
+ *
5341
+ * @summary 获取当前用户的组织列表
5342
+ * @param {string} [appName] @gotags: form:\&quot;app_name\&quot; optional: 按应用名称过滤
5343
+ * @param {*} [options] Override http request option.
5344
+ * @throws {RequiredError}
5345
+ */
5346
+ passportOrgServicePassportOrgList: (appName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5347
+ /**
5348
+ *
5349
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
5350
+ * @param {string} oid required: 组织 OID(路径参数)
5351
+ * @param {PassportOrgMemberAddBody} body
5352
+ * @param {*} [options] Override http request option.
5353
+ * @throws {RequiredError}
5354
+ */
5355
+ passportOrgServicePassportOrgMemberAdd: (oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5356
+ /**
5357
+ *
5358
+ * @summary 变更成员角色(需要比目标角色更高权限)
5359
+ * @param {string} oid required: 组织 OID(路径参数)
5360
+ * @param {string} eid required: 目标成员 EID(路径参数)
5361
+ * @param {PassportOrgMemberChangeRoleBody} body
5362
+ * @param {*} [options] Override http request option.
5363
+ * @throws {RequiredError}
5364
+ */
5365
+ passportOrgServicePassportOrgMemberChangeRole: (oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5366
+ /**
5367
+ *
5368
+ * @summary 获取组织成员列表
5369
+ * @param {string} oid required: 组织 OID
5370
+ * @param {string} [page] @gotags: form:\&quot;page\&quot; optional: 页码
5371
+ * @param {string} [pageSize] @gotags: form:\&quot;page_size\&quot; optional: 每页数量
5372
+ * @param {*} [options] Override http request option.
5373
+ * @throws {RequiredError}
5374
+ */
5375
+ passportOrgServicePassportOrgMemberList: (oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5376
+ /**
5377
+ *
5378
+ * @summary 移除组织成员(需要 Owner 或 Admin)
5379
+ * @param {string} oid required: 组织 OID(路径参数)
5380
+ * @param {string} eid required: 目标成员 EID(路径参数)
5381
+ * @param {*} [options] Override http request option.
5382
+ * @throws {RequiredError}
5383
+ */
5384
+ passportOrgServicePassportOrgMemberRemove: (oid: string, eid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5385
+ /**
5386
+ *
5387
+ * @summary 获取当前用户在指定组织的成员关系
5388
+ * @param {string} oid required: 组织 OID
5389
+ * @param {*} [options] Override http request option.
5390
+ * @throws {RequiredError}
5391
+ */
5392
+ passportOrgServicePassportOrgMembershipGet: (oid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5393
+ /**
5394
+ *
5395
+ * @summary 更新组织信息(需要 Owner 或 Admin)
5396
+ * @param {string} oid required: 组织 OID(路径参数)
5397
+ * @param {PassportOrgUpdateBody} body
5398
+ * @param {*} [options] Override http request option.
5399
+ * @throws {RequiredError}
5400
+ */
5401
+ passportOrgServicePassportOrgUpdate: (oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5402
+ };
5403
+ /**
5404
+ * PassportOrgServiceApi - functional programming interface
5405
+ */
5406
+ export declare const PassportOrgServiceApiFp: (configuration?: Configuration) => {
5407
+ /**
5408
+ *
5409
+ * @summary 创建组织(需要企业认证通过)
5410
+ * @param {PassportOrgCreateRequest} body
5411
+ * @param {*} [options] Override http request option.
5412
+ * @throws {RequiredError}
5413
+ */
5414
+ passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgCreateResponse>>;
5415
+ /**
5416
+ *
5417
+ * @summary 删除组织(仅 Owner)
5418
+ * @param {string} oid required: 组织 OID
5419
+ * @param {*} [options] Override http request option.
5420
+ * @throws {RequiredError}
5421
+ */
5422
+ passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgDeleteResponse>>;
5423
+ /**
5424
+ *
5425
+ * @summary 获取组织详情(需要是组织成员)
5426
+ * @param {string} oid required: 组织 OID
5427
+ * @param {*} [options] Override http request option.
5428
+ * @throws {RequiredError}
5429
+ */
5430
+ passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgGetResponse>>;
5431
+ /**
5432
+ *
5433
+ * @summary 获取当前用户的组织列表
5434
+ * @param {string} [appName] @gotags: form:\&quot;app_name\&quot; optional: 按应用名称过滤
5435
+ * @param {*} [options] Override http request option.
5436
+ * @throws {RequiredError}
5437
+ */
5438
+ passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgListResponse>>;
5439
+ /**
5440
+ *
5441
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
5442
+ * @param {string} oid required: 组织 OID(路径参数)
5443
+ * @param {PassportOrgMemberAddBody} body
5444
+ * @param {*} [options] Override http request option.
5445
+ * @throws {RequiredError}
5446
+ */
5447
+ passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberAddResponse>>;
5448
+ /**
5449
+ *
5450
+ * @summary 变更成员角色(需要比目标角色更高权限)
5451
+ * @param {string} oid required: 组织 OID(路径参数)
5452
+ * @param {string} eid required: 目标成员 EID(路径参数)
5453
+ * @param {PassportOrgMemberChangeRoleBody} body
5454
+ * @param {*} [options] Override http request option.
5455
+ * @throws {RequiredError}
5456
+ */
5457
+ passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberChangeRoleResponse>>;
5458
+ /**
5459
+ *
5460
+ * @summary 获取组织成员列表
5461
+ * @param {string} oid required: 组织 OID
5462
+ * @param {string} [page] @gotags: form:\&quot;page\&quot; optional: 页码
5463
+ * @param {string} [pageSize] @gotags: form:\&quot;page_size\&quot; optional: 每页数量
5464
+ * @param {*} [options] Override http request option.
5465
+ * @throws {RequiredError}
5466
+ */
5467
+ passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberListResponse>>;
5468
+ /**
5469
+ *
5470
+ * @summary 移除组织成员(需要 Owner 或 Admin)
5471
+ * @param {string} oid required: 组织 OID(路径参数)
5472
+ * @param {string} eid required: 目标成员 EID(路径参数)
5473
+ * @param {*} [options] Override http request option.
5474
+ * @throws {RequiredError}
5475
+ */
5476
+ passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberRemoveResponse>>;
5477
+ /**
5478
+ *
5479
+ * @summary 获取当前用户在指定组织的成员关系
5480
+ * @param {string} oid required: 组织 OID
5481
+ * @param {*} [options] Override http request option.
5482
+ * @throws {RequiredError}
5483
+ */
5484
+ passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMembershipGetResponse>>;
5485
+ /**
5486
+ *
5487
+ * @summary 更新组织信息(需要 Owner 或 Admin)
5488
+ * @param {string} oid required: 组织 OID(路径参数)
5489
+ * @param {PassportOrgUpdateBody} body
5490
+ * @param {*} [options] Override http request option.
5491
+ * @throws {RequiredError}
5492
+ */
5493
+ passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgUpdateResponse>>;
5494
+ };
5495
+ /**
5496
+ * PassportOrgServiceApi - factory interface
5497
+ */
5498
+ export declare const PassportOrgServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5499
+ /**
5500
+ *
5501
+ * @summary 创建组织(需要企业认证通过)
5502
+ * @param {PassportOrgCreateRequest} body
5503
+ * @param {*} [options] Override http request option.
5504
+ * @throws {RequiredError}
5505
+ */
5506
+ passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgCreateResponse>;
5507
+ /**
5508
+ *
5509
+ * @summary 删除组织(仅 Owner)
5510
+ * @param {string} oid required: 组织 OID
5511
+ * @param {*} [options] Override http request option.
5512
+ * @throws {RequiredError}
5513
+ */
5514
+ passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgDeleteResponse>;
5515
+ /**
5516
+ *
5517
+ * @summary 获取组织详情(需要是组织成员)
5518
+ * @param {string} oid required: 组织 OID
5519
+ * @param {*} [options] Override http request option.
5520
+ * @throws {RequiredError}
5521
+ */
5522
+ passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgGetResponse>;
5523
+ /**
5524
+ *
5525
+ * @summary 获取当前用户的组织列表
5526
+ * @param {string} [appName] @gotags: form:\&quot;app_name\&quot; optional: 按应用名称过滤
5527
+ * @param {*} [options] Override http request option.
5528
+ * @throws {RequiredError}
5529
+ */
5530
+ passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgListResponse>;
5531
+ /**
5532
+ *
5533
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
5534
+ * @param {string} oid required: 组织 OID(路径参数)
5535
+ * @param {PassportOrgMemberAddBody} body
5536
+ * @param {*} [options] Override http request option.
5537
+ * @throws {RequiredError}
5538
+ */
5539
+ passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberAddResponse>;
5540
+ /**
5541
+ *
5542
+ * @summary 变更成员角色(需要比目标角色更高权限)
5543
+ * @param {string} oid required: 组织 OID(路径参数)
5544
+ * @param {string} eid required: 目标成员 EID(路径参数)
5545
+ * @param {PassportOrgMemberChangeRoleBody} body
5546
+ * @param {*} [options] Override http request option.
5547
+ * @throws {RequiredError}
5548
+ */
5549
+ passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberChangeRoleResponse>;
5550
+ /**
5551
+ *
5552
+ * @summary 获取组织成员列表
5553
+ * @param {string} oid required: 组织 OID
5554
+ * @param {string} [page] @gotags: form:\&quot;page\&quot; optional: 页码
5555
+ * @param {string} [pageSize] @gotags: form:\&quot;page_size\&quot; optional: 每页数量
5556
+ * @param {*} [options] Override http request option.
5557
+ * @throws {RequiredError}
5558
+ */
5559
+ passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberListResponse>;
5560
+ /**
5561
+ *
5562
+ * @summary 移除组织成员(需要 Owner 或 Admin)
5563
+ * @param {string} oid required: 组织 OID(路径参数)
5564
+ * @param {string} eid required: 目标成员 EID(路径参数)
5565
+ * @param {*} [options] Override http request option.
5566
+ * @throws {RequiredError}
5567
+ */
5568
+ passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberRemoveResponse>;
5569
+ /**
5570
+ *
5571
+ * @summary 获取当前用户在指定组织的成员关系
5572
+ * @param {string} oid required: 组织 OID
5573
+ * @param {*} [options] Override http request option.
5574
+ * @throws {RequiredError}
5575
+ */
5576
+ passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMembershipGetResponse>;
5577
+ /**
5578
+ *
5579
+ * @summary 更新组织信息(需要 Owner 或 Admin)
5580
+ * @param {string} oid required: 组织 OID(路径参数)
5581
+ * @param {PassportOrgUpdateBody} body
5582
+ * @param {*} [options] Override http request option.
5583
+ * @throws {RequiredError}
5584
+ */
5585
+ passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgUpdateResponse>;
5586
+ };
5587
+ /**
5588
+ * PassportOrgServiceApi - interface
5589
+ */
5590
+ export interface PassportOrgServiceApiInterface {
5591
+ /**
5592
+ *
5593
+ * @summary 创建组织(需要企业认证通过)
5594
+ * @param {PassportOrgCreateRequest} body
5595
+ * @param {*} [options] Override http request option.
5596
+ * @throws {RequiredError}
5597
+ */
5598
+ passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgCreateResponse>;
5599
+ /**
5600
+ *
5601
+ * @summary 删除组织(仅 Owner)
5602
+ * @param {string} oid required: 组织 OID
5603
+ * @param {*} [options] Override http request option.
5604
+ * @throws {RequiredError}
5605
+ */
5606
+ passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgDeleteResponse>;
5607
+ /**
5608
+ *
5609
+ * @summary 获取组织详情(需要是组织成员)
5610
+ * @param {string} oid required: 组织 OID
5611
+ * @param {*} [options] Override http request option.
5612
+ * @throws {RequiredError}
5613
+ */
5614
+ passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgGetResponse>;
5615
+ /**
5616
+ *
5617
+ * @summary 获取当前用户的组织列表
5618
+ * @param {string} [appName] @gotags: form:\&quot;app_name\&quot; optional: 按应用名称过滤
5619
+ * @param {*} [options] Override http request option.
5620
+ * @throws {RequiredError}
5621
+ */
5622
+ passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgListResponse>;
5623
+ /**
5624
+ *
5625
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
5626
+ * @param {string} oid required: 组织 OID(路径参数)
5627
+ * @param {PassportOrgMemberAddBody} body
5628
+ * @param {*} [options] Override http request option.
5629
+ * @throws {RequiredError}
5630
+ */
5631
+ passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberAddResponse>;
5632
+ /**
5633
+ *
5634
+ * @summary 变更成员角色(需要比目标角色更高权限)
5635
+ * @param {string} oid required: 组织 OID(路径参数)
5636
+ * @param {string} eid required: 目标成员 EID(路径参数)
5637
+ * @param {PassportOrgMemberChangeRoleBody} body
5638
+ * @param {*} [options] Override http request option.
5639
+ * @throws {RequiredError}
5640
+ */
5641
+ passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberChangeRoleResponse>;
5642
+ /**
5643
+ *
5644
+ * @summary 获取组织成员列表
5645
+ * @param {string} oid required: 组织 OID
5646
+ * @param {string} [page] @gotags: form:\&quot;page\&quot; optional: 页码
5647
+ * @param {string} [pageSize] @gotags: form:\&quot;page_size\&quot; optional: 每页数量
5648
+ * @param {*} [options] Override http request option.
5649
+ * @throws {RequiredError}
5650
+ */
5651
+ passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberListResponse>;
5652
+ /**
5653
+ *
5654
+ * @summary 移除组织成员(需要 Owner 或 Admin)
5655
+ * @param {string} oid required: 组织 OID(路径参数)
5656
+ * @param {string} eid required: 目标成员 EID(路径参数)
5657
+ * @param {*} [options] Override http request option.
5658
+ * @throws {RequiredError}
5659
+ */
5660
+ passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberRemoveResponse>;
5661
+ /**
5662
+ *
5663
+ * @summary 获取当前用户在指定组织的成员关系
5664
+ * @param {string} oid required: 组织 OID
5665
+ * @param {*} [options] Override http request option.
5666
+ * @throws {RequiredError}
5667
+ */
5668
+ passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMembershipGetResponse>;
5669
+ /**
5670
+ *
5671
+ * @summary 更新组织信息(需要 Owner 或 Admin)
5672
+ * @param {string} oid required: 组织 OID(路径参数)
5673
+ * @param {PassportOrgUpdateBody} body
5674
+ * @param {*} [options] Override http request option.
5675
+ * @throws {RequiredError}
5676
+ */
5677
+ passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgUpdateResponse>;
5678
+ }
5679
+ /**
5680
+ * PassportOrgServiceApi - object-oriented interface
5681
+ */
5682
+ export declare class PassportOrgServiceApi extends BaseAPI implements PassportOrgServiceApiInterface {
5683
+ /**
5684
+ *
5685
+ * @summary 创建组织(需要企业认证通过)
5686
+ * @param {PassportOrgCreateRequest} body
5687
+ * @param {*} [options] Override http request option.
5688
+ * @throws {RequiredError}
5689
+ */
5690
+ passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgCreateResponse, any, {}>>;
5691
+ /**
5692
+ *
5693
+ * @summary 删除组织(仅 Owner)
5694
+ * @param {string} oid required: 组织 OID
5695
+ * @param {*} [options] Override http request option.
5696
+ * @throws {RequiredError}
5697
+ */
5698
+ passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgDeleteResponse, any, {}>>;
5699
+ /**
5700
+ *
5701
+ * @summary 获取组织详情(需要是组织成员)
5702
+ * @param {string} oid required: 组织 OID
5703
+ * @param {*} [options] Override http request option.
5704
+ * @throws {RequiredError}
5705
+ */
5706
+ passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgGetResponse, any, {}>>;
5707
+ /**
5708
+ *
5709
+ * @summary 获取当前用户的组织列表
5710
+ * @param {string} [appName] @gotags: form:\&quot;app_name\&quot; optional: 按应用名称过滤
5711
+ * @param {*} [options] Override http request option.
5712
+ * @throws {RequiredError}
5713
+ */
5714
+ passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgListResponse, any, {}>>;
5715
+ /**
5716
+ *
5717
+ * @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
5718
+ * @param {string} oid required: 组织 OID(路径参数)
5719
+ * @param {PassportOrgMemberAddBody} body
5720
+ * @param {*} [options] Override http request option.
5721
+ * @throws {RequiredError}
5722
+ */
5723
+ passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgMemberAddResponse, any, {}>>;
5724
+ /**
5725
+ *
5726
+ * @summary 变更成员角色(需要比目标角色更高权限)
5727
+ * @param {string} oid required: 组织 OID(路径参数)
5728
+ * @param {string} eid required: 目标成员 EID(路径参数)
5729
+ * @param {PassportOrgMemberChangeRoleBody} body
5730
+ * @param {*} [options] Override http request option.
5731
+ * @throws {RequiredError}
5732
+ */
5733
+ passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgMemberChangeRoleResponse, any, {}>>;
5734
+ /**
5735
+ *
5736
+ * @summary 获取组织成员列表
5737
+ * @param {string} oid required: 组织 OID
5738
+ * @param {string} [page] @gotags: form:\&quot;page\&quot; optional: 页码
5739
+ * @param {string} [pageSize] @gotags: form:\&quot;page_size\&quot; optional: 每页数量
5740
+ * @param {*} [options] Override http request option.
5741
+ * @throws {RequiredError}
5742
+ */
5743
+ passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgMemberListResponse, any, {}>>;
5744
+ /**
5745
+ *
5746
+ * @summary 移除组织成员(需要 Owner 或 Admin)
5747
+ * @param {string} oid required: 组织 OID(路径参数)
5748
+ * @param {string} eid required: 目标成员 EID(路径参数)
5749
+ * @param {*} [options] Override http request option.
5750
+ * @throws {RequiredError}
5751
+ */
5752
+ passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgMemberRemoveResponse, any, {}>>;
5753
+ /**
5754
+ *
5755
+ * @summary 获取当前用户在指定组织的成员关系
5756
+ * @param {string} oid required: 组织 OID
5757
+ * @param {*} [options] Override http request option.
5758
+ * @throws {RequiredError}
5759
+ */
5760
+ passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgMembershipGetResponse, any, {}>>;
5761
+ /**
5762
+ *
5763
+ * @summary 更新组织信息(需要 Owner 或 Admin)
5764
+ * @param {string} oid required: 组织 OID(路径参数)
5765
+ * @param {PassportOrgUpdateBody} body
5766
+ * @param {*} [options] Override http request option.
5767
+ * @throws {RequiredError}
5768
+ */
5769
+ passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportOrgUpdateResponse, any, {}>>;
5770
+ }