@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.
@@ -0,0 +1,552 @@
1
+ # PassportOrgServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**passportOrgServicePassportOrgCreate**](#passportorgservicepassportorgcreate) | **POST** /passport/enterprise/authed/v1/organizations | 创建组织(需要企业认证通过)|
8
+ |[**passportOrgServicePassportOrgDelete**](#passportorgservicepassportorgdelete) | **DELETE** /passport/enterprise/authed/v1/organizations/{oid} | 删除组织(仅 Owner)|
9
+ |[**passportOrgServicePassportOrgGet**](#passportorgservicepassportorgget) | **GET** /passport/enterprise/authed/v1/organizations/{oid} | 获取组织详情(需要是组织成员)|
10
+ |[**passportOrgServicePassportOrgList**](#passportorgservicepassportorglist) | **GET** /passport/enterprise/authed/v1/organizations | 获取当前用户的组织列表|
11
+ |[**passportOrgServicePassportOrgMemberAdd**](#passportorgservicepassportorgmemberadd) | **POST** /passport/enterprise/authed/v1/organizations/{oid}/members | 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)|
12
+ |[**passportOrgServicePassportOrgMemberChangeRole**](#passportorgservicepassportorgmemberchangerole) | **PATCH** /passport/enterprise/authed/v1/organizations/{oid}/members/{eid} | 变更成员角色(需要比目标角色更高权限)|
13
+ |[**passportOrgServicePassportOrgMemberList**](#passportorgservicepassportorgmemberlist) | **GET** /passport/enterprise/authed/v1/organizations/{oid}/members | 获取组织成员列表|
14
+ |[**passportOrgServicePassportOrgMemberRemove**](#passportorgservicepassportorgmemberremove) | **DELETE** /passport/enterprise/authed/v1/organizations/{oid}/members/{eid} | 移除组织成员(需要 Owner 或 Admin)|
15
+ |[**passportOrgServicePassportOrgMembershipGet**](#passportorgservicepassportorgmembershipget) | **GET** /passport/enterprise/authed/v1/organizations/{oid}/membership | 获取当前用户在指定组织的成员关系|
16
+ |[**passportOrgServicePassportOrgUpdate**](#passportorgservicepassportorgupdate) | **PATCH** /passport/enterprise/authed/v1/organizations/{oid} | 更新组织信息(需要 Owner 或 Admin)|
17
+
18
+ # **passportOrgServicePassportOrgCreate**
19
+ > PassportOrgCreateResponse passportOrgServicePassportOrgCreate(body)
20
+
21
+
22
+ ### Example
23
+
24
+ ```typescript
25
+ import {
26
+ PassportOrgServiceApi,
27
+ Configuration,
28
+ PassportOrgCreateRequest
29
+ } from '@cherryin/passport-api-client';
30
+
31
+ const configuration = new Configuration();
32
+ const apiInstance = new PassportOrgServiceApi(configuration);
33
+
34
+ let body: PassportOrgCreateRequest; //
35
+
36
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgCreate(
37
+ body
38
+ );
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ |Name | Type | Description | Notes|
44
+ |------------- | ------------- | ------------- | -------------|
45
+ | **body** | **PassportOrgCreateRequest**| | |
46
+
47
+
48
+ ### Return type
49
+
50
+ **PassportOrgCreateResponse**
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**200** | A successful response. | - |
66
+ |**0** | An unexpected error response. | - |
67
+
68
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
69
+
70
+ # **passportOrgServicePassportOrgDelete**
71
+ > PassportOrgDeleteResponse passportOrgServicePassportOrgDelete()
72
+
73
+
74
+ ### Example
75
+
76
+ ```typescript
77
+ import {
78
+ PassportOrgServiceApi,
79
+ Configuration
80
+ } from '@cherryin/passport-api-client';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new PassportOrgServiceApi(configuration);
84
+
85
+ let oid: string; //required: 组织 OID (default to undefined)
86
+
87
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgDelete(
88
+ oid
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **oid** | [**string**] | required: 组织 OID | defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **PassportOrgDeleteResponse**
102
+
103
+ ### Authorization
104
+
105
+ No authorization required
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**200** | A successful response. | - |
117
+ |**0** | An unexpected error response. | - |
118
+
119
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
120
+
121
+ # **passportOrgServicePassportOrgGet**
122
+ > PassportOrgGetResponse passportOrgServicePassportOrgGet()
123
+
124
+
125
+ ### Example
126
+
127
+ ```typescript
128
+ import {
129
+ PassportOrgServiceApi,
130
+ Configuration
131
+ } from '@cherryin/passport-api-client';
132
+
133
+ const configuration = new Configuration();
134
+ const apiInstance = new PassportOrgServiceApi(configuration);
135
+
136
+ let oid: string; //required: 组织 OID (default to undefined)
137
+
138
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgGet(
139
+ oid
140
+ );
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ |Name | Type | Description | Notes|
146
+ |------------- | ------------- | ------------- | -------------|
147
+ | **oid** | [**string**] | required: 组织 OID | defaults to undefined|
148
+
149
+
150
+ ### Return type
151
+
152
+ **PassportOrgGetResponse**
153
+
154
+ ### Authorization
155
+
156
+ No authorization required
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ |**200** | A successful response. | - |
168
+ |**0** | An unexpected error response. | - |
169
+
170
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
171
+
172
+ # **passportOrgServicePassportOrgList**
173
+ > PassportOrgListResponse passportOrgServicePassportOrgList()
174
+
175
+
176
+ ### Example
177
+
178
+ ```typescript
179
+ import {
180
+ PassportOrgServiceApi,
181
+ Configuration
182
+ } from '@cherryin/passport-api-client';
183
+
184
+ const configuration = new Configuration();
185
+ const apiInstance = new PassportOrgServiceApi(configuration);
186
+
187
+ let appName: string; //@gotags: form:\"app_name\" optional: 按应用名称过滤 (optional) (default to undefined)
188
+
189
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgList(
190
+ appName
191
+ );
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ |Name | Type | Description | Notes|
197
+ |------------- | ------------- | ------------- | -------------|
198
+ | **appName** | [**string**] | @gotags: form:\"app_name\" optional: 按应用名称过滤 | (optional) defaults to undefined|
199
+
200
+
201
+ ### Return type
202
+
203
+ **PassportOrgListResponse**
204
+
205
+ ### Authorization
206
+
207
+ No authorization required
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: Not defined
212
+ - **Accept**: application/json
213
+
214
+
215
+ ### HTTP response details
216
+ | Status code | Description | Response headers |
217
+ |-------------|-------------|------------------|
218
+ |**200** | A successful response. | - |
219
+ |**0** | An unexpected error response. | - |
220
+
221
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
222
+
223
+ # **passportOrgServicePassportOrgMemberAdd**
224
+ > PassportOrgMemberAddResponse passportOrgServicePassportOrgMemberAdd(body)
225
+
226
+
227
+ ### Example
228
+
229
+ ```typescript
230
+ import {
231
+ PassportOrgServiceApi,
232
+ Configuration,
233
+ PassportOrgMemberAddBody
234
+ } from '@cherryin/passport-api-client';
235
+
236
+ const configuration = new Configuration();
237
+ const apiInstance = new PassportOrgServiceApi(configuration);
238
+
239
+ let oid: string; //required: 组织 OID(路径参数) (default to undefined)
240
+ let body: PassportOrgMemberAddBody; //
241
+
242
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgMemberAdd(
243
+ oid,
244
+ body
245
+ );
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ |Name | Type | Description | Notes|
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **body** | **PassportOrgMemberAddBody**| | |
253
+ | **oid** | [**string**] | required: 组织 OID(路径参数) | defaults to undefined|
254
+
255
+
256
+ ### Return type
257
+
258
+ **PassportOrgMemberAddResponse**
259
+
260
+ ### Authorization
261
+
262
+ No authorization required
263
+
264
+ ### HTTP request headers
265
+
266
+ - **Content-Type**: application/json
267
+ - **Accept**: application/json
268
+
269
+
270
+ ### HTTP response details
271
+ | Status code | Description | Response headers |
272
+ |-------------|-------------|------------------|
273
+ |**200** | A successful response. | - |
274
+ |**0** | An unexpected error response. | - |
275
+
276
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
277
+
278
+ # **passportOrgServicePassportOrgMemberChangeRole**
279
+ > PassportOrgMemberChangeRoleResponse passportOrgServicePassportOrgMemberChangeRole(body)
280
+
281
+
282
+ ### Example
283
+
284
+ ```typescript
285
+ import {
286
+ PassportOrgServiceApi,
287
+ Configuration,
288
+ PassportOrgMemberChangeRoleBody
289
+ } from '@cherryin/passport-api-client';
290
+
291
+ const configuration = new Configuration();
292
+ const apiInstance = new PassportOrgServiceApi(configuration);
293
+
294
+ let oid: string; //required: 组织 OID(路径参数) (default to undefined)
295
+ let eid: string; //required: 目标成员 EID(路径参数) (default to undefined)
296
+ let body: PassportOrgMemberChangeRoleBody; //
297
+
298
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgMemberChangeRole(
299
+ oid,
300
+ eid,
301
+ body
302
+ );
303
+ ```
304
+
305
+ ### Parameters
306
+
307
+ |Name | Type | Description | Notes|
308
+ |------------- | ------------- | ------------- | -------------|
309
+ | **body** | **PassportOrgMemberChangeRoleBody**| | |
310
+ | **oid** | [**string**] | required: 组织 OID(路径参数) | defaults to undefined|
311
+ | **eid** | [**string**] | required: 目标成员 EID(路径参数) | defaults to undefined|
312
+
313
+
314
+ ### Return type
315
+
316
+ **PassportOrgMemberChangeRoleResponse**
317
+
318
+ ### Authorization
319
+
320
+ No authorization required
321
+
322
+ ### HTTP request headers
323
+
324
+ - **Content-Type**: application/json
325
+ - **Accept**: application/json
326
+
327
+
328
+ ### HTTP response details
329
+ | Status code | Description | Response headers |
330
+ |-------------|-------------|------------------|
331
+ |**200** | A successful response. | - |
332
+ |**0** | An unexpected error response. | - |
333
+
334
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
335
+
336
+ # **passportOrgServicePassportOrgMemberList**
337
+ > PassportOrgMemberListResponse passportOrgServicePassportOrgMemberList()
338
+
339
+
340
+ ### Example
341
+
342
+ ```typescript
343
+ import {
344
+ PassportOrgServiceApi,
345
+ Configuration
346
+ } from '@cherryin/passport-api-client';
347
+
348
+ const configuration = new Configuration();
349
+ const apiInstance = new PassportOrgServiceApi(configuration);
350
+
351
+ let oid: string; //required: 组织 OID (default to undefined)
352
+ let page: string; //@gotags: form:\"page\" optional: 页码 (optional) (default to undefined)
353
+ let pageSize: string; //@gotags: form:\"page_size\" optional: 每页数量 (optional) (default to undefined)
354
+
355
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgMemberList(
356
+ oid,
357
+ page,
358
+ pageSize
359
+ );
360
+ ```
361
+
362
+ ### Parameters
363
+
364
+ |Name | Type | Description | Notes|
365
+ |------------- | ------------- | ------------- | -------------|
366
+ | **oid** | [**string**] | required: 组织 OID | defaults to undefined|
367
+ | **page** | [**string**] | @gotags: form:\"page\" optional: 页码 | (optional) defaults to undefined|
368
+ | **pageSize** | [**string**] | @gotags: form:\"page_size\" optional: 每页数量 | (optional) defaults to undefined|
369
+
370
+
371
+ ### Return type
372
+
373
+ **PassportOrgMemberListResponse**
374
+
375
+ ### Authorization
376
+
377
+ No authorization required
378
+
379
+ ### HTTP request headers
380
+
381
+ - **Content-Type**: Not defined
382
+ - **Accept**: application/json
383
+
384
+
385
+ ### HTTP response details
386
+ | Status code | Description | Response headers |
387
+ |-------------|-------------|------------------|
388
+ |**200** | A successful response. | - |
389
+ |**0** | An unexpected error response. | - |
390
+
391
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
392
+
393
+ # **passportOrgServicePassportOrgMemberRemove**
394
+ > PassportOrgMemberRemoveResponse passportOrgServicePassportOrgMemberRemove()
395
+
396
+
397
+ ### Example
398
+
399
+ ```typescript
400
+ import {
401
+ PassportOrgServiceApi,
402
+ Configuration
403
+ } from '@cherryin/passport-api-client';
404
+
405
+ const configuration = new Configuration();
406
+ const apiInstance = new PassportOrgServiceApi(configuration);
407
+
408
+ let oid: string; //required: 组织 OID(路径参数) (default to undefined)
409
+ let eid: string; //required: 目标成员 EID(路径参数) (default to undefined)
410
+
411
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgMemberRemove(
412
+ oid,
413
+ eid
414
+ );
415
+ ```
416
+
417
+ ### Parameters
418
+
419
+ |Name | Type | Description | Notes|
420
+ |------------- | ------------- | ------------- | -------------|
421
+ | **oid** | [**string**] | required: 组织 OID(路径参数) | defaults to undefined|
422
+ | **eid** | [**string**] | required: 目标成员 EID(路径参数) | defaults to undefined|
423
+
424
+
425
+ ### Return type
426
+
427
+ **PassportOrgMemberRemoveResponse**
428
+
429
+ ### Authorization
430
+
431
+ No authorization required
432
+
433
+ ### HTTP request headers
434
+
435
+ - **Content-Type**: Not defined
436
+ - **Accept**: application/json
437
+
438
+
439
+ ### HTTP response details
440
+ | Status code | Description | Response headers |
441
+ |-------------|-------------|------------------|
442
+ |**200** | A successful response. | - |
443
+ |**0** | An unexpected error response. | - |
444
+
445
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
446
+
447
+ # **passportOrgServicePassportOrgMembershipGet**
448
+ > PassportOrgMembershipGetResponse passportOrgServicePassportOrgMembershipGet()
449
+
450
+
451
+ ### Example
452
+
453
+ ```typescript
454
+ import {
455
+ PassportOrgServiceApi,
456
+ Configuration
457
+ } from '@cherryin/passport-api-client';
458
+
459
+ const configuration = new Configuration();
460
+ const apiInstance = new PassportOrgServiceApi(configuration);
461
+
462
+ let oid: string; //required: 组织 OID (default to undefined)
463
+
464
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgMembershipGet(
465
+ oid
466
+ );
467
+ ```
468
+
469
+ ### Parameters
470
+
471
+ |Name | Type | Description | Notes|
472
+ |------------- | ------------- | ------------- | -------------|
473
+ | **oid** | [**string**] | required: 组织 OID | defaults to undefined|
474
+
475
+
476
+ ### Return type
477
+
478
+ **PassportOrgMembershipGetResponse**
479
+
480
+ ### Authorization
481
+
482
+ No authorization required
483
+
484
+ ### HTTP request headers
485
+
486
+ - **Content-Type**: Not defined
487
+ - **Accept**: application/json
488
+
489
+
490
+ ### HTTP response details
491
+ | Status code | Description | Response headers |
492
+ |-------------|-------------|------------------|
493
+ |**200** | A successful response. | - |
494
+ |**0** | An unexpected error response. | - |
495
+
496
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
497
+
498
+ # **passportOrgServicePassportOrgUpdate**
499
+ > PassportOrgUpdateResponse passportOrgServicePassportOrgUpdate(body)
500
+
501
+
502
+ ### Example
503
+
504
+ ```typescript
505
+ import {
506
+ PassportOrgServiceApi,
507
+ Configuration,
508
+ PassportOrgUpdateBody
509
+ } from '@cherryin/passport-api-client';
510
+
511
+ const configuration = new Configuration();
512
+ const apiInstance = new PassportOrgServiceApi(configuration);
513
+
514
+ let oid: string; //required: 组织 OID(路径参数) (default to undefined)
515
+ let body: PassportOrgUpdateBody; //
516
+
517
+ const { status, data } = await apiInstance.passportOrgServicePassportOrgUpdate(
518
+ oid,
519
+ body
520
+ );
521
+ ```
522
+
523
+ ### Parameters
524
+
525
+ |Name | Type | Description | Notes|
526
+ |------------- | ------------- | ------------- | -------------|
527
+ | **body** | **PassportOrgUpdateBody**| | |
528
+ | **oid** | [**string**] | required: 组织 OID(路径参数) | defaults to undefined|
529
+
530
+
531
+ ### Return type
532
+
533
+ **PassportOrgUpdateResponse**
534
+
535
+ ### Authorization
536
+
537
+ No authorization required
538
+
539
+ ### HTTP request headers
540
+
541
+ - **Content-Type**: application/json
542
+ - **Accept**: application/json
543
+
544
+
545
+ ### HTTP response details
546
+ | Status code | Description | Response headers |
547
+ |-------------|-------------|------------------|
548
+ |**200** | A successful response. | - |
549
+ |**0** | An unexpected error response. | - |
550
+
551
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
552
+
@@ -0,0 +1,24 @@
1
+ # PassportOrgUpdateBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **display_name** | **string** | | [optional] [default to undefined]
9
+ **description** | **string** | | [optional] [default to undefined]
10
+ **avatar_url** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PassportOrgUpdateBody } from '@cherryin/passport-api-client';
16
+
17
+ const instance: PassportOrgUpdateBody = {
18
+ display_name,
19
+ description,
20
+ avatar_url,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # PassportOrgUpdateResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassportOrgUpdateResponse } from '@cherryin/passport-api-client';
15
+
16
+ const instance: PassportOrgUpdateResponse = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cherryin/passport-api-client",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "description": "OpenAPI client for @cherryin/passport-api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {