tencentcloud-sdk-nodejs-cam 4.0.319 → 4.0.320

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.
@@ -20,12 +20,14 @@ import {
20
20
  SubAccountUser,
21
21
  ListAttachedRolePoliciesResponse,
22
22
  LoginActionFlagIntl,
23
+ UpdateUserOIDCConfigResponse,
23
24
  ListAccessKeysRequest,
24
25
  SetMfaFlagResponse,
25
26
  UpdateSAMLProviderRequest,
26
27
  DeleteUserRequest,
27
28
  GetRolePermissionBoundaryResponse,
28
29
  DescribeRoleListResponse,
30
+ UpdatePolicyResponse,
29
31
  CreatePolicyResponse,
30
32
  GetRoleRequest,
31
33
  CreateServiceLinkedRoleRequest,
@@ -49,6 +51,7 @@ import {
49
51
  GetCustomMFATokenInfoRequest,
50
52
  DescribeRoleListRequest,
51
53
  DescribeUserSAMLConfigRequest,
54
+ PutRolePermissionsBoundaryRequest,
52
55
  GetGroupRequest,
53
56
  DeleteRoleResponse,
54
57
  PolicyVersionItem,
@@ -74,6 +77,7 @@ import {
74
77
  DescribeSafeAuthFlagResponse,
75
78
  CreatePolicyVersionRequest,
76
79
  SecretIdLastUsed,
80
+ CreateUserOIDCConfigResponse,
77
81
  ListAttachedUserAllPoliciesResponse,
78
82
  DeleteGroupRequest,
79
83
  GetUserResponse,
@@ -83,6 +87,7 @@ import {
83
87
  ListPoliciesGrantingServiceAccessResponse,
84
88
  DeleteRolePermissionsBoundaryRequest,
85
89
  StrategyInfo,
90
+ DescribeUserOIDCConfigResponse,
86
91
  DeletePolicyRequest,
87
92
  GroupInfo,
88
93
  AddUserRequest,
@@ -91,6 +96,7 @@ import {
91
96
  DeleteRoleRequest,
92
97
  ListWeChatWorkSubAccountsRequest,
93
98
  UpdateRoleConsoleLoginRequest,
99
+ ListCollaboratorsRequest,
94
100
  GetCustomMFATokenInfoResponse,
95
101
  UpdateAssumeRolePolicyResponse,
96
102
  GetPolicyVersionRequest,
@@ -102,13 +108,14 @@ import {
102
108
  CreateGroupRequest,
103
109
  SAMLProviderInfo,
104
110
  ListGrantServiceAccessPolicy,
111
+ DisableUserSSORequest,
105
112
  ListPoliciesGrantingServiceAccessRequest,
106
113
  UpdateSAMLProviderResponse,
107
114
  UpdateUserRequest,
108
115
  ListWeChatWorkSubAccountsResponse,
109
116
  CreateSAMLProviderRequest,
110
117
  AttachPolicyInfo,
111
- PutRolePermissionsBoundaryRequest,
118
+ DisableUserSSOResponse,
112
119
  UpdateRoleConsoleLoginResponse,
113
120
  AttachRolePolicyRequest,
114
121
  ConsumeCustomMFATokenResponse,
@@ -126,8 +133,8 @@ import {
126
133
  GetAccountSummaryResponse,
127
134
  CreateServiceLinkedRoleResponse,
128
135
  ListUsersRequest,
129
- ListCollaboratorsRequest,
130
- UpdatePolicyResponse,
136
+ GetSAMLProviderResponse,
137
+ CreateUserOIDCConfigRequest,
131
138
  AttachGroupPolicyResponse,
132
139
  UpdateGroupResponse,
133
140
  ListEntitiesForPolicyRequest,
@@ -143,15 +150,17 @@ import {
143
150
  ListGrantServiceAccessNode,
144
151
  GetPolicyVersionResponse,
145
152
  CreateRoleResponse,
146
- GetSAMLProviderResponse,
153
+ AttachGroupPolicyRequest,
147
154
  DescribeSafeAuthFlagIntlResponse,
148
155
  ListPolicyVersionsResponse,
149
156
  GetPolicyRequest,
150
157
  DescribeSafeAuthFlagIntlRequest,
151
158
  SetDefaultPolicyVersionRequest,
159
+ UpdateUserOIDCConfigRequest,
152
160
  AddUserToGroupRequest,
153
161
  RemoveUserFromGroupResponse,
154
162
  DetachRolePolicyResponse,
163
+ DescribeUserOIDCConfigRequest,
155
164
  AttachedPolicyOfRole,
156
165
  PutUserPermissionsBoundaryRequest,
157
166
  ListSAMLProvidersResponse,
@@ -165,7 +174,6 @@ import {
165
174
  DeleteServiceLinkedRoleResponse,
166
175
  GetPolicyResponse,
167
176
  DescribeSafeAuthFlagRequest,
168
- AttachGroupPolicyRequest,
169
177
  DeleteServiceLinkedRoleRequest,
170
178
  AttachEntityOfPolicy,
171
179
  ListUsersForGroupResponse,
@@ -300,6 +308,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
300
308
  return this.request("CreateRole", req, cb)
301
309
  }
302
310
 
311
+ /**
312
+ * 修改用户OIDC配置
313
+ */
314
+ async UpdateUserOIDCConfig(
315
+ req: UpdateUserOIDCConfigRequest,
316
+ cb?: (error: string, rep: UpdateUserOIDCConfigResponse) => void
317
+ ): Promise<UpdateUserOIDCConfigResponse> {
318
+ return this.request("UpdateUserOIDCConfig", req, cb)
319
+ }
320
+
303
321
  /**
304
322
  * 设置角色权限边界
305
323
  */
@@ -530,6 +548,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
530
548
  return this.request("GetServiceLinkedRoleDeletionStatus", req, cb)
531
549
  }
532
550
 
551
+ /**
552
+ * 查询用户OIDC配置
553
+ */
554
+ async DescribeUserOIDCConfig(
555
+ req?: DescribeUserOIDCConfigRequest,
556
+ cb?: (error: string, rep: DescribeUserOIDCConfigResponse) => void
557
+ ): Promise<DescribeUserOIDCConfigResponse> {
558
+ return this.request("DescribeUserOIDCConfig", req, cb)
559
+ }
560
+
533
561
  /**
534
562
  * 获取所有已授权服务
535
563
  */
@@ -690,6 +718,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
690
718
  return this.request("DescribeSafeAuthFlagIntl", req, cb)
691
719
  }
692
720
 
721
+ /**
722
+ * 更新用户组
723
+ */
724
+ async UpdateGroup(
725
+ req: UpdateGroupRequest,
726
+ cb?: (error: string, rep: UpdateGroupResponse) => void
727
+ ): Promise<UpdateGroupResponse> {
728
+ return this.request("UpdateGroup", req, cb)
729
+ }
730
+
693
731
  /**
694
732
  * 本接口(GetRole)用于获取指定角色的详细信息。
695
733
  */
@@ -830,6 +868,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
830
868
  return this.request("ListEntitiesForPolicy", req, cb)
831
869
  }
832
870
 
871
+ /**
872
+ * 创建用户OIDC配置。只能创建一个用户OIDC身份提供商,并且创建用户OIDC配置之后会自动关闭用户SAML SSO身份提供商。
873
+ */
874
+ async CreateUserOIDCConfig(
875
+ req: CreateUserOIDCConfigRequest,
876
+ cb?: (error: string, rep: CreateUserOIDCConfigResponse) => void
877
+ ): Promise<CreateUserOIDCConfigResponse> {
878
+ return this.request("CreateUserOIDCConfig", req, cb)
879
+ }
880
+
833
881
  /**
834
882
  * 获取企业微信子用户列表
835
883
  */
@@ -861,13 +909,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
861
909
  }
862
910
 
863
911
  /**
864
- * 更新用户组
912
+ * 禁用用户SSO
865
913
  */
866
- async UpdateGroup(
867
- req: UpdateGroupRequest,
868
- cb?: (error: string, rep: UpdateGroupResponse) => void
869
- ): Promise<UpdateGroupResponse> {
870
- return this.request("UpdateGroup", req, cb)
914
+ async DisableUserSSO(
915
+ req?: DisableUserSSORequest,
916
+ cb?: (error: string, rep: DisableUserSSOResponse) => void
917
+ ): Promise<DisableUserSSOResponse> {
918
+ return this.request("DisableUserSSO", req, cb)
871
919
  }
872
920
 
873
921
  /**
@@ -117,6 +117,16 @@ export interface LoginActionFlagIntl {
117
117
  Mail?: number
118
118
  }
119
119
 
120
+ /**
121
+ * UpdateUserOIDCConfig返回参数结构体
122
+ */
123
+ export interface UpdateUserOIDCConfigResponse {
124
+ /**
125
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
126
+ */
127
+ RequestId?: string
128
+ }
129
+
120
130
  /**
121
131
  * ListAccessKeys请求参数结构体
122
132
  */
@@ -233,6 +243,22 @@ export interface DescribeRoleListResponse {
233
243
  RequestId?: string
234
244
  }
235
245
 
246
+ /**
247
+ * UpdatePolicy返回参数结构体
248
+ */
249
+ export interface UpdatePolicyResponse {
250
+ /**
251
+ * 策略id,入参是PolicyName时,才会返回
252
+ 注意:此字段可能返回 null,表示取不到有效值。
253
+ */
254
+ PolicyId: number
255
+
256
+ /**
257
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
258
+ */
259
+ RequestId?: string
260
+ }
261
+
236
262
  /**
237
263
  * CreatePolicy返回参数结构体
238
264
  */
@@ -570,6 +596,26 @@ export interface DescribeRoleListRequest {
570
596
  */
571
597
  export type DescribeUserSAMLConfigRequest = null
572
598
 
599
+ /**
600
+ * PutRolePermissionsBoundary请求参数结构体
601
+ */
602
+ export interface PutRolePermissionsBoundaryRequest {
603
+ /**
604
+ * 策略ID
605
+ */
606
+ PolicyId: number
607
+
608
+ /**
609
+ * 角色ID(与角色名至少填一个)
610
+ */
611
+ RoleId?: string
612
+
613
+ /**
614
+ * 角色名(与角色ID至少填一个)
615
+ */
616
+ RoleName?: string
617
+ }
618
+
573
619
  /**
574
620
  * GetGroup请求参数结构体
575
621
  */
@@ -1075,6 +1121,16 @@ export interface SecretIdLastUsed {
1075
1121
  LastUsedDate: string
1076
1122
  }
1077
1123
 
1124
+ /**
1125
+ * CreateUserOIDCConfig返回参数结构体
1126
+ */
1127
+ export interface CreateUserOIDCConfigResponse {
1128
+ /**
1129
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1130
+ */
1131
+ RequestId?: string
1132
+ }
1133
+
1078
1134
  /**
1079
1135
  * ListAttachedUserAllPolicies返回参数结构体
1080
1136
  */
@@ -1351,6 +1407,71 @@ export interface StrategyInfo {
1351
1407
  UpdateTime: string
1352
1408
  }
1353
1409
 
1410
+ /**
1411
+ * DescribeUserOIDCConfig返回参数结构体
1412
+ */
1413
+ export interface DescribeUserOIDCConfigResponse {
1414
+ /**
1415
+ * 身份提供商类型。 12:用户OIDC身份提供商
1416
+ */
1417
+ ProviderType: number
1418
+
1419
+ /**
1420
+ * 身份提供商URL
1421
+ */
1422
+ IdentityUrl: string
1423
+
1424
+ /**
1425
+ * 签名公钥
1426
+ */
1427
+ IdentityKey: string
1428
+
1429
+ /**
1430
+ * 客户端id
1431
+ */
1432
+ ClientId: string
1433
+
1434
+ /**
1435
+ * 状态:0:未设置,11:已开启,2:已禁用
1436
+ */
1437
+ Status: number
1438
+
1439
+ /**
1440
+ * 授权请求Endpoint
1441
+ */
1442
+ AuthorizationEndpoint: string
1443
+
1444
+ /**
1445
+ * 授权请求Scope
1446
+ */
1447
+ Scope: Array<string>
1448
+
1449
+ /**
1450
+ * 授权请求Response type
1451
+ */
1452
+ ResponseType: string
1453
+
1454
+ /**
1455
+ * 授权请求Response mode
1456
+ */
1457
+ ResponseMode: string
1458
+
1459
+ /**
1460
+ * 映射字段名称
1461
+ */
1462
+ MappingFiled: string
1463
+
1464
+ /**
1465
+ * 描述
1466
+ */
1467
+ Description: string
1468
+
1469
+ /**
1470
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1471
+ */
1472
+ RequestId?: string
1473
+ }
1474
+
1354
1475
  /**
1355
1476
  * DeletePolicy请求参数结构体
1356
1477
  */
@@ -1536,6 +1657,21 @@ export interface UpdateRoleConsoleLoginRequest {
1536
1657
  RoleName?: string
1537
1658
  }
1538
1659
 
1660
+ /**
1661
+ * ListCollaborators请求参数结构体
1662
+ */
1663
+ export interface ListCollaboratorsRequest {
1664
+ /**
1665
+ * 分页条数,缺省为20
1666
+ */
1667
+ Limit?: number
1668
+
1669
+ /**
1670
+ * 分页起始值,缺省为0
1671
+ */
1672
+ Offset?: number
1673
+ }
1674
+
1539
1675
  /**
1540
1676
  * GetCustomMFATokenInfo返回参数结构体
1541
1677
  */
@@ -1753,6 +1889,11 @@ export interface ListGrantServiceAccessPolicy {
1753
1889
  PolicyDescription: string
1754
1890
  }
1755
1891
 
1892
+ /**
1893
+ * DisableUserSSO请求参数结构体
1894
+ */
1895
+ export type DisableUserSSORequest = null
1896
+
1756
1897
  /**
1757
1898
  * ListPoliciesGrantingServiceAccess请求参数结构体
1758
1899
  */
@@ -1944,23 +2085,13 @@ export interface AttachPolicyInfo {
1944
2085
  }
1945
2086
 
1946
2087
  /**
1947
- * PutRolePermissionsBoundary请求参数结构体
2088
+ * DisableUserSSO返回参数结构体
1948
2089
  */
1949
- export interface PutRolePermissionsBoundaryRequest {
1950
- /**
1951
- * 策略ID
1952
- */
1953
- PolicyId: number
1954
-
2090
+ export interface DisableUserSSOResponse {
1955
2091
  /**
1956
- * 角色ID(与角色名至少填一个)
1957
- */
1958
- RoleId?: string
1959
-
1960
- /**
1961
- * 角色名(与角色ID至少填一个)
2092
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1962
2093
  */
1963
- RoleName?: string
2094
+ RequestId?: string
1964
2095
  }
1965
2096
 
1966
2097
  /**
@@ -2244,34 +2375,89 @@ export interface CreateServiceLinkedRoleResponse {
2244
2375
  export type ListUsersRequest = null
2245
2376
 
2246
2377
  /**
2247
- * ListCollaborators请求参数结构体
2378
+ * GetSAMLProvider返回参数结构体
2248
2379
  */
2249
- export interface ListCollaboratorsRequest {
2380
+ export interface GetSAMLProviderResponse {
2250
2381
  /**
2251
- * 分页条数,缺省为20
2382
+ * SAML身份提供商名称
2252
2383
  */
2253
- Limit?: number
2384
+ Name: string
2254
2385
 
2255
2386
  /**
2256
- * 分页起始值,缺省为0
2387
+ * SAML身份提供商描述
2257
2388
  */
2258
- Offset?: number
2389
+ Description: string
2390
+
2391
+ /**
2392
+ * SAML身份提供商创建时间
2393
+ */
2394
+ CreateTime: string
2395
+
2396
+ /**
2397
+ * SAML身份提供商上次修改时间
2398
+ */
2399
+ ModifyTime: string
2400
+
2401
+ /**
2402
+ * SAML身份提供商元数据文档
2403
+ */
2404
+ SAMLMetadata: string
2405
+
2406
+ /**
2407
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2408
+ */
2409
+ RequestId?: string
2259
2410
  }
2260
2411
 
2261
2412
  /**
2262
- * UpdatePolicy返回参数结构体
2413
+ * CreateUserOIDCConfig请求参数结构体
2263
2414
  */
2264
- export interface UpdatePolicyResponse {
2415
+ export interface CreateUserOIDCConfigRequest {
2265
2416
  /**
2266
- * 策略id,入参是PolicyName时,才会返回
2267
- 注意:此字段可能返回 null,表示取不到有效值。
2417
+ * 身份提供商URL。OpenID Connect身份提供商标识。
2418
+ 对应企业IdP提供的Openid-configuration中"issuer"字段的值。
2268
2419
  */
2269
- PolicyId: number
2420
+ IdentityUrl: string
2270
2421
 
2271
2422
  /**
2272
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2423
+ * 签名公钥,需要base64_encode。验证OpenID Connect身份提供商ID Token签名的公钥。为了您的帐号安全,建议您定期轮换签名公钥。
2273
2424
  */
2274
- RequestId?: string
2425
+ IdentityKey: string
2426
+
2427
+ /**
2428
+ * 客户端ID,在OpenID Connect身份提供商注册的客户端ID。
2429
+ */
2430
+ ClientId: string
2431
+
2432
+ /**
2433
+ * 授权请求Endpoint,OpenID Connect身份提供商授权地址。对应企业IdP提供的Openid-configuration中"authorization_endpoint"字段的值。
2434
+ */
2435
+ AuthorizationEndpoint: string
2436
+
2437
+ /**
2438
+ * 授权请求Response type,固定值id_token
2439
+ */
2440
+ ResponseType: string
2441
+
2442
+ /**
2443
+ * 授权请求Response mode。授权请求返回模式,form_post和fragment两种可选模式,推荐选择form_post模式。
2444
+ */
2445
+ ResponseMode: string
2446
+
2447
+ /**
2448
+ * 映射字段名称。IdP的id_token中哪一个字段映射到子用户的用户名,通常是sub或者name字段
2449
+ */
2450
+ MappingFiled: string
2451
+
2452
+ /**
2453
+ * 授权请求Scope。openid; email;profile。授权请求信息范围。默认必选openid。
2454
+ */
2455
+ Scope?: Array<string>
2456
+
2457
+ /**
2458
+ * 描述
2459
+ */
2460
+ Description?: string
2275
2461
  }
2276
2462
 
2277
2463
  /**
@@ -2532,38 +2718,18 @@ export interface CreateRoleResponse {
2532
2718
  }
2533
2719
 
2534
2720
  /**
2535
- * GetSAMLProvider返回参数结构体
2721
+ * AttachGroupPolicy请求参数结构体
2536
2722
  */
2537
- export interface GetSAMLProviderResponse {
2538
- /**
2539
- * SAML身份提供商名称
2540
- */
2541
- Name: string
2542
-
2543
- /**
2544
- * SAML身份提供商描述
2545
- */
2546
- Description: string
2547
-
2548
- /**
2549
- * SAML身份提供商创建时间
2550
- */
2551
- CreateTime: string
2552
-
2553
- /**
2554
- * SAML身份提供商上次修改时间
2555
- */
2556
- ModifyTime: string
2557
-
2723
+ export interface AttachGroupPolicyRequest {
2558
2724
  /**
2559
- * SAML身份提供商元数据文档
2725
+ * 策略 id
2560
2726
  */
2561
- SAMLMetadata: string
2727
+ PolicyId: number
2562
2728
 
2563
2729
  /**
2564
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2730
+ * 用户组 id
2565
2731
  */
2566
- RequestId?: string
2732
+ AttachGroupId: number
2567
2733
  }
2568
2734
 
2569
2735
  /**
@@ -2637,6 +2803,57 @@ export interface SetDefaultPolicyVersionRequest {
2637
2803
  VersionId: number
2638
2804
  }
2639
2805
 
2806
+ /**
2807
+ * UpdateUserOIDCConfig请求参数结构体
2808
+ */
2809
+ export interface UpdateUserOIDCConfigRequest {
2810
+ /**
2811
+ * 身份提供商URL。OpenID Connect身份提供商标识。
2812
+ 对应企业IdP提供的Openid-configuration中"issuer"字段的值。
2813
+ */
2814
+ IdentityUrl: string
2815
+
2816
+ /**
2817
+ * 签名公钥,需要base64_encode。验证OpenID Connect身份提供商ID Token签名的公钥。为了您的帐号安全,建议您定期轮换签名公钥。
2818
+ */
2819
+ IdentityKey: string
2820
+
2821
+ /**
2822
+ * 客户端ID,在OpenID Connect身份提供商注册的客户端ID。
2823
+ */
2824
+ ClientId: string
2825
+
2826
+ /**
2827
+ * 授权请求Endpoint,OpenID Connect身份提供商授权地址。对应企业IdP提供的Openid-configuration中"authorization_endpoint"字段的值。
2828
+ */
2829
+ AuthorizationEndpoint: string
2830
+
2831
+ /**
2832
+ * 授权请求Response type,固定值id_token。
2833
+ */
2834
+ ResponseType: string
2835
+
2836
+ /**
2837
+ * 授权请求Response mode。授权请求返回模式,form_post和fragment两种可选模式,推荐选择form_post模式。
2838
+ */
2839
+ ResponseMode: string
2840
+
2841
+ /**
2842
+ * 映射字段名称。IdP的id_token中哪一个字段映射到子用户的用户名,通常是sub或者name字段
2843
+ */
2844
+ MappingFiled: string
2845
+
2846
+ /**
2847
+ * 授权请求Scope。openid; email;profile。授权请求信息范围。默认必选openid。
2848
+ */
2849
+ Scope?: Array<string>
2850
+
2851
+ /**
2852
+ * 描述
2853
+ */
2854
+ Description?: string
2855
+ }
2856
+
2640
2857
  /**
2641
2858
  * AddUserToGroup请求参数结构体
2642
2859
  */
@@ -2667,6 +2884,11 @@ export interface DetachRolePolicyResponse {
2667
2884
  RequestId?: string
2668
2885
  }
2669
2886
 
2887
+ /**
2888
+ * DescribeUserOIDCConfig请求参数结构体
2889
+ */
2890
+ export type DescribeUserOIDCConfigRequest = null
2891
+
2670
2892
  /**
2671
2893
  * 角色关联的策略信息
2672
2894
  */
@@ -2992,21 +3214,6 @@ export interface GetPolicyResponse {
2992
3214
  */
2993
3215
  export type DescribeSafeAuthFlagRequest = null
2994
3216
 
2995
- /**
2996
- * AttachGroupPolicy请求参数结构体
2997
- */
2998
- export interface AttachGroupPolicyRequest {
2999
- /**
3000
- * 策略 id
3001
- */
3002
- PolicyId: number
3003
-
3004
- /**
3005
- * 用户组 id
3006
- */
3007
- AttachGroupId: number
3008
- }
3009
-
3010
3217
  /**
3011
3218
  * DeleteServiceLinkedRole请求参数结构体
3012
3219
  */