@scaleway/sdk-iam 2.1.1 → 2.2.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.
- package/dist/v1alpha1/api.gen.js +170 -133
- package/dist/v1alpha1/index.gen.d.ts +1 -1
- package/dist/v1alpha1/marshalling.gen.js +33 -72
- package/package.json +1 -1
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -14,7 +14,10 @@ class API extends API$1 {
|
|
|
14
14
|
["order_by", request.orderBy],
|
|
15
15
|
["organization_id", request.organizationId],
|
|
16
16
|
["page", request.page],
|
|
17
|
-
[
|
|
17
|
+
[
|
|
18
|
+
"page_size",
|
|
19
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
20
|
+
],
|
|
18
21
|
["project_id", request.projectId]
|
|
19
22
|
)
|
|
20
23
|
},
|
|
@@ -79,12 +82,10 @@ class API extends API$1 {
|
|
|
79
82
|
*
|
|
80
83
|
* @param request - The request {@link DeleteSSHKeyRequest}
|
|
81
84
|
*/
|
|
82
|
-
deleteSSHKey = (request) => this.client.fetch(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
);
|
|
85
|
+
deleteSSHKey = (request) => this.client.fetch({
|
|
86
|
+
method: "DELETE",
|
|
87
|
+
path: `/iam/v1alpha1/ssh-keys/${validatePathParam("sshKeyId", request.sshKeyId)}`
|
|
88
|
+
});
|
|
88
89
|
pageOfListUsers = (request = {}) => this.client.fetch(
|
|
89
90
|
{
|
|
90
91
|
method: "GET",
|
|
@@ -92,9 +93,15 @@ class API extends API$1 {
|
|
|
92
93
|
urlParams: urlParams(
|
|
93
94
|
["mfa", request.mfa],
|
|
94
95
|
["order_by", request.orderBy],
|
|
95
|
-
[
|
|
96
|
+
[
|
|
97
|
+
"organization_id",
|
|
98
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
99
|
+
],
|
|
96
100
|
["page", request.page],
|
|
97
|
-
[
|
|
101
|
+
[
|
|
102
|
+
"page_size",
|
|
103
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
104
|
+
],
|
|
98
105
|
["tag", request.tag],
|
|
99
106
|
["type", request.type],
|
|
100
107
|
["user_ids", request.userIds]
|
|
@@ -144,12 +151,10 @@ class API extends API$1 {
|
|
|
144
151
|
*
|
|
145
152
|
* @param request - The request {@link DeleteUserRequest}
|
|
146
153
|
*/
|
|
147
|
-
deleteUser = (request) => this.client.fetch(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
);
|
|
154
|
+
deleteUser = (request) => this.client.fetch({
|
|
155
|
+
method: "DELETE",
|
|
156
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}`
|
|
157
|
+
});
|
|
153
158
|
/**
|
|
154
159
|
* Create a new user. Create a new user. You must define the `organization_id` in your request. If you are adding a member, enter the member's details. If you are adding a guest, you must define the `email` and not add the member attribute.
|
|
155
160
|
*
|
|
@@ -238,14 +243,12 @@ class API extends API$1 {
|
|
|
238
243
|
*
|
|
239
244
|
* @param request - The request {@link DeleteUserMFAOTPRequest}
|
|
240
245
|
*/
|
|
241
|
-
deleteUserMFAOTP = (request) => this.client.fetch(
|
|
242
|
-
{
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
);
|
|
246
|
+
deleteUserMFAOTP = (request) => this.client.fetch({
|
|
247
|
+
body: "{}",
|
|
248
|
+
headers: jsonContentHeaders,
|
|
249
|
+
method: "DELETE",
|
|
250
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/mfa-otp`
|
|
251
|
+
});
|
|
249
252
|
/**
|
|
250
253
|
* Lock a member. Lock a member. A locked member cannot log in or use API keys until the locked status is removed.
|
|
251
254
|
*
|
|
@@ -286,9 +289,7 @@ class API extends API$1 {
|
|
|
286
289
|
{
|
|
287
290
|
method: "GET",
|
|
288
291
|
path: `/iam/v1alpha1/grace-periods`,
|
|
289
|
-
urlParams: urlParams(
|
|
290
|
-
["user_id", request.userId]
|
|
291
|
-
)
|
|
292
|
+
urlParams: urlParams(["user_id", request.userId])
|
|
292
293
|
},
|
|
293
294
|
unmarshalListGracePeriodsResponse
|
|
294
295
|
);
|
|
@@ -308,26 +309,22 @@ class API extends API$1 {
|
|
|
308
309
|
},
|
|
309
310
|
unmarshalInitiateUserConnectionResponse
|
|
310
311
|
);
|
|
311
|
-
joinUserConnection = (request) => this.client.fetch(
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
method: "POST",
|
|
328
|
-
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/remove-connection`
|
|
329
|
-
}
|
|
330
|
-
);
|
|
312
|
+
joinUserConnection = (request) => this.client.fetch({
|
|
313
|
+
body: JSON.stringify(
|
|
314
|
+
marshalJoinUserConnectionRequest(request, this.client.settings)
|
|
315
|
+
),
|
|
316
|
+
headers: jsonContentHeaders,
|
|
317
|
+
method: "POST",
|
|
318
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/join-connection`
|
|
319
|
+
});
|
|
320
|
+
removeUserConnection = (request) => this.client.fetch({
|
|
321
|
+
body: JSON.stringify(
|
|
322
|
+
marshalRemoveUserConnectionRequest(request, this.client.settings)
|
|
323
|
+
),
|
|
324
|
+
headers: jsonContentHeaders,
|
|
325
|
+
method: "POST",
|
|
326
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/remove-connection`
|
|
327
|
+
});
|
|
331
328
|
pageOfListApplications = (request = {}) => this.client.fetch(
|
|
332
329
|
{
|
|
333
330
|
method: "GET",
|
|
@@ -337,9 +334,15 @@ class API extends API$1 {
|
|
|
337
334
|
["editable", request.editable],
|
|
338
335
|
["name", request.name],
|
|
339
336
|
["order_by", request.orderBy],
|
|
340
|
-
[
|
|
337
|
+
[
|
|
338
|
+
"organization_id",
|
|
339
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
340
|
+
],
|
|
341
341
|
["page", request.page],
|
|
342
|
-
[
|
|
342
|
+
[
|
|
343
|
+
"page_size",
|
|
344
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
345
|
+
],
|
|
343
346
|
["tag", request.tag]
|
|
344
347
|
)
|
|
345
348
|
},
|
|
@@ -404,12 +407,10 @@ class API extends API$1 {
|
|
|
404
407
|
*
|
|
405
408
|
* @param request - The request {@link DeleteApplicationRequest}
|
|
406
409
|
*/
|
|
407
|
-
deleteApplication = (request) => this.client.fetch(
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
412
|
-
);
|
|
410
|
+
deleteApplication = (request) => this.client.fetch({
|
|
411
|
+
method: "DELETE",
|
|
412
|
+
path: `/iam/v1alpha1/applications/${validatePathParam("applicationId", request.applicationId)}`
|
|
413
|
+
});
|
|
413
414
|
pageOfListGroups = (request = {}) => this.client.fetch(
|
|
414
415
|
{
|
|
415
416
|
method: "GET",
|
|
@@ -419,9 +420,15 @@ class API extends API$1 {
|
|
|
419
420
|
["group_ids", request.groupIds],
|
|
420
421
|
["name", request.name],
|
|
421
422
|
["order_by", request.orderBy],
|
|
422
|
-
[
|
|
423
|
+
[
|
|
424
|
+
"organization_id",
|
|
425
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
426
|
+
],
|
|
423
427
|
["page", request.page],
|
|
424
|
-
[
|
|
428
|
+
[
|
|
429
|
+
"page_size",
|
|
430
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
431
|
+
],
|
|
425
432
|
["tag", request.tag],
|
|
426
433
|
["user_ids", request.userIds]
|
|
427
434
|
)
|
|
@@ -555,12 +562,10 @@ class API extends API$1 {
|
|
|
555
562
|
*
|
|
556
563
|
* @param request - The request {@link DeleteGroupRequest}
|
|
557
564
|
*/
|
|
558
|
-
deleteGroup = (request) => this.client.fetch(
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
);
|
|
565
|
+
deleteGroup = (request) => this.client.fetch({
|
|
566
|
+
method: "DELETE",
|
|
567
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}`
|
|
568
|
+
});
|
|
564
569
|
pageOfListPolicies = (request = {}) => this.client.fetch(
|
|
565
570
|
{
|
|
566
571
|
method: "GET",
|
|
@@ -571,9 +576,15 @@ class API extends API$1 {
|
|
|
571
576
|
["group_ids", request.groupIds],
|
|
572
577
|
["no_principal", request.noPrincipal],
|
|
573
578
|
["order_by", request.orderBy],
|
|
574
|
-
[
|
|
579
|
+
[
|
|
580
|
+
"organization_id",
|
|
581
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
582
|
+
],
|
|
575
583
|
["page", request.page],
|
|
576
|
-
[
|
|
584
|
+
[
|
|
585
|
+
"page_size",
|
|
586
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
587
|
+
],
|
|
577
588
|
["policy_ids", request.policyIds],
|
|
578
589
|
["policy_name", request.policyName],
|
|
579
590
|
["tag", request.tag],
|
|
@@ -641,12 +652,10 @@ class API extends API$1 {
|
|
|
641
652
|
*
|
|
642
653
|
* @param request - The request {@link DeletePolicyRequest}
|
|
643
654
|
*/
|
|
644
|
-
deletePolicy = (request) => this.client.fetch(
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
);
|
|
655
|
+
deletePolicy = (request) => this.client.fetch({
|
|
656
|
+
method: "DELETE",
|
|
657
|
+
path: `/iam/v1alpha1/policies/${validatePathParam("policyId", request.policyId)}`
|
|
658
|
+
});
|
|
650
659
|
/**
|
|
651
660
|
* Clone a policy. Clone a policy. You must define specify the `policy_id` parameter in your request.
|
|
652
661
|
*
|
|
@@ -685,7 +694,10 @@ class API extends API$1 {
|
|
|
685
694
|
path: `/iam/v1alpha1/rules`,
|
|
686
695
|
urlParams: urlParams(
|
|
687
696
|
["page", request.page],
|
|
688
|
-
[
|
|
697
|
+
[
|
|
698
|
+
"page_size",
|
|
699
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
700
|
+
],
|
|
689
701
|
["policy_id", request.policyId]
|
|
690
702
|
)
|
|
691
703
|
},
|
|
@@ -704,9 +716,15 @@ class API extends API$1 {
|
|
|
704
716
|
path: `/iam/v1alpha1/permission-sets`,
|
|
705
717
|
urlParams: urlParams(
|
|
706
718
|
["order_by", request.orderBy],
|
|
707
|
-
[
|
|
719
|
+
[
|
|
720
|
+
"organization_id",
|
|
721
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
722
|
+
],
|
|
708
723
|
["page", request.page],
|
|
709
|
-
[
|
|
724
|
+
[
|
|
725
|
+
"page_size",
|
|
726
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
727
|
+
]
|
|
710
728
|
)
|
|
711
729
|
},
|
|
712
730
|
unmarshalListPermissionSetsResponse
|
|
@@ -717,7 +735,11 @@ class API extends API$1 {
|
|
|
717
735
|
* @param request - The request {@link ListPermissionSetsRequest}
|
|
718
736
|
* @returns A Promise of ListPermissionSetsResponse
|
|
719
737
|
*/
|
|
720
|
-
listPermissionSets = (request = {}) => enrichForPagination(
|
|
738
|
+
listPermissionSets = (request = {}) => enrichForPagination(
|
|
739
|
+
"permissionSets",
|
|
740
|
+
this.pageOfListPermissionSets,
|
|
741
|
+
request
|
|
742
|
+
);
|
|
721
743
|
pageOfListAPIKeys = (request = {}) => this.client.fetch(
|
|
722
744
|
{
|
|
723
745
|
method: "GET",
|
|
@@ -731,19 +753,21 @@ class API extends API$1 {
|
|
|
731
753
|
["editable", request.editable],
|
|
732
754
|
["expired", request.expired],
|
|
733
755
|
["order_by", request.orderBy],
|
|
734
|
-
[
|
|
756
|
+
[
|
|
757
|
+
"organization_id",
|
|
758
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
759
|
+
],
|
|
735
760
|
["page", request.page],
|
|
736
|
-
[
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
param: "user_id",
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
]))
|
|
761
|
+
[
|
|
762
|
+
"page_size",
|
|
763
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
764
|
+
],
|
|
765
|
+
...Object.entries(
|
|
766
|
+
resolveOneOf([
|
|
767
|
+
{ param: "application_id", value: request.applicationId },
|
|
768
|
+
{ param: "user_id", value: request.userId }
|
|
769
|
+
])
|
|
770
|
+
)
|
|
747
771
|
)
|
|
748
772
|
},
|
|
749
773
|
unmarshalListAPIKeysResponse
|
|
@@ -807,21 +831,25 @@ class API extends API$1 {
|
|
|
807
831
|
*
|
|
808
832
|
* @param request - The request {@link DeleteAPIKeyRequest}
|
|
809
833
|
*/
|
|
810
|
-
deleteAPIKey = (request) => this.client.fetch(
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
815
|
-
);
|
|
834
|
+
deleteAPIKey = (request) => this.client.fetch({
|
|
835
|
+
method: "DELETE",
|
|
836
|
+
path: `/iam/v1alpha1/api-keys/${validatePathParam("accessKey", request.accessKey)}`
|
|
837
|
+
});
|
|
816
838
|
pageOfListQuota = (request = {}) => this.client.fetch(
|
|
817
839
|
{
|
|
818
840
|
method: "GET",
|
|
819
841
|
path: `/iam/v1alpha1/quota`,
|
|
820
842
|
urlParams: urlParams(
|
|
821
843
|
["order_by", request.orderBy],
|
|
822
|
-
[
|
|
844
|
+
[
|
|
845
|
+
"organization_id",
|
|
846
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
847
|
+
],
|
|
823
848
|
["page", request.page],
|
|
824
|
-
[
|
|
849
|
+
[
|
|
850
|
+
"page_size",
|
|
851
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
852
|
+
],
|
|
825
853
|
["quotum_names", request.quotumNames]
|
|
826
854
|
)
|
|
827
855
|
},
|
|
@@ -844,9 +872,10 @@ class API extends API$1 {
|
|
|
844
872
|
{
|
|
845
873
|
method: "GET",
|
|
846
874
|
path: `/iam/v1alpha1/quota/${validatePathParam("quotumName", request.quotumName)}`,
|
|
847
|
-
urlParams: urlParams(
|
|
848
|
-
|
|
849
|
-
|
|
875
|
+
urlParams: urlParams([
|
|
876
|
+
"organization_id",
|
|
877
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
878
|
+
])
|
|
850
879
|
},
|
|
851
880
|
unmarshalQuotum
|
|
852
881
|
);
|
|
@@ -859,7 +888,10 @@ class API extends API$1 {
|
|
|
859
888
|
["expired", request.expired],
|
|
860
889
|
["order_by", request.orderBy],
|
|
861
890
|
["page", request.page],
|
|
862
|
-
[
|
|
891
|
+
[
|
|
892
|
+
"page_size",
|
|
893
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
894
|
+
]
|
|
863
895
|
)
|
|
864
896
|
},
|
|
865
897
|
unmarshalListJWTsResponse
|
|
@@ -906,12 +938,10 @@ class API extends API$1 {
|
|
|
906
938
|
*
|
|
907
939
|
* @param request - The request {@link DeleteJWTRequest}
|
|
908
940
|
*/
|
|
909
|
-
deleteJWT = (request) => this.client.fetch(
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
}
|
|
914
|
-
);
|
|
941
|
+
deleteJWT = (request) => this.client.fetch({
|
|
942
|
+
method: "DELETE",
|
|
943
|
+
path: `/iam/v1alpha1/jwts/${validatePathParam("jti", request.jti)}`
|
|
944
|
+
});
|
|
915
945
|
pageOfListLogs = (request = {}) => this.client.fetch(
|
|
916
946
|
{
|
|
917
947
|
method: "GET",
|
|
@@ -921,9 +951,15 @@ class API extends API$1 {
|
|
|
921
951
|
["created_after", request.createdAfter],
|
|
922
952
|
["created_before", request.createdBefore],
|
|
923
953
|
["order_by", request.orderBy],
|
|
924
|
-
[
|
|
954
|
+
[
|
|
955
|
+
"organization_id",
|
|
956
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
957
|
+
],
|
|
925
958
|
["page", request.page],
|
|
926
|
-
[
|
|
959
|
+
[
|
|
960
|
+
"page_size",
|
|
961
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
962
|
+
],
|
|
927
963
|
["resource_type", request.resourceType],
|
|
928
964
|
["search", request.search]
|
|
929
965
|
)
|
|
@@ -972,7 +1008,10 @@ class API extends API$1 {
|
|
|
972
1008
|
updateOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
973
1009
|
{
|
|
974
1010
|
body: JSON.stringify(
|
|
975
|
-
marshalUpdateOrganizationSecuritySettingsRequest(
|
|
1011
|
+
marshalUpdateOrganizationSecuritySettingsRequest(
|
|
1012
|
+
request,
|
|
1013
|
+
this.client.settings
|
|
1014
|
+
)
|
|
976
1015
|
),
|
|
977
1016
|
headers: jsonContentHeaders,
|
|
978
1017
|
method: "PATCH",
|
|
@@ -1019,7 +1058,10 @@ class API extends API$1 {
|
|
|
1019
1058
|
updateOrganizationLoginMethods = (request = {}) => this.client.fetch(
|
|
1020
1059
|
{
|
|
1021
1060
|
body: JSON.stringify(
|
|
1022
|
-
marshalUpdateOrganizationLoginMethodsRequest(
|
|
1061
|
+
marshalUpdateOrganizationLoginMethodsRequest(
|
|
1062
|
+
request,
|
|
1063
|
+
this.client.settings
|
|
1064
|
+
)
|
|
1023
1065
|
),
|
|
1024
1066
|
headers: jsonContentHeaders,
|
|
1025
1067
|
method: "PATCH",
|
|
@@ -1077,12 +1119,10 @@ class API extends API$1 {
|
|
|
1077
1119
|
*
|
|
1078
1120
|
* @param request - The request {@link DeleteSamlRequest}
|
|
1079
1121
|
*/
|
|
1080
|
-
deleteSaml = (request) => this.client.fetch(
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
}
|
|
1085
|
-
);
|
|
1122
|
+
deleteSaml = (request) => this.client.fetch({
|
|
1123
|
+
method: "DELETE",
|
|
1124
|
+
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}`
|
|
1125
|
+
});
|
|
1086
1126
|
/**
|
|
1087
1127
|
* Parse SAML xml metadata file.
|
|
1088
1128
|
*
|
|
@@ -1135,12 +1175,10 @@ class API extends API$1 {
|
|
|
1135
1175
|
*
|
|
1136
1176
|
* @param request - The request {@link DeleteSamlCertificateRequest}
|
|
1137
1177
|
*/
|
|
1138
|
-
deleteSamlCertificate = (request) => this.client.fetch(
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
}
|
|
1143
|
-
);
|
|
1178
|
+
deleteSamlCertificate = (request) => this.client.fetch({
|
|
1179
|
+
method: "DELETE",
|
|
1180
|
+
path: `/iam/v1alpha1/saml-certificates/${validatePathParam("certificateId", request.certificateId)}`
|
|
1181
|
+
});
|
|
1144
1182
|
/**
|
|
1145
1183
|
* Get SCIM configuration of an Organization.
|
|
1146
1184
|
*
|
|
@@ -1174,12 +1212,10 @@ class API extends API$1 {
|
|
|
1174
1212
|
*
|
|
1175
1213
|
* @param request - The request {@link DeleteScimRequest}
|
|
1176
1214
|
*/
|
|
1177
|
-
deleteScim = (request) => this.client.fetch(
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}
|
|
1182
|
-
);
|
|
1215
|
+
deleteScim = (request) => this.client.fetch({
|
|
1216
|
+
method: "DELETE",
|
|
1217
|
+
path: `/iam/v1alpha1/scim/${validatePathParam("scimId", request.scimId)}`
|
|
1218
|
+
});
|
|
1183
1219
|
pageOfListScimTokens = (request) => this.client.fetch(
|
|
1184
1220
|
{
|
|
1185
1221
|
method: "GET",
|
|
@@ -1187,7 +1223,10 @@ class API extends API$1 {
|
|
|
1187
1223
|
urlParams: urlParams(
|
|
1188
1224
|
["order_by", request.orderBy],
|
|
1189
1225
|
["page", request.page],
|
|
1190
|
-
[
|
|
1226
|
+
[
|
|
1227
|
+
"page_size",
|
|
1228
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1229
|
+
]
|
|
1191
1230
|
)
|
|
1192
1231
|
},
|
|
1193
1232
|
unmarshalListScimTokensResponse
|
|
@@ -1217,12 +1256,10 @@ class API extends API$1 {
|
|
|
1217
1256
|
*
|
|
1218
1257
|
* @param request - The request {@link DeleteScimTokenRequest}
|
|
1219
1258
|
*/
|
|
1220
|
-
deleteScimToken = (request) => this.client.fetch(
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
}
|
|
1225
|
-
);
|
|
1259
|
+
deleteScimToken = (request) => this.client.fetch({
|
|
1260
|
+
method: "DELETE",
|
|
1261
|
+
path: `/iam/v1alpha1/scim-tokens/${validatePathParam("tokenId", request.tokenId)}`
|
|
1262
|
+
});
|
|
1226
1263
|
}
|
|
1227
1264
|
export {
|
|
1228
1265
|
API
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
2
|
export * from './marshalling.gen.js';
|
|
3
3
|
export type { AddGroupMemberRequest, AddGroupMembersRequest, AddSamlCertificateRequest, APIKey, Application, BearerType, ClonePolicyRequest, Connection, ConnectionConnectedOrganization, ConnectionConnectedUser, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateScimTokenRequest, CreateScimTokenResponse, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSamlCertificateRequest, DeleteSamlRequest, DeleteScimRequest, DeleteScimTokenRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, EnableOrganizationSamlRequest, EnableOrganizationScimRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationRequest, GetOrganizationSamlRequest, GetOrganizationScimRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, GetUserRequest, GracePeriod, GracePeriodType, Group, InitiateUserConnectionRequest, InitiateUserConnectionResponse, JoinUserConnectionRequest, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSamlCertificatesRequest, ListSamlCertificatesResponse, ListScimTokensRequest, ListScimTokensRequestOrderBy, ListScimTokensResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LocalityType, LockUserRequest, Log, LogAction, LogResourceType, MFAOTP, Organization, OrganizationSecuritySettings, ParseSamlMetadataRequest, ParseSamlMetadataResponse, PermissionSet, PermissionSetScopeType, Policy, Quotum, QuotumLimit, RemoveGroupMemberRequest, RemoveUserConnectionRequest, Rule, RuleSpecs, Saml, SamlCertificate, SamlCertificateOrigin, SamlCertificateType, SamlServiceProvider, SamlStatus, Scim, ScimToken, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, SetRulesResponse, SSHKey, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationLoginMethodsRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, UserStatus, UserType, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, } from './types.gen.js';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -324,7 +324,10 @@ const unmarshalListApplicationsResponse = (data) => {
|
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
326
|
return {
|
|
327
|
-
applications: unmarshalArrayOfObject(
|
|
327
|
+
applications: unmarshalArrayOfObject(
|
|
328
|
+
data.applications,
|
|
329
|
+
unmarshalApplication
|
|
330
|
+
),
|
|
328
331
|
totalCount: data.total_count
|
|
329
332
|
};
|
|
330
333
|
};
|
|
@@ -347,7 +350,10 @@ const unmarshalListGracePeriodsResponse = (data) => {
|
|
|
347
350
|
);
|
|
348
351
|
}
|
|
349
352
|
return {
|
|
350
|
-
gracePeriods: unmarshalArrayOfObject(
|
|
353
|
+
gracePeriods: unmarshalArrayOfObject(
|
|
354
|
+
data.grace_periods,
|
|
355
|
+
unmarshalGracePeriod
|
|
356
|
+
)
|
|
351
357
|
};
|
|
352
358
|
};
|
|
353
359
|
const unmarshalListGroupsResponse = (data) => {
|
|
@@ -404,7 +410,10 @@ const unmarshalListPermissionSetsResponse = (data) => {
|
|
|
404
410
|
);
|
|
405
411
|
}
|
|
406
412
|
return {
|
|
407
|
-
permissionSets: unmarshalArrayOfObject(
|
|
413
|
+
permissionSets: unmarshalArrayOfObject(
|
|
414
|
+
data.permission_sets,
|
|
415
|
+
unmarshalPermissionSet
|
|
416
|
+
),
|
|
408
417
|
totalCount: data.total_count
|
|
409
418
|
};
|
|
410
419
|
};
|
|
@@ -475,7 +484,10 @@ const unmarshalListSamlCertificatesResponse = (data) => {
|
|
|
475
484
|
);
|
|
476
485
|
}
|
|
477
486
|
return {
|
|
478
|
-
certificates: unmarshalArrayOfObject(
|
|
487
|
+
certificates: unmarshalArrayOfObject(
|
|
488
|
+
data.certificates,
|
|
489
|
+
unmarshalSamlCertificate
|
|
490
|
+
)
|
|
479
491
|
};
|
|
480
492
|
};
|
|
481
493
|
const unmarshalListScimTokensResponse = (data) => {
|
|
@@ -610,14 +622,8 @@ const unmarshalValidateUserMFAOTPResponse = (data) => {
|
|
|
610
622
|
};
|
|
611
623
|
const marshalAddGroupMemberRequest = (request, defaults) => ({
|
|
612
624
|
...resolveOneOf([
|
|
613
|
-
{
|
|
614
|
-
|
|
615
|
-
value: request.userId
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
param: "application_id",
|
|
619
|
-
value: request.applicationId
|
|
620
|
-
}
|
|
625
|
+
{ param: "user_id", value: request.userId },
|
|
626
|
+
{ param: "application_id", value: request.applicationId }
|
|
621
627
|
])
|
|
622
628
|
});
|
|
623
629
|
const marshalAddGroupMembersRequest = (request, defaults) => ({
|
|
@@ -633,14 +639,8 @@ const marshalCreateAPIKeyRequest = (request, defaults) => ({
|
|
|
633
639
|
description: request.description,
|
|
634
640
|
expires_at: request.expiresAt,
|
|
635
641
|
...resolveOneOf([
|
|
636
|
-
{
|
|
637
|
-
|
|
638
|
-
value: request.applicationId
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
param: "user_id",
|
|
642
|
-
value: request.userId
|
|
643
|
-
}
|
|
642
|
+
{ param: "application_id", value: request.applicationId },
|
|
643
|
+
{ param: "user_id", value: request.userId }
|
|
644
644
|
])
|
|
645
645
|
});
|
|
646
646
|
const marshalCreateApplicationRequest = (request, defaults) => ({
|
|
@@ -663,14 +663,8 @@ const marshalRuleSpecs = (request, defaults) => ({
|
|
|
663
663
|
condition: request.condition,
|
|
664
664
|
permission_set_names: request.permissionSetNames,
|
|
665
665
|
...resolveOneOf([
|
|
666
|
-
{
|
|
667
|
-
|
|
668
|
-
value: request.projectIds
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
param: "organization_id",
|
|
672
|
-
value: request.organizationId
|
|
673
|
-
}
|
|
666
|
+
{ param: "project_ids", value: request.projectIds },
|
|
667
|
+
{ param: "organization_id", value: request.organizationId }
|
|
674
668
|
])
|
|
675
669
|
});
|
|
676
670
|
const marshalCreatePolicyRequest = (request, defaults) => ({
|
|
@@ -680,22 +674,10 @@ const marshalCreatePolicyRequest = (request, defaults) => ({
|
|
|
680
674
|
rules: request.rules !== void 0 ? request.rules.map((elt) => marshalRuleSpecs(elt)) : void 0,
|
|
681
675
|
tags: request.tags,
|
|
682
676
|
...resolveOneOf([
|
|
683
|
-
{
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
687
|
-
{
|
|
688
|
-
param: "group_id",
|
|
689
|
-
value: request.groupId
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
param: "application_id",
|
|
693
|
-
value: request.applicationId
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
param: "no_principal",
|
|
697
|
-
value: request.noPrincipal
|
|
698
|
-
}
|
|
677
|
+
{ param: "user_id", value: request.userId },
|
|
678
|
+
{ param: "group_id", value: request.groupId },
|
|
679
|
+
{ param: "application_id", value: request.applicationId },
|
|
680
|
+
{ param: "no_principal", value: request.noPrincipal }
|
|
699
681
|
])
|
|
700
682
|
});
|
|
701
683
|
const marshalCreateSSHKeyRequest = (request, defaults) => ({
|
|
@@ -718,10 +700,7 @@ const marshalCreateUserRequest = (request, defaults) => ({
|
|
|
718
700
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
719
701
|
tags: request.tags,
|
|
720
702
|
...resolveOneOf([
|
|
721
|
-
{
|
|
722
|
-
param: "email",
|
|
723
|
-
value: request.email
|
|
724
|
-
},
|
|
703
|
+
{ param: "email", value: request.email },
|
|
725
704
|
{
|
|
726
705
|
param: "member",
|
|
727
706
|
value: request.member !== void 0 ? marshalCreateUserRequestMember(request.member) : void 0
|
|
@@ -736,14 +715,8 @@ const marshalParseSamlMetadataRequest = async (request, defaults) => ({
|
|
|
736
715
|
});
|
|
737
716
|
const marshalRemoveGroupMemberRequest = (request, defaults) => ({
|
|
738
717
|
...resolveOneOf([
|
|
739
|
-
{
|
|
740
|
-
|
|
741
|
-
value: request.userId
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
param: "application_id",
|
|
745
|
-
value: request.applicationId
|
|
746
|
-
}
|
|
718
|
+
{ param: "user_id", value: request.userId },
|
|
719
|
+
{ param: "application_id", value: request.applicationId }
|
|
747
720
|
])
|
|
748
721
|
});
|
|
749
722
|
const marshalRemoveUserConnectionRequest = (request, defaults) => ({
|
|
@@ -793,22 +766,10 @@ const marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
|
793
766
|
name: request.name,
|
|
794
767
|
tags: request.tags,
|
|
795
768
|
...resolveOneOf([
|
|
796
|
-
{
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
800
|
-
{
|
|
801
|
-
param: "group_id",
|
|
802
|
-
value: request.groupId
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
param: "application_id",
|
|
806
|
-
value: request.applicationId
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
param: "no_principal",
|
|
810
|
-
value: request.noPrincipal
|
|
811
|
-
}
|
|
769
|
+
{ param: "user_id", value: request.userId },
|
|
770
|
+
{ param: "group_id", value: request.groupId },
|
|
771
|
+
{ param: "application_id", value: request.applicationId },
|
|
772
|
+
{ param: "no_principal", value: request.noPrincipal }
|
|
812
773
|
])
|
|
813
774
|
});
|
|
814
775
|
const marshalUpdateSSHKeyRequest = (request, defaults) => ({
|