@alicloud/eiam20211201 2.4.0 → 2.5.0

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.
Files changed (45) hide show
  1. package/dist/client.d.ts +45 -0
  2. package/dist/client.js +153 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BindUserAuthnSourceMappingRequest.d.ts +53 -0
  5. package/dist/models/BindUserAuthnSourceMappingRequest.js +64 -0
  6. package/dist/models/BindUserAuthnSourceMappingRequest.js.map +1 -0
  7. package/dist/models/BindUserAuthnSourceMappingResponse.d.ts +19 -0
  8. package/dist/models/BindUserAuthnSourceMappingResponse.js +69 -0
  9. package/dist/models/BindUserAuthnSourceMappingResponse.js.map +1 -0
  10. package/dist/models/BindUserAuthnSourceMappingResponseBody.d.ts +18 -0
  11. package/dist/models/BindUserAuthnSourceMappingResponseBody.js +58 -0
  12. package/dist/models/BindUserAuthnSourceMappingResponseBody.js.map +1 -0
  13. package/dist/models/ListUserAuthnSourceMappingsRequest.d.ts +73 -0
  14. package/dist/models/ListUserAuthnSourceMappingsRequest.js +70 -0
  15. package/dist/models/ListUserAuthnSourceMappingsRequest.js.map +1 -0
  16. package/dist/models/ListUserAuthnSourceMappingsResponse.d.ts +19 -0
  17. package/dist/models/ListUserAuthnSourceMappingsResponse.js +69 -0
  18. package/dist/models/ListUserAuthnSourceMappingsResponse.js.map +1 -0
  19. package/dist/models/ListUserAuthnSourceMappingsResponseBody.d.ts +116 -0
  20. package/dist/models/ListUserAuthnSourceMappingsResponseBody.js +102 -0
  21. package/dist/models/ListUserAuthnSourceMappingsResponseBody.js.map +1 -0
  22. package/dist/models/UnbindUserAuthnSourceMappingRequest.d.ts +53 -0
  23. package/dist/models/UnbindUserAuthnSourceMappingRequest.js +64 -0
  24. package/dist/models/UnbindUserAuthnSourceMappingRequest.js.map +1 -0
  25. package/dist/models/UnbindUserAuthnSourceMappingResponse.d.ts +19 -0
  26. package/dist/models/UnbindUserAuthnSourceMappingResponse.js +69 -0
  27. package/dist/models/UnbindUserAuthnSourceMappingResponse.js.map +1 -0
  28. package/dist/models/UnbindUserAuthnSourceMappingResponseBody.d.ts +18 -0
  29. package/dist/models/UnbindUserAuthnSourceMappingResponseBody.js +58 -0
  30. package/dist/models/UnbindUserAuthnSourceMappingResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +10 -0
  32. package/dist/models/model.js +34 -14
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +174 -0
  36. package/src/models/BindUserAuthnSourceMappingRequest.ts +72 -0
  37. package/src/models/BindUserAuthnSourceMappingResponse.ts +40 -0
  38. package/src/models/BindUserAuthnSourceMappingResponseBody.ts +31 -0
  39. package/src/models/ListUserAuthnSourceMappingsRequest.ts +98 -0
  40. package/src/models/ListUserAuthnSourceMappingsResponse.ts +40 -0
  41. package/src/models/ListUserAuthnSourceMappingsResponseBody.ts +164 -0
  42. package/src/models/UnbindUserAuthnSourceMappingRequest.ts +72 -0
  43. package/src/models/UnbindUserAuthnSourceMappingResponse.ts +40 -0
  44. package/src/models/UnbindUserAuthnSourceMappingResponseBody.ts +31 -0
  45. package/src/models/model.ts +10 -0
package/dist/client.d.ts CHANGED
@@ -113,6 +113,21 @@ export default class Client extends OpenApi {
113
113
  * @returns AuthorizeApplicationToUsersResponse
114
114
  */
115
115
  authorizeApplicationToUsers(request: $_model.AuthorizeApplicationToUsersRequest): Promise<$_model.AuthorizeApplicationToUsersResponse>;
116
+ /**
117
+ * 绑定三方登录账户
118
+ *
119
+ * @param request - BindUserAuthnSourceMappingRequest
120
+ * @param runtime - runtime options for this request RuntimeOptions
121
+ * @returns BindUserAuthnSourceMappingResponse
122
+ */
123
+ bindUserAuthnSourceMappingWithOptions(request: $_model.BindUserAuthnSourceMappingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BindUserAuthnSourceMappingResponse>;
124
+ /**
125
+ * 绑定三方登录账户
126
+ *
127
+ * @param request - BindUserAuthnSourceMappingRequest
128
+ * @returns BindUserAuthnSourceMappingResponse
129
+ */
130
+ bindUserAuthnSourceMapping(request: $_model.BindUserAuthnSourceMappingRequest): Promise<$_model.BindUserAuthnSourceMappingResponse>;
116
131
  /**
117
132
  * Adds an application to an Enterprise Identity Access Management (EIAM) instance of Identity as a Service (IDaaS).
118
133
  *
@@ -2255,6 +2270,21 @@ export default class Client extends OpenApi {
2255
2270
  * @returns ListSynchronizationJobsResponse
2256
2271
  */
2257
2272
  listSynchronizationJobs(request: $_model.ListSynchronizationJobsRequest): Promise<$_model.ListSynchronizationJobsResponse>;
2273
+ /**
2274
+ * 查询三方登录账户绑定关系
2275
+ *
2276
+ * @param request - ListUserAuthnSourceMappingsRequest
2277
+ * @param runtime - runtime options for this request RuntimeOptions
2278
+ * @returns ListUserAuthnSourceMappingsResponse
2279
+ */
2280
+ listUserAuthnSourceMappingsWithOptions(request: $_model.ListUserAuthnSourceMappingsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListUserAuthnSourceMappingsResponse>;
2281
+ /**
2282
+ * 查询三方登录账户绑定关系
2283
+ *
2284
+ * @param request - ListUserAuthnSourceMappingsRequest
2285
+ * @returns ListUserAuthnSourceMappingsResponse
2286
+ */
2287
+ listUserAuthnSourceMappings(request: $_model.ListUserAuthnSourceMappingsRequest): Promise<$_model.ListUserAuthnSourceMappingsResponse>;
2258
2288
  /**
2259
2289
  * Queries the details of accounts in Identity as a Service (IDaaS) Employee IAM (EIAM) by page.
2260
2290
  *
@@ -2666,6 +2696,21 @@ export default class Client extends OpenApi {
2666
2696
  * @returns SetUserPrimaryOrganizationalUnitResponse
2667
2697
  */
2668
2698
  setUserPrimaryOrganizationalUnit(request: $_model.SetUserPrimaryOrganizationalUnitRequest): Promise<$_model.SetUserPrimaryOrganizationalUnitResponse>;
2699
+ /**
2700
+ * 解绑三方登录账户
2701
+ *
2702
+ * @param request - UnbindUserAuthnSourceMappingRequest
2703
+ * @param runtime - runtime options for this request RuntimeOptions
2704
+ * @returns UnbindUserAuthnSourceMappingResponse
2705
+ */
2706
+ unbindUserAuthnSourceMappingWithOptions(request: $_model.UnbindUserAuthnSourceMappingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UnbindUserAuthnSourceMappingResponse>;
2707
+ /**
2708
+ * 解绑三方登录账户
2709
+ *
2710
+ * @param request - UnbindUserAuthnSourceMappingRequest
2711
+ * @returns UnbindUserAuthnSourceMappingResponse
2712
+ */
2713
+ unbindUserAuthnSourceMapping(request: $_model.UnbindUserAuthnSourceMappingRequest): Promise<$_model.UnbindUserAuthnSourceMappingResponse>;
2669
2714
  /**
2670
2715
  * Unlocks an Employee Identity and Access Management (EIAM) account of Identity as a Service (IDaaS) that is locked.
2671
2716
  *
package/dist/client.js CHANGED
@@ -379,6 +379,54 @@ class Client extends openapi_core_1.default {
379
379
  let runtime = new $dara.RuntimeOptions({});
380
380
  return await this.authorizeApplicationToUsersWithOptions(request, runtime);
381
381
  }
382
+ /**
383
+ * 绑定三方登录账户
384
+ *
385
+ * @param request - BindUserAuthnSourceMappingRequest
386
+ * @param runtime - runtime options for this request RuntimeOptions
387
+ * @returns BindUserAuthnSourceMappingResponse
388
+ */
389
+ async bindUserAuthnSourceMappingWithOptions(request, runtime) {
390
+ request.validate();
391
+ let query = {};
392
+ if (!$dara.isNull(request.identityProviderId)) {
393
+ query["IdentityProviderId"] = request.identityProviderId;
394
+ }
395
+ if (!$dara.isNull(request.instanceId)) {
396
+ query["InstanceId"] = request.instanceId;
397
+ }
398
+ if (!$dara.isNull(request.userExternalId)) {
399
+ query["UserExternalId"] = request.userExternalId;
400
+ }
401
+ if (!$dara.isNull(request.userId)) {
402
+ query["UserId"] = request.userId;
403
+ }
404
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
405
+ query: openapi_core_2.OpenApiUtil.query(query),
406
+ });
407
+ let params = new openapi_core_2.$OpenApiUtil.Params({
408
+ action: "BindUserAuthnSourceMapping",
409
+ version: "2021-12-01",
410
+ protocol: "HTTPS",
411
+ pathname: "/",
412
+ method: "POST",
413
+ authType: "AK",
414
+ style: "RPC",
415
+ reqBodyType: "formData",
416
+ bodyType: "json",
417
+ });
418
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BindUserAuthnSourceMappingResponse({}));
419
+ }
420
+ /**
421
+ * 绑定三方登录账户
422
+ *
423
+ * @param request - BindUserAuthnSourceMappingRequest
424
+ * @returns BindUserAuthnSourceMappingResponse
425
+ */
426
+ async bindUserAuthnSourceMapping(request) {
427
+ let runtime = new $dara.RuntimeOptions({});
428
+ return await this.bindUserAuthnSourceMappingWithOptions(request, runtime);
429
+ }
382
430
  /**
383
431
  * Adds an application to an Enterprise Identity Access Management (EIAM) instance of Identity as a Service (IDaaS).
384
432
  *
@@ -6715,6 +6763,63 @@ class Client extends openapi_core_1.default {
6715
6763
  let runtime = new $dara.RuntimeOptions({});
6716
6764
  return await this.listSynchronizationJobsWithOptions(request, runtime);
6717
6765
  }
6766
+ /**
6767
+ * 查询三方登录账户绑定关系
6768
+ *
6769
+ * @param request - ListUserAuthnSourceMappingsRequest
6770
+ * @param runtime - runtime options for this request RuntimeOptions
6771
+ * @returns ListUserAuthnSourceMappingsResponse
6772
+ */
6773
+ async listUserAuthnSourceMappingsWithOptions(request, runtime) {
6774
+ request.validate();
6775
+ let query = {};
6776
+ if (!$dara.isNull(request.identityProviderId)) {
6777
+ query["IdentityProviderId"] = request.identityProviderId;
6778
+ }
6779
+ if (!$dara.isNull(request.instanceId)) {
6780
+ query["InstanceId"] = request.instanceId;
6781
+ }
6782
+ if (!$dara.isNull(request.maxResults)) {
6783
+ query["MaxResults"] = request.maxResults;
6784
+ }
6785
+ if (!$dara.isNull(request.nextToken)) {
6786
+ query["NextToken"] = request.nextToken;
6787
+ }
6788
+ if (!$dara.isNull(request.previousToken)) {
6789
+ query["PreviousToken"] = request.previousToken;
6790
+ }
6791
+ if (!$dara.isNull(request.userExternalId)) {
6792
+ query["UserExternalId"] = request.userExternalId;
6793
+ }
6794
+ if (!$dara.isNull(request.userId)) {
6795
+ query["UserId"] = request.userId;
6796
+ }
6797
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6798
+ query: openapi_core_2.OpenApiUtil.query(query),
6799
+ });
6800
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6801
+ action: "ListUserAuthnSourceMappings",
6802
+ version: "2021-12-01",
6803
+ protocol: "HTTPS",
6804
+ pathname: "/",
6805
+ method: "POST",
6806
+ authType: "AK",
6807
+ style: "RPC",
6808
+ reqBodyType: "formData",
6809
+ bodyType: "json",
6810
+ });
6811
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListUserAuthnSourceMappingsResponse({}));
6812
+ }
6813
+ /**
6814
+ * 查询三方登录账户绑定关系
6815
+ *
6816
+ * @param request - ListUserAuthnSourceMappingsRequest
6817
+ * @returns ListUserAuthnSourceMappingsResponse
6818
+ */
6819
+ async listUserAuthnSourceMappings(request) {
6820
+ let runtime = new $dara.RuntimeOptions({});
6821
+ return await this.listUserAuthnSourceMappingsWithOptions(request, runtime);
6822
+ }
6718
6823
  /**
6719
6824
  * Queries the details of accounts in Identity as a Service (IDaaS) Employee IAM (EIAM) by page.
6720
6825
  *
@@ -8062,6 +8167,54 @@ class Client extends openapi_core_1.default {
8062
8167
  let runtime = new $dara.RuntimeOptions({});
8063
8168
  return await this.setUserPrimaryOrganizationalUnitWithOptions(request, runtime);
8064
8169
  }
8170
+ /**
8171
+ * 解绑三方登录账户
8172
+ *
8173
+ * @param request - UnbindUserAuthnSourceMappingRequest
8174
+ * @param runtime - runtime options for this request RuntimeOptions
8175
+ * @returns UnbindUserAuthnSourceMappingResponse
8176
+ */
8177
+ async unbindUserAuthnSourceMappingWithOptions(request, runtime) {
8178
+ request.validate();
8179
+ let query = {};
8180
+ if (!$dara.isNull(request.identityProviderId)) {
8181
+ query["IdentityProviderId"] = request.identityProviderId;
8182
+ }
8183
+ if (!$dara.isNull(request.instanceId)) {
8184
+ query["InstanceId"] = request.instanceId;
8185
+ }
8186
+ if (!$dara.isNull(request.userExternalId)) {
8187
+ query["UserExternalId"] = request.userExternalId;
8188
+ }
8189
+ if (!$dara.isNull(request.userId)) {
8190
+ query["UserId"] = request.userId;
8191
+ }
8192
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8193
+ query: openapi_core_2.OpenApiUtil.query(query),
8194
+ });
8195
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8196
+ action: "UnbindUserAuthnSourceMapping",
8197
+ version: "2021-12-01",
8198
+ protocol: "HTTPS",
8199
+ pathname: "/",
8200
+ method: "POST",
8201
+ authType: "AK",
8202
+ style: "RPC",
8203
+ reqBodyType: "formData",
8204
+ bodyType: "json",
8205
+ });
8206
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UnbindUserAuthnSourceMappingResponse({}));
8207
+ }
8208
+ /**
8209
+ * 解绑三方登录账户
8210
+ *
8211
+ * @param request - UnbindUserAuthnSourceMappingRequest
8212
+ * @returns UnbindUserAuthnSourceMappingResponse
8213
+ */
8214
+ async unbindUserAuthnSourceMapping(request) {
8215
+ let runtime = new $dara.RuntimeOptions({});
8216
+ return await this.unbindUserAuthnSourceMappingWithOptions(request, runtime);
8217
+ }
8065
8218
  /**
8066
8219
  * Unlocks an Employee Identity and Access Management (EIAM) account of Identity as a Service (IDaaS) that is locked.
8067
8220
  *