@stack-spot/portal-network 0.84.0 → 0.85.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/CHANGELOG.md +14 -0
- package/dist/api/account.d.ts +349 -100
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +199 -67
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +46 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +55 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/notification.d.ts +1 -1
- package/dist/client/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +556 -105
- package/src/client/account.ts +38 -5
- package/src/client/types.ts +1 -1
package/src/api/account.ts
CHANGED
|
@@ -38,6 +38,64 @@ export type UserScmInfoRequest = {
|
|
|
38
38
|
/** Repository personal token */
|
|
39
39
|
token: string;
|
|
40
40
|
};
|
|
41
|
+
export type SecretResponse = {
|
|
42
|
+
/** Secret id */
|
|
43
|
+
id: string;
|
|
44
|
+
/** Secret name */
|
|
45
|
+
name: string;
|
|
46
|
+
/** Secret description */
|
|
47
|
+
description: string;
|
|
48
|
+
/** Secret type */
|
|
49
|
+
"type": "API_KEY" | "OAUTH" | "CERTIFICATE" | "KEY_VALUE" | "BEARER_TOKEN";
|
|
50
|
+
/** Secret version */
|
|
51
|
+
version: number;
|
|
52
|
+
/** Reference id for the secret */
|
|
53
|
+
refId?: string;
|
|
54
|
+
/** Secret provider */
|
|
55
|
+
provider: "AWS_SECRETS_MANAGER";
|
|
56
|
+
/** Secret scope */
|
|
57
|
+
scope: "USER" | "SCOPED" | "ACCOUNT";
|
|
58
|
+
/** Scoped to */
|
|
59
|
+
scopedTo?: "WORKSPACE";
|
|
60
|
+
/** Scoped to value */
|
|
61
|
+
scopedValue?: string;
|
|
62
|
+
/** Expiration date of the secret */
|
|
63
|
+
expirationDate?: string;
|
|
64
|
+
/** Who created the secret */
|
|
65
|
+
createdBy: string;
|
|
66
|
+
/** When the secret was created */
|
|
67
|
+
createdAt: string;
|
|
68
|
+
/** Who last updated the secret */
|
|
69
|
+
updatedBy?: string;
|
|
70
|
+
/** When the secret was last updated */
|
|
71
|
+
updatedAt?: string;
|
|
72
|
+
/** Secret status */
|
|
73
|
+
status: "ENABLED" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
74
|
+
/** Secret value */
|
|
75
|
+
value?: {
|
|
76
|
+
[key: string]: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export type UpdateSecretRequest = {
|
|
80
|
+
/** Secret name */
|
|
81
|
+
name?: string;
|
|
82
|
+
/** Secret description */
|
|
83
|
+
description?: string;
|
|
84
|
+
/** Secret type */
|
|
85
|
+
"type"?: "API_KEY" | "OAUTH" | "CERTIFICATE" | "KEY_VALUE" | "BEARER_TOKEN";
|
|
86
|
+
/** Secret scope */
|
|
87
|
+
scope?: "USER" | "SCOPED" | "ACCOUNT";
|
|
88
|
+
/** Scoped to */
|
|
89
|
+
scopedTo?: "WORKSPACE";
|
|
90
|
+
/** Scope value */
|
|
91
|
+
scopeValue?: string;
|
|
92
|
+
/** Expiration date of the secret */
|
|
93
|
+
expirationDate?: string;
|
|
94
|
+
/** Secret value */
|
|
95
|
+
value?: {
|
|
96
|
+
[key: string]: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
41
99
|
export type ScopeResponse = {
|
|
42
100
|
/** Scope id */
|
|
43
101
|
id: string;
|
|
@@ -55,14 +113,17 @@ export type ScopeResponse = {
|
|
|
55
113
|
updatedAt?: string;
|
|
56
114
|
};
|
|
57
115
|
export type IamUpdateScopeRequest = {
|
|
116
|
+
/** Scope name */
|
|
58
117
|
name: string;
|
|
118
|
+
/** Scope description */
|
|
59
119
|
description?: string;
|
|
120
|
+
/** Scope claim mapper */
|
|
60
121
|
claim_mapper: {
|
|
61
122
|
[key: string]: string;
|
|
62
123
|
};
|
|
63
124
|
};
|
|
64
125
|
export type AccountScmInfoResponse = {
|
|
65
|
-
/**
|
|
126
|
+
/** Secret name */
|
|
66
127
|
secretName?: string;
|
|
67
128
|
/** SCM Workflow repository URL */
|
|
68
129
|
workflowUrl?: string;
|
|
@@ -142,27 +203,43 @@ export type RoleResourceResponse = {
|
|
|
142
203
|
actions?: ResourceActionResponse[];
|
|
143
204
|
};
|
|
144
205
|
export type IamCreateStatementRequest = {
|
|
206
|
+
/** A list of actions. */
|
|
145
207
|
actions: string[];
|
|
208
|
+
/** The resource. */
|
|
146
209
|
resource: string;
|
|
147
210
|
};
|
|
148
211
|
export type UpdateResourceActionsRequest = {
|
|
212
|
+
/** The updated list of actions. */
|
|
149
213
|
actions: string[];
|
|
150
214
|
};
|
|
151
215
|
export type AccountMemberStackspotIamDto = {
|
|
216
|
+
/** Unique identifier of the account member. */
|
|
152
217
|
id: string;
|
|
218
|
+
/** Username of the account member. */
|
|
153
219
|
username: string;
|
|
220
|
+
/** Email address of the account member. */
|
|
154
221
|
email?: string;
|
|
222
|
+
/** First name of the account member. */
|
|
155
223
|
firstName?: string;
|
|
224
|
+
/** Last name of the account member. */
|
|
156
225
|
lastName?: string;
|
|
226
|
+
/** Area code of the phone number. */
|
|
157
227
|
ddd?: string;
|
|
228
|
+
/** International dialing code of the phone number. */
|
|
158
229
|
ddi?: string;
|
|
230
|
+
/** Phone number of the account member. */
|
|
159
231
|
phone?: string;
|
|
232
|
+
/** Company associated with the account member. */
|
|
160
233
|
company?: string;
|
|
234
|
+
/** Indicates if the account member is active. */
|
|
161
235
|
isActive: boolean;
|
|
236
|
+
/** Indicates if the email of the account member is verified. */
|
|
162
237
|
isEmailVerified: boolean;
|
|
238
|
+
/** Additional properties related to the account member. */
|
|
163
239
|
properties?: {
|
|
164
240
|
[key: string]: object;
|
|
165
241
|
};
|
|
242
|
+
/** URL of the avatar image of the account member. */
|
|
166
243
|
avatarImage?: string;
|
|
167
244
|
};
|
|
168
245
|
export type UpdateUserRequest = {
|
|
@@ -190,16 +267,27 @@ export type UpdateUserRequest = {
|
|
|
190
267
|
avatarImageBase64?: string;
|
|
191
268
|
};
|
|
192
269
|
export type UpdateUserResponse = {
|
|
270
|
+
/** Username of the updated user. */
|
|
193
271
|
username?: string;
|
|
272
|
+
/** Email address of the updated user. */
|
|
194
273
|
email?: string;
|
|
274
|
+
/** First name of the updated user. */
|
|
195
275
|
firstName?: string;
|
|
276
|
+
/** Last name of the updated user. */
|
|
196
277
|
lastName?: string;
|
|
278
|
+
/** International dialing code of the updated user's phone number. */
|
|
197
279
|
ddi?: string;
|
|
280
|
+
/** Area code of the updated user's phone number. */
|
|
198
281
|
ddd?: string;
|
|
282
|
+
/** Phone number of the updated user. */
|
|
199
283
|
phone?: string;
|
|
284
|
+
/** Indicates if the updated user is active. */
|
|
200
285
|
isActive?: boolean;
|
|
286
|
+
/** Company associated with the updated user. */
|
|
201
287
|
company?: string;
|
|
288
|
+
/** Password of the updated user. */
|
|
202
289
|
password?: string;
|
|
290
|
+
/** URL of the avatar image of the updated user. */
|
|
203
291
|
avatarImage?: string;
|
|
204
292
|
};
|
|
205
293
|
export type UpdatePasswordRequest = {
|
|
@@ -210,16 +298,25 @@ export type InvitationUserResponse = {
|
|
|
210
298
|
email: string;
|
|
211
299
|
};
|
|
212
300
|
export type UserInvitationResponse = {
|
|
301
|
+
/** Unique identifier of the invitation */
|
|
213
302
|
id: string;
|
|
303
|
+
/** Identifier of the associated account */
|
|
214
304
|
accountId: string;
|
|
215
305
|
sender: InvitationUserResponse;
|
|
216
306
|
invitedUser: InvitationUserResponse;
|
|
307
|
+
/** Timestamp when the invitation was created */
|
|
217
308
|
createdAt: string;
|
|
309
|
+
/** Timestamp when the invitation was resent */
|
|
218
310
|
resentAt: string;
|
|
311
|
+
/** Timestamp when the invitation will expire */
|
|
219
312
|
expirationDate: string;
|
|
313
|
+
/** Role assigned to the invited user */
|
|
220
314
|
roleName: string;
|
|
315
|
+
/** Indicates whether the account is assigned to the invited user */
|
|
221
316
|
assignAccount: boolean;
|
|
317
|
+
/** Magic link associated with the invitation */
|
|
222
318
|
magicLink: string;
|
|
319
|
+
/** Current status of the invitation */
|
|
223
320
|
status: "ACCEPTED" | "PENDING" | "CANCELLED";
|
|
224
321
|
};
|
|
225
322
|
export type UpdateFeatureFlagRequest = {
|
|
@@ -463,6 +560,48 @@ export type ServiceCredentialExpirationNotifyRequest = {
|
|
|
463
560
|
/** Information related to the Service Credential */
|
|
464
561
|
credentials: ServiceCredentialInfoRequest[];
|
|
465
562
|
};
|
|
563
|
+
export type PageResponseSecretResponse = {
|
|
564
|
+
/** Current page content */
|
|
565
|
+
items?: SecretResponse[];
|
|
566
|
+
/** Total elements found */
|
|
567
|
+
totalElements: number;
|
|
568
|
+
/** Current page number */
|
|
569
|
+
page: number;
|
|
570
|
+
/** Length of current page items */
|
|
571
|
+
size: number;
|
|
572
|
+
/** Total pages found */
|
|
573
|
+
totalPages: number;
|
|
574
|
+
};
|
|
575
|
+
export type CreateSecretRequest = {
|
|
576
|
+
/** Secret name */
|
|
577
|
+
name: string;
|
|
578
|
+
/** Secret description */
|
|
579
|
+
description: string;
|
|
580
|
+
/** Secret type */
|
|
581
|
+
"type": "API_KEY" | "OAUTH" | "CERTIFICATE" | "KEY_VALUE" | "BEARER_TOKEN";
|
|
582
|
+
/** Secret scope */
|
|
583
|
+
scope: "USER" | "SCOPED" | "ACCOUNT";
|
|
584
|
+
/** Scoped of */
|
|
585
|
+
scopedTo?: "WORKSPACE";
|
|
586
|
+
/** Bind to scope value */
|
|
587
|
+
scopeValue?: string;
|
|
588
|
+
/** Expiration date of the secret */
|
|
589
|
+
expirationDate?: string;
|
|
590
|
+
/** Secret value */
|
|
591
|
+
value: {
|
|
592
|
+
[key: string]: string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
export type CheckSecretAccessRequest = {
|
|
596
|
+
/** List of IDs to be checked */
|
|
597
|
+
ids: string[];
|
|
598
|
+
};
|
|
599
|
+
export type CheckSecretAccessResponse = {
|
|
600
|
+
/** Map of secret IDs to access status (true if the user has access, false otherwise) */
|
|
601
|
+
result: {
|
|
602
|
+
[key: string]: boolean;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
466
605
|
export type PagingRequest = {
|
|
467
606
|
size?: number;
|
|
468
607
|
page: number;
|
|
@@ -476,8 +615,11 @@ export type PagingRequest = {
|
|
|
476
615
|
filterIn?: string;
|
|
477
616
|
};
|
|
478
617
|
export type IamCreateScopeRequest = {
|
|
618
|
+
/** Scope name */
|
|
479
619
|
name: string;
|
|
620
|
+
/** Scope description */
|
|
480
621
|
description?: string;
|
|
622
|
+
/** Scope claim mapper */
|
|
481
623
|
claim_mapper?: {
|
|
482
624
|
[key: string]: string;
|
|
483
625
|
};
|
|
@@ -589,6 +731,7 @@ export type RoleGroupResponse = {
|
|
|
589
731
|
createdAt: string;
|
|
590
732
|
};
|
|
591
733
|
export type RoleGroupIdsRequest = {
|
|
734
|
+
/** List of group IDs to be bound to the role. */
|
|
592
735
|
ids: string[];
|
|
593
736
|
};
|
|
594
737
|
export type ResourceTypeDto = {
|
|
@@ -667,15 +810,25 @@ export type CreateUserRequest = {
|
|
|
667
810
|
avatarImageBase64?: string;
|
|
668
811
|
};
|
|
669
812
|
export type CreateUserResponse = {
|
|
813
|
+
/** Username of the created user. */
|
|
670
814
|
username: string;
|
|
815
|
+
/** Email address of the created user. */
|
|
671
816
|
email: string;
|
|
817
|
+
/** Company associated with the created user. */
|
|
672
818
|
company?: string;
|
|
819
|
+
/** First name of the created user. */
|
|
673
820
|
firstName: string;
|
|
821
|
+
/** Last name of the created user. */
|
|
674
822
|
lastName: string;
|
|
823
|
+
/** International dialing code of the created user's phone number. */
|
|
675
824
|
ddi: string;
|
|
825
|
+
/** Area code of the created user's phone number. */
|
|
676
826
|
ddd: string;
|
|
827
|
+
/** Phone number of the created user. */
|
|
677
828
|
phone: string;
|
|
829
|
+
/** Indicates if the created user is active. */
|
|
678
830
|
isActive: boolean;
|
|
831
|
+
/** Indicates if the email of the created user is verified. */
|
|
679
832
|
isEmailVerified?: boolean;
|
|
680
833
|
};
|
|
681
834
|
export type ReadMemberRoleResponse = {
|
|
@@ -1155,6 +1308,38 @@ export type RotateServiceCredentialSecretRequest = {
|
|
|
1155
1308
|
export type RotateServiceCredentialSecretResponse = {
|
|
1156
1309
|
secret?: string;
|
|
1157
1310
|
};
|
|
1311
|
+
export type DeleteMemberPermissionsRequest = {
|
|
1312
|
+
/** Permission Action */
|
|
1313
|
+
actionName: string;
|
|
1314
|
+
/** Slug from resource type */
|
|
1315
|
+
resourceTypeSlug: string;
|
|
1316
|
+
/** Slug from resource */
|
|
1317
|
+
resourceSlug: string;
|
|
1318
|
+
};
|
|
1319
|
+
export type UpdateMemberPermissionsRequest = {
|
|
1320
|
+
/** Permission Action */
|
|
1321
|
+
actionName: string;
|
|
1322
|
+
/** Slug from resource type */
|
|
1323
|
+
resourceTypeSlug: string;
|
|
1324
|
+
/** Slug from resource */
|
|
1325
|
+
resourceSlug: string;
|
|
1326
|
+
};
|
|
1327
|
+
export type DeleteGroupPermissionsRequest = {
|
|
1328
|
+
/** Permission Action */
|
|
1329
|
+
actionName: string;
|
|
1330
|
+
/** Slug from resource type */
|
|
1331
|
+
resourceTypeSlug: string;
|
|
1332
|
+
/** Slug from resource */
|
|
1333
|
+
resourceSlug: string;
|
|
1334
|
+
};
|
|
1335
|
+
export type UpdateGroupPermissionsRequest = {
|
|
1336
|
+
/** Permission Action */
|
|
1337
|
+
actionName: string;
|
|
1338
|
+
/** Slug from resource type */
|
|
1339
|
+
resourceTypeSlug: string;
|
|
1340
|
+
/** Slug from resource */
|
|
1341
|
+
resourceSlug: string;
|
|
1342
|
+
};
|
|
1158
1343
|
export type ServiceCredentialAssociateGroupRequest = {
|
|
1159
1344
|
/** Service credential groups ids */
|
|
1160
1345
|
teams: string[];
|
|
@@ -1175,22 +1360,6 @@ export type UpdateMemberPreferencesRequest = {
|
|
|
1175
1360
|
/** Theme preferences Key */
|
|
1176
1361
|
theme?: "DARK" | "LIGHT";
|
|
1177
1362
|
};
|
|
1178
|
-
export type DeleteMemberPermissionsRequest = {
|
|
1179
|
-
/** Permission Action */
|
|
1180
|
-
actionName: string;
|
|
1181
|
-
/** Slug from resource type */
|
|
1182
|
-
resourceTypeSlug: string;
|
|
1183
|
-
/** Slug from resource */
|
|
1184
|
-
resourceSlug: string;
|
|
1185
|
-
};
|
|
1186
|
-
export type UpdateMemberPermissionsRequest = {
|
|
1187
|
-
/** Permission Action */
|
|
1188
|
-
actionName: string;
|
|
1189
|
-
/** Slug from resource type */
|
|
1190
|
-
resourceTypeSlug: string;
|
|
1191
|
-
/** Slug from resource */
|
|
1192
|
-
resourceSlug: string;
|
|
1193
|
-
};
|
|
1194
1363
|
export type MemberCredentialResponse = {
|
|
1195
1364
|
/** Field to represents if credential is active */
|
|
1196
1365
|
active: boolean;
|
|
@@ -1237,22 +1406,6 @@ export type UpdateGroupRequest = {
|
|
|
1237
1406
|
/** Group image base64 */
|
|
1238
1407
|
image?: string;
|
|
1239
1408
|
};
|
|
1240
|
-
export type DeleteGroupPermissionsRequest = {
|
|
1241
|
-
/** Permission Action */
|
|
1242
|
-
actionName: string;
|
|
1243
|
-
/** Slug from resource type */
|
|
1244
|
-
resourceTypeSlug: string;
|
|
1245
|
-
/** Slug from resource */
|
|
1246
|
-
resourceSlug: string;
|
|
1247
|
-
};
|
|
1248
|
-
export type UpdateGroupPermissionsRequest = {
|
|
1249
|
-
/** Permission Action */
|
|
1250
|
-
actionName: string;
|
|
1251
|
-
/** Slug from resource type */
|
|
1252
|
-
resourceTypeSlug: string;
|
|
1253
|
-
/** Slug from resource */
|
|
1254
|
-
resourceSlug: string;
|
|
1255
|
-
};
|
|
1256
1409
|
export type ExtensionUpdateRequest = {
|
|
1257
1410
|
/** The Id from active extension version */
|
|
1258
1411
|
activeVersionId?: string;
|
|
@@ -1583,9 +1736,13 @@ export type RolePermissionResponse = {
|
|
|
1583
1736
|
statements: PermissionStatementResponse[];
|
|
1584
1737
|
};
|
|
1585
1738
|
export type ResourceDto = {
|
|
1739
|
+
/** Unique identifier of the resource. */
|
|
1586
1740
|
id: string;
|
|
1741
|
+
/** Name of the resource. */
|
|
1587
1742
|
name: string;
|
|
1743
|
+
/** Slug version of the resource name. */
|
|
1588
1744
|
slug: string;
|
|
1745
|
+
/** Optional description of the resource. */
|
|
1589
1746
|
description?: string;
|
|
1590
1747
|
"type"?: ResourceTypeDto;
|
|
1591
1748
|
};
|
|
@@ -1682,7 +1839,7 @@ export type AccountPartnerResponse = {
|
|
|
1682
1839
|
isActive: boolean;
|
|
1683
1840
|
};
|
|
1684
1841
|
/**
|
|
1685
|
-
*
|
|
1842
|
+
* Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
|
|
1686
1843
|
*/
|
|
1687
1844
|
export function listScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
1688
1845
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1699,7 +1856,7 @@ export function listScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
|
1699
1856
|
}));
|
|
1700
1857
|
}
|
|
1701
1858
|
/**
|
|
1702
|
-
*
|
|
1859
|
+
* Updates the SCM credentials for a user by saving the new secret information and triggering an update event.
|
|
1703
1860
|
*/
|
|
1704
1861
|
export function scmCredentialUpdate({ userScmInfoRequest }: {
|
|
1705
1862
|
userScmInfoRequest: UserScmInfoRequest;
|
|
@@ -1722,7 +1879,7 @@ export function scmCredentialUpdate({ userScmInfoRequest }: {
|
|
|
1722
1879
|
})));
|
|
1723
1880
|
}
|
|
1724
1881
|
/**
|
|
1725
|
-
*
|
|
1882
|
+
* Saves user SCM credentials by validating the user, storing the credentials securely, and triggering a creation event.
|
|
1726
1883
|
*/
|
|
1727
1884
|
export function scmCredentialSave({ userScmInfoRequest }: {
|
|
1728
1885
|
userScmInfoRequest: UserScmInfoRequest;
|
|
@@ -1745,7 +1902,7 @@ export function scmCredentialSave({ userScmInfoRequest }: {
|
|
|
1745
1902
|
})));
|
|
1746
1903
|
}
|
|
1747
1904
|
/**
|
|
1748
|
-
*
|
|
1905
|
+
* Deletes the SCM credentials of a user from the repository and secrets manager, and sends a deletion event if the credentials exist.
|
|
1749
1906
|
*/
|
|
1750
1907
|
export function scmDelete(opts?: Oazapfts.RequestOpts) {
|
|
1751
1908
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1765,9 +1922,55 @@ export function scmDelete(opts?: Oazapfts.RequestOpts) {
|
|
|
1765
1922
|
}));
|
|
1766
1923
|
}
|
|
1767
1924
|
/**
|
|
1768
|
-
* Get
|
|
1925
|
+
* Get secret by ID
|
|
1769
1926
|
*/
|
|
1770
|
-
export function getById({
|
|
1927
|
+
export function getById({ secretId }: {
|
|
1928
|
+
secretId: string;
|
|
1929
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1930
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1931
|
+
status: 200;
|
|
1932
|
+
data: SecretResponse;
|
|
1933
|
+
} | {
|
|
1934
|
+
status: 400;
|
|
1935
|
+
data: SecretResponse;
|
|
1936
|
+
} | {
|
|
1937
|
+
status: 404;
|
|
1938
|
+
data: SecretResponse;
|
|
1939
|
+
} | {
|
|
1940
|
+
status: 500;
|
|
1941
|
+
data: SecretResponse;
|
|
1942
|
+
}>(`/v1/secrets/${encodeURIComponent(secretId)}`, {
|
|
1943
|
+
...opts
|
|
1944
|
+
}));
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* Update secret information
|
|
1948
|
+
*/
|
|
1949
|
+
export function updateSecret({ secretId, updateSecretRequest }: {
|
|
1950
|
+
secretId: string;
|
|
1951
|
+
updateSecretRequest: UpdateSecretRequest;
|
|
1952
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1953
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}`, oazapfts.json({
|
|
1954
|
+
...opts,
|
|
1955
|
+
method: "PUT",
|
|
1956
|
+
body: updateSecretRequest
|
|
1957
|
+
})));
|
|
1958
|
+
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Delete secret by ID
|
|
1961
|
+
*/
|
|
1962
|
+
export function deleteSecret({ secretId }: {
|
|
1963
|
+
secretId: string;
|
|
1964
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1965
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}`, {
|
|
1966
|
+
...opts,
|
|
1967
|
+
method: "DELETE"
|
|
1968
|
+
}));
|
|
1969
|
+
}
|
|
1970
|
+
/**
|
|
1971
|
+
* Retrieves a specific scope by its ID for the current user's tenant and returns it.
|
|
1972
|
+
*/
|
|
1973
|
+
export function getById1({ scopeId }: {
|
|
1771
1974
|
scopeId: string;
|
|
1772
1975
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1773
1976
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1775,43 +1978,65 @@ export function getById({ scopeId }: {
|
|
|
1775
1978
|
data: ScopeResponse;
|
|
1776
1979
|
} | {
|
|
1777
1980
|
status: 400;
|
|
1778
|
-
data:
|
|
1981
|
+
data: ErrorResponse;
|
|
1779
1982
|
} | {
|
|
1780
1983
|
status: 404;
|
|
1781
|
-
data:
|
|
1984
|
+
data: ErrorResponse;
|
|
1782
1985
|
} | {
|
|
1783
1986
|
status: 500;
|
|
1784
|
-
data:
|
|
1987
|
+
data: ErrorResponse;
|
|
1785
1988
|
}>(`/v1/scopes/${encodeURIComponent(scopeId)}`, {
|
|
1786
1989
|
...opts
|
|
1787
1990
|
}));
|
|
1788
1991
|
}
|
|
1789
1992
|
/**
|
|
1790
|
-
*
|
|
1993
|
+
* Updates the details of a specific scope within the tenant using the provided scope ID and update request.
|
|
1791
1994
|
*/
|
|
1792
1995
|
export function updateScope({ scopeId, iamUpdateScopeRequest }: {
|
|
1793
1996
|
scopeId: string;
|
|
1794
1997
|
iamUpdateScopeRequest: IamUpdateScopeRequest;
|
|
1795
1998
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1796
|
-
return oazapfts.ok(oazapfts.
|
|
1999
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2000
|
+
status: 204;
|
|
2001
|
+
} | {
|
|
2002
|
+
status: 400;
|
|
2003
|
+
data: ErrorResponse;
|
|
2004
|
+
} | {
|
|
2005
|
+
status: 404;
|
|
2006
|
+
data: ErrorResponse;
|
|
2007
|
+
} | {
|
|
2008
|
+
status: 500;
|
|
2009
|
+
data: ErrorResponse;
|
|
2010
|
+
}>(`/v1/scopes/${encodeURIComponent(scopeId)}`, oazapfts.json({
|
|
1797
2011
|
...opts,
|
|
1798
2012
|
method: "PUT",
|
|
1799
2013
|
body: iamUpdateScopeRequest
|
|
1800
2014
|
})));
|
|
1801
2015
|
}
|
|
1802
2016
|
/**
|
|
1803
|
-
*
|
|
2017
|
+
* Deletes a specific scope identified by its ID within the user's current tenant.
|
|
1804
2018
|
*/
|
|
1805
2019
|
export function deleteScope({ scopeId }: {
|
|
1806
2020
|
scopeId: string;
|
|
1807
2021
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1808
|
-
return oazapfts.ok(oazapfts.
|
|
2022
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2023
|
+
status: 204;
|
|
2024
|
+
} | {
|
|
2025
|
+
status: 400;
|
|
2026
|
+
data: ErrorResponse;
|
|
2027
|
+
} | {
|
|
2028
|
+
status: 404;
|
|
2029
|
+
data: ErrorResponse;
|
|
2030
|
+
} | {
|
|
2031
|
+
status: 500;
|
|
2032
|
+
data: ErrorResponse;
|
|
2033
|
+
}>(`/v1/scopes/${encodeURIComponent(scopeId)}`, {
|
|
1809
2034
|
...opts,
|
|
1810
2035
|
method: "DELETE"
|
|
1811
2036
|
}));
|
|
1812
2037
|
}
|
|
1813
2038
|
/**
|
|
1814
|
-
*
|
|
2039
|
+
* Retrieves a list of SCM credentials associated with the current user's account.
|
|
1815
2040
|
*/
|
|
1816
2041
|
export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
1817
2042
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1831,7 +2056,7 @@ export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
|
1831
2056
|
}));
|
|
1832
2057
|
}
|
|
1833
2058
|
/**
|
|
1834
|
-
*
|
|
2059
|
+
* Updates the SCM credentials for the current user's account, saving the changes and triggering an update event.
|
|
1835
2060
|
*/
|
|
1836
2061
|
export function scmCredentialUpdate1({ accountScmInfoUpdateRequest }: {
|
|
1837
2062
|
accountScmInfoUpdateRequest: AccountScmInfoUpdateRequest;
|
|
@@ -1854,7 +2079,7 @@ export function scmCredentialUpdate1({ accountScmInfoUpdateRequest }: {
|
|
|
1854
2079
|
})));
|
|
1855
2080
|
}
|
|
1856
2081
|
/**
|
|
1857
|
-
*
|
|
2082
|
+
* Saves SCM credentials for a user's account.
|
|
1858
2083
|
*/
|
|
1859
2084
|
export function scmCredentialSave1({ accountScmInfoSaveRequest }: {
|
|
1860
2085
|
accountScmInfoSaveRequest: AccountScmInfoSaveRequest;
|
|
@@ -1877,7 +2102,7 @@ export function scmCredentialSave1({ accountScmInfoSaveRequest }: {
|
|
|
1877
2102
|
})));
|
|
1878
2103
|
}
|
|
1879
2104
|
/**
|
|
1880
|
-
*
|
|
2105
|
+
* Updates the role of an account.
|
|
1881
2106
|
*/
|
|
1882
2107
|
export function updateAccountRole({ roleId, updateAccountRoleRequest }: {
|
|
1883
2108
|
roleId: string;
|
|
@@ -1901,7 +2126,7 @@ export function updateAccountRole({ roleId, updateAccountRoleRequest }: {
|
|
|
1901
2126
|
})));
|
|
1902
2127
|
}
|
|
1903
2128
|
/**
|
|
1904
|
-
*
|
|
2129
|
+
* Deletes a specific account role by its ID.
|
|
1905
2130
|
*/
|
|
1906
2131
|
export function deleteAccountRole({ roleId }: {
|
|
1907
2132
|
roleId: string;
|
|
@@ -1923,7 +2148,7 @@ export function deleteAccountRole({ roleId }: {
|
|
|
1923
2148
|
}));
|
|
1924
2149
|
}
|
|
1925
2150
|
/**
|
|
1926
|
-
*
|
|
2151
|
+
* Retrieves a of resources and their associated actions with their status compared to a specified role.
|
|
1927
2152
|
*/
|
|
1928
2153
|
export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
1929
2154
|
roleId: string;
|
|
@@ -1966,7 +2191,7 @@ export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, di
|
|
|
1966
2191
|
}));
|
|
1967
2192
|
}
|
|
1968
2193
|
/**
|
|
1969
|
-
*
|
|
2194
|
+
* Updates the role of an account with new resource-action statements.
|
|
1970
2195
|
*/
|
|
1971
2196
|
export function updateRoleWithNewActions({ roleId, body }: {
|
|
1972
2197
|
roleId: string;
|
|
@@ -1990,7 +2215,7 @@ export function updateRoleWithNewActions({ roleId, body }: {
|
|
|
1990
2215
|
})));
|
|
1991
2216
|
}
|
|
1992
2217
|
/**
|
|
1993
|
-
* Updates actions
|
|
2218
|
+
* Updates the actions associated with a specific resource in a role.
|
|
1994
2219
|
*/
|
|
1995
2220
|
export function updateResourceActions({ roleId, resourceId, updateResourceActionsRequest }: {
|
|
1996
2221
|
roleId: string;
|
|
@@ -2015,7 +2240,7 @@ export function updateResourceActions({ roleId, resourceId, updateResourceAction
|
|
|
2015
2240
|
})));
|
|
2016
2241
|
}
|
|
2017
2242
|
/**
|
|
2018
|
-
*
|
|
2243
|
+
* Retrieves account member details by their unique identifier.
|
|
2019
2244
|
*/
|
|
2020
2245
|
export function getMemberById({ memberId }: {
|
|
2021
2246
|
memberId: string;
|
|
@@ -2037,7 +2262,7 @@ export function getMemberById({ memberId }: {
|
|
|
2037
2262
|
}));
|
|
2038
2263
|
}
|
|
2039
2264
|
/**
|
|
2040
|
-
*
|
|
2265
|
+
* Updates the information of an existing user.
|
|
2041
2266
|
*/
|
|
2042
2267
|
export function updateUser({ memberId, updateUserRequest }: {
|
|
2043
2268
|
memberId: string;
|
|
@@ -2062,7 +2287,7 @@ export function updateUser({ memberId, updateUserRequest }: {
|
|
|
2062
2287
|
})));
|
|
2063
2288
|
}
|
|
2064
2289
|
/**
|
|
2065
|
-
*
|
|
2290
|
+
* Updates the password of a specified user.
|
|
2066
2291
|
*/
|
|
2067
2292
|
export function updateUserPassword({ memberId, updatePasswordRequest }: {
|
|
2068
2293
|
memberId: string;
|
|
@@ -2088,7 +2313,7 @@ export function updateUserPassword({ memberId, updatePasswordRequest }: {
|
|
|
2088
2313
|
})));
|
|
2089
2314
|
}
|
|
2090
2315
|
/**
|
|
2091
|
-
*
|
|
2316
|
+
* Accepts an invitation for a user to collaborate on an account.
|
|
2092
2317
|
*/
|
|
2093
2318
|
export function accept({ id }: {
|
|
2094
2319
|
id: string;
|
|
@@ -2470,7 +2695,88 @@ export function notifyServiceCredentialExpiration({ serviceCredentialExpirationR
|
|
|
2470
2695
|
})));
|
|
2471
2696
|
}
|
|
2472
2697
|
/**
|
|
2473
|
-
* Find
|
|
2698
|
+
* Find secrets with multiple filters and conditions
|
|
2699
|
+
*/
|
|
2700
|
+
export function findSecrets1({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }: {
|
|
2701
|
+
size?: any;
|
|
2702
|
+
page?: any;
|
|
2703
|
+
sort?: string;
|
|
2704
|
+
direction?: "ASC" | "DESC";
|
|
2705
|
+
search?: string;
|
|
2706
|
+
filterByScope?: "USER" | "SCOPED" | "ACCOUNT";
|
|
2707
|
+
filterByType?: "API_KEY" | "OAUTH" | "CERTIFICATE" | "KEY_VALUE" | "BEARER_TOKEN";
|
|
2708
|
+
filterByScopedBy?: "WORKSPACE";
|
|
2709
|
+
filterByScopedValue?: string;
|
|
2710
|
+
authorizedOnly?: boolean;
|
|
2711
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2712
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2713
|
+
status: 200;
|
|
2714
|
+
data: PageResponseSecretResponse;
|
|
2715
|
+
} | {
|
|
2716
|
+
status: 400;
|
|
2717
|
+
data: PageResponseSecretResponse;
|
|
2718
|
+
} | {
|
|
2719
|
+
status: 500;
|
|
2720
|
+
data: PageResponseSecretResponse;
|
|
2721
|
+
}>(`/v1/secrets${QS.query(QS.explode({
|
|
2722
|
+
size,
|
|
2723
|
+
page,
|
|
2724
|
+
sort,
|
|
2725
|
+
direction,
|
|
2726
|
+
search,
|
|
2727
|
+
filterByScope,
|
|
2728
|
+
filterByType,
|
|
2729
|
+
filterByScopedBy,
|
|
2730
|
+
filterByScopedValue,
|
|
2731
|
+
authorizedOnly
|
|
2732
|
+
}))}`, {
|
|
2733
|
+
...opts
|
|
2734
|
+
}));
|
|
2735
|
+
}
|
|
2736
|
+
/**
|
|
2737
|
+
* Create a new secret
|
|
2738
|
+
*/
|
|
2739
|
+
export function createSecret({ createSecretRequest }: {
|
|
2740
|
+
createSecretRequest: CreateSecretRequest;
|
|
2741
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2742
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2743
|
+
status: 201;
|
|
2744
|
+
data: SecretResponse;
|
|
2745
|
+
} | {
|
|
2746
|
+
status: 400;
|
|
2747
|
+
data: SecretResponse;
|
|
2748
|
+
} | {
|
|
2749
|
+
status: 500;
|
|
2750
|
+
data: SecretResponse;
|
|
2751
|
+
}>("/v1/secrets", oazapfts.json({
|
|
2752
|
+
...opts,
|
|
2753
|
+
method: "POST",
|
|
2754
|
+
body: createSecretRequest
|
|
2755
|
+
})));
|
|
2756
|
+
}
|
|
2757
|
+
/**
|
|
2758
|
+
* Check if user has access to secret
|
|
2759
|
+
*/
|
|
2760
|
+
export function findSecrets({ checkSecretAccessRequest }: {
|
|
2761
|
+
checkSecretAccessRequest: CheckSecretAccessRequest;
|
|
2762
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2763
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2764
|
+
status: 200;
|
|
2765
|
+
data: CheckSecretAccessResponse;
|
|
2766
|
+
} | {
|
|
2767
|
+
status: 400;
|
|
2768
|
+
data: CheckSecretAccessResponse;
|
|
2769
|
+
} | {
|
|
2770
|
+
status: 500;
|
|
2771
|
+
data: CheckSecretAccessResponse;
|
|
2772
|
+
}>("/v1/secrets/check-access", oazapfts.json({
|
|
2773
|
+
...opts,
|
|
2774
|
+
method: "POST",
|
|
2775
|
+
body: checkSecretAccessRequest
|
|
2776
|
+
})));
|
|
2777
|
+
}
|
|
2778
|
+
/**
|
|
2779
|
+
* Retrieves a paginated list of scope details for the current user's tenant.
|
|
2474
2780
|
*/
|
|
2475
2781
|
export function findScopes({ page }: {
|
|
2476
2782
|
page?: PagingRequest;
|
|
@@ -2480,10 +2786,10 @@ export function findScopes({ page }: {
|
|
|
2480
2786
|
data: ScopeResponse[];
|
|
2481
2787
|
} | {
|
|
2482
2788
|
status: 400;
|
|
2483
|
-
data:
|
|
2789
|
+
data: ErrorResponse;
|
|
2484
2790
|
} | {
|
|
2485
2791
|
status: 500;
|
|
2486
|
-
data:
|
|
2792
|
+
data: ErrorResponse;
|
|
2487
2793
|
}>(`/v1/scopes${QS.query(QS.explode({
|
|
2488
2794
|
page
|
|
2489
2795
|
}))}`, {
|
|
@@ -2491,19 +2797,27 @@ export function findScopes({ page }: {
|
|
|
2491
2797
|
}));
|
|
2492
2798
|
}
|
|
2493
2799
|
/**
|
|
2494
|
-
*
|
|
2800
|
+
* Creates a new IAM scope for the current user's tenant using the provided request details.
|
|
2495
2801
|
*/
|
|
2496
2802
|
export function createScope({ iamCreateScopeRequest }: {
|
|
2497
2803
|
iamCreateScopeRequest: IamCreateScopeRequest;
|
|
2498
2804
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2499
|
-
return oazapfts.ok(oazapfts.
|
|
2805
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2806
|
+
status: 201;
|
|
2807
|
+
} | {
|
|
2808
|
+
status: 400;
|
|
2809
|
+
data: ErrorResponse;
|
|
2810
|
+
} | {
|
|
2811
|
+
status: 500;
|
|
2812
|
+
data: ErrorResponse;
|
|
2813
|
+
}>("/v1/scopes", oazapfts.json({
|
|
2500
2814
|
...opts,
|
|
2501
2815
|
method: "POST",
|
|
2502
2816
|
body: iamCreateScopeRequest
|
|
2503
2817
|
})));
|
|
2504
2818
|
}
|
|
2505
2819
|
/**
|
|
2506
|
-
*
|
|
2820
|
+
* Retrieves a list of roles available to the current account.
|
|
2507
2821
|
*/
|
|
2508
2822
|
export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2509
2823
|
size?: any;
|
|
@@ -2542,7 +2856,7 @@ export function getRoles3({ size, page, sort, direction, search, filterMode, fil
|
|
|
2542
2856
|
}));
|
|
2543
2857
|
}
|
|
2544
2858
|
/**
|
|
2545
|
-
*
|
|
2859
|
+
* Creates a new account role.
|
|
2546
2860
|
*/
|
|
2547
2861
|
export function createAccountRole({ createAccountRoleRequest }: {
|
|
2548
2862
|
createAccountRoleRequest: CreateAccountRoleRequest;
|
|
@@ -2566,7 +2880,7 @@ export function createAccountRole({ createAccountRoleRequest }: {
|
|
|
2566
2880
|
})));
|
|
2567
2881
|
}
|
|
2568
2882
|
/**
|
|
2569
|
-
*
|
|
2883
|
+
* Retrieves a list of role members for a specified role.
|
|
2570
2884
|
*/
|
|
2571
2885
|
export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2572
2886
|
roleId: string;
|
|
@@ -2609,7 +2923,7 @@ export function getRoleMembers1({ roleId, size, page, sort, direction, search, f
|
|
|
2609
2923
|
}));
|
|
2610
2924
|
}
|
|
2611
2925
|
/**
|
|
2612
|
-
*
|
|
2926
|
+
* Assigns a specified role to a list of members.
|
|
2613
2927
|
*/
|
|
2614
2928
|
export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
|
|
2615
2929
|
roleId: string;
|
|
@@ -2643,7 +2957,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
|
|
|
2643
2957
|
})));
|
|
2644
2958
|
}
|
|
2645
2959
|
/**
|
|
2646
|
-
*
|
|
2960
|
+
* Retrieves a list of role groups associated with a specific group ID.
|
|
2647
2961
|
*/
|
|
2648
2962
|
export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2649
2963
|
roleId: string;
|
|
@@ -2686,7 +3000,7 @@ export function getRoleGroups1({ roleId, size, page, sort, direction, search, fi
|
|
|
2686
3000
|
}));
|
|
2687
3001
|
}
|
|
2688
3002
|
/**
|
|
2689
|
-
* Bind
|
|
3003
|
+
* Bind a role to a group.
|
|
2690
3004
|
*/
|
|
2691
3005
|
export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
|
|
2692
3006
|
roleId: string;
|
|
@@ -2775,7 +3089,7 @@ export function createResource({ createResourceRequest }: {
|
|
|
2775
3089
|
})));
|
|
2776
3090
|
}
|
|
2777
3091
|
/**
|
|
2778
|
-
*
|
|
3092
|
+
* Retrieves a list of account members for a specified account.
|
|
2779
3093
|
*/
|
|
2780
3094
|
export function getAccountMembers2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2781
3095
|
size?: any;
|
|
@@ -2814,7 +3128,7 @@ export function getAccountMembers2({ size, page, sort, direction, search, filter
|
|
|
2814
3128
|
}));
|
|
2815
3129
|
}
|
|
2816
3130
|
/**
|
|
2817
|
-
*
|
|
3131
|
+
* Creates a new user in the account.
|
|
2818
3132
|
*/
|
|
2819
3133
|
export function createUser({ createUserRequest }: {
|
|
2820
3134
|
createUserRequest: CreateUserRequest;
|
|
@@ -2838,7 +3152,7 @@ export function createUser({ createUserRequest }: {
|
|
|
2838
3152
|
})));
|
|
2839
3153
|
}
|
|
2840
3154
|
/**
|
|
2841
|
-
*
|
|
3155
|
+
* Retrieves a paginated list of roles associated with a specific member.
|
|
2842
3156
|
*/
|
|
2843
3157
|
export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2844
3158
|
memberId: string;
|
|
@@ -2878,7 +3192,7 @@ export function getRoles4({ memberId, size, page, sort, direction, search, filte
|
|
|
2878
3192
|
}));
|
|
2879
3193
|
}
|
|
2880
3194
|
/**
|
|
2881
|
-
*
|
|
3195
|
+
* Binds a member to a list of roles.
|
|
2882
3196
|
*/
|
|
2883
3197
|
export function bindToRoles({ memberId, memberIdsCommonRequest }: {
|
|
2884
3198
|
memberId: string;
|
|
@@ -2905,7 +3219,7 @@ export function bindToRoles({ memberId, memberIdsCommonRequest }: {
|
|
|
2905
3219
|
})));
|
|
2906
3220
|
}
|
|
2907
3221
|
/**
|
|
2908
|
-
*
|
|
3222
|
+
* Resets the OTP configuration for a specified member.
|
|
2909
3223
|
*/
|
|
2910
3224
|
export function resetOtp({ memberId }: {
|
|
2911
3225
|
memberId: string;
|
|
@@ -2927,7 +3241,7 @@ export function resetOtp({ memberId }: {
|
|
|
2927
3241
|
}));
|
|
2928
3242
|
}
|
|
2929
3243
|
/**
|
|
2930
|
-
*
|
|
3244
|
+
* Retrieves a list of groups associated with a specific member.
|
|
2931
3245
|
*/
|
|
2932
3246
|
export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2933
3247
|
memberId: string;
|
|
@@ -2967,7 +3281,7 @@ export function getMemberGroups1({ memberId, size, page, sort, direction, search
|
|
|
2967
3281
|
}));
|
|
2968
3282
|
}
|
|
2969
3283
|
/**
|
|
2970
|
-
*
|
|
3284
|
+
* Binds a member to a list of groups.
|
|
2971
3285
|
*/
|
|
2972
3286
|
export function bindToGroups({ memberId, memberIdsCommonRequest }: {
|
|
2973
3287
|
memberId: string;
|
|
@@ -3037,7 +3351,7 @@ export function addAccountMemberFavorite({ memberId, createFavoriteResourceReque
|
|
|
3037
3351
|
})));
|
|
3038
3352
|
}
|
|
3039
3353
|
/**
|
|
3040
|
-
*
|
|
3354
|
+
* Resets the password for a user by generating a magic link and sending it to their email.
|
|
3041
3355
|
*/
|
|
3042
3356
|
export function resetPassword({ memberEmailRequest }: {
|
|
3043
3357
|
memberEmailRequest: MemberEmailRequest;
|
|
@@ -3060,7 +3374,7 @@ export function resetPassword({ memberEmailRequest }: {
|
|
|
3060
3374
|
})));
|
|
3061
3375
|
}
|
|
3062
3376
|
/**
|
|
3063
|
-
*
|
|
3377
|
+
* Invites new members to an account and assigns them to the default group based on the account type.
|
|
3064
3378
|
*/
|
|
3065
3379
|
export function inviteMembers({ body }: {
|
|
3066
3380
|
body: InviteNewMemberRequest[];
|
|
@@ -3084,7 +3398,7 @@ export function inviteMembers({ body }: {
|
|
|
3084
3398
|
})));
|
|
3085
3399
|
}
|
|
3086
3400
|
/**
|
|
3087
|
-
*
|
|
3401
|
+
* Lists user invitations for account
|
|
3088
3402
|
*/
|
|
3089
3403
|
export function listUserInvitations({ filterBy, filterValue, page, size }: {
|
|
3090
3404
|
filterBy?: string;
|
|
@@ -3114,7 +3428,7 @@ export function listUserInvitations({ filterBy, filterValue, page, size }: {
|
|
|
3114
3428
|
}));
|
|
3115
3429
|
}
|
|
3116
3430
|
/**
|
|
3117
|
-
*
|
|
3431
|
+
* Creates and sends an invitation to a user to join an account.
|
|
3118
3432
|
*/
|
|
3119
3433
|
export function createUserInvitation({ createUserInvitationRequest }: {
|
|
3120
3434
|
createUserInvitationRequest: CreateUserInvitationRequest;
|
|
@@ -4161,6 +4475,102 @@ export function revokeServiceCredential({ id }: {
|
|
|
4161
4475
|
method: "PATCH"
|
|
4162
4476
|
}));
|
|
4163
4477
|
}
|
|
4478
|
+
/**
|
|
4479
|
+
* Delete a member permissions
|
|
4480
|
+
*/
|
|
4481
|
+
export function deleteMemberPermissions({ memberId, body }: {
|
|
4482
|
+
memberId: string;
|
|
4483
|
+
body: DeleteMemberPermissionsRequest[];
|
|
4484
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4485
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4486
|
+
status: 200;
|
|
4487
|
+
} | {
|
|
4488
|
+
status: 403;
|
|
4489
|
+
data: ErrorResponse;
|
|
4490
|
+
} | {
|
|
4491
|
+
status: 404;
|
|
4492
|
+
data: ErrorResponse;
|
|
4493
|
+
} | {
|
|
4494
|
+
status: 500;
|
|
4495
|
+
data: ErrorResponse;
|
|
4496
|
+
}>(`/v2/members/${encodeURIComponent(memberId)}/permissions`, oazapfts.json({
|
|
4497
|
+
...opts,
|
|
4498
|
+
method: "DELETE",
|
|
4499
|
+
body
|
|
4500
|
+
})));
|
|
4501
|
+
}
|
|
4502
|
+
/**
|
|
4503
|
+
* Update a member's permissions by assigning resources and actions, creating a default role if necessary.
|
|
4504
|
+
*/
|
|
4505
|
+
export function updateMemberPermissions({ memberId, body }: {
|
|
4506
|
+
memberId: string;
|
|
4507
|
+
body: UpdateMemberPermissionsRequest[];
|
|
4508
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4509
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4510
|
+
status: 200;
|
|
4511
|
+
} | {
|
|
4512
|
+
status: 403;
|
|
4513
|
+
data: ErrorResponse;
|
|
4514
|
+
} | {
|
|
4515
|
+
status: 404;
|
|
4516
|
+
data: ErrorResponse;
|
|
4517
|
+
} | {
|
|
4518
|
+
status: 500;
|
|
4519
|
+
data: ErrorResponse;
|
|
4520
|
+
}>(`/v2/members/${encodeURIComponent(memberId)}/permissions`, oazapfts.json({
|
|
4521
|
+
...opts,
|
|
4522
|
+
method: "PATCH",
|
|
4523
|
+
body
|
|
4524
|
+
})));
|
|
4525
|
+
}
|
|
4526
|
+
/**
|
|
4527
|
+
* Delete Group permissions
|
|
4528
|
+
*/
|
|
4529
|
+
export function deleteGroupPermissions({ groupId, body }: {
|
|
4530
|
+
groupId: string;
|
|
4531
|
+
body: DeleteGroupPermissionsRequest[];
|
|
4532
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4533
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4534
|
+
status: 200;
|
|
4535
|
+
} | {
|
|
4536
|
+
status: 403;
|
|
4537
|
+
data: ErrorResponse;
|
|
4538
|
+
} | {
|
|
4539
|
+
status: 404;
|
|
4540
|
+
data: ErrorResponse;
|
|
4541
|
+
} | {
|
|
4542
|
+
status: 500;
|
|
4543
|
+
data: ErrorResponse;
|
|
4544
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
4545
|
+
...opts,
|
|
4546
|
+
method: "DELETE",
|
|
4547
|
+
body
|
|
4548
|
+
})));
|
|
4549
|
+
}
|
|
4550
|
+
/**
|
|
4551
|
+
* Update Group permissions
|
|
4552
|
+
*/
|
|
4553
|
+
export function updateGroupPermissions({ groupId, body }: {
|
|
4554
|
+
groupId: string;
|
|
4555
|
+
body: UpdateGroupPermissionsRequest[];
|
|
4556
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4557
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4558
|
+
status: 200;
|
|
4559
|
+
} | {
|
|
4560
|
+
status: 403;
|
|
4561
|
+
data: ErrorResponse;
|
|
4562
|
+
} | {
|
|
4563
|
+
status: 404;
|
|
4564
|
+
data: ErrorResponse;
|
|
4565
|
+
} | {
|
|
4566
|
+
status: 500;
|
|
4567
|
+
data: ErrorResponse;
|
|
4568
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
4569
|
+
...opts,
|
|
4570
|
+
method: "PATCH",
|
|
4571
|
+
body
|
|
4572
|
+
})));
|
|
4573
|
+
}
|
|
4164
4574
|
/**
|
|
4165
4575
|
* Associate Group to Service Credential
|
|
4166
4576
|
*/
|
|
@@ -4202,7 +4612,29 @@ export function revokeServiceCredential1({ id }: {
|
|
|
4202
4612
|
}));
|
|
4203
4613
|
}
|
|
4204
4614
|
/**
|
|
4205
|
-
*
|
|
4615
|
+
* Enable secret by ID
|
|
4616
|
+
*/
|
|
4617
|
+
export function enableSecret({ secretId }: {
|
|
4618
|
+
secretId: string;
|
|
4619
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4620
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/enable`, {
|
|
4621
|
+
...opts,
|
|
4622
|
+
method: "PATCH"
|
|
4623
|
+
}));
|
|
4624
|
+
}
|
|
4625
|
+
/**
|
|
4626
|
+
* Disable secret by ID
|
|
4627
|
+
*/
|
|
4628
|
+
export function disableSecret({ secretId }: {
|
|
4629
|
+
secretId: string;
|
|
4630
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4631
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/disable`, {
|
|
4632
|
+
...opts,
|
|
4633
|
+
method: "PATCH"
|
|
4634
|
+
}));
|
|
4635
|
+
}
|
|
4636
|
+
/**
|
|
4637
|
+
* Retrieves the preferences of a specific member.
|
|
4206
4638
|
*/
|
|
4207
4639
|
export function getMemberPreferences({ memberId }: {
|
|
4208
4640
|
memberId: string;
|
|
@@ -4224,7 +4656,7 @@ export function getMemberPreferences({ memberId }: {
|
|
|
4224
4656
|
}));
|
|
4225
4657
|
}
|
|
4226
4658
|
/**
|
|
4227
|
-
*
|
|
4659
|
+
* Updates the preferences of a specific member.
|
|
4228
4660
|
*/
|
|
4229
4661
|
export function updateMemberPreferences({ memberId, updateMemberPreferencesRequest }: {
|
|
4230
4662
|
memberId: string;
|
|
@@ -4251,9 +4683,9 @@ export function updateMemberPreferences({ memberId, updateMemberPreferencesReque
|
|
|
4251
4683
|
})));
|
|
4252
4684
|
}
|
|
4253
4685
|
/**
|
|
4254
|
-
*
|
|
4686
|
+
* Deletes specific permissions from a member's role.
|
|
4255
4687
|
*/
|
|
4256
|
-
export function
|
|
4688
|
+
export function deleteMemberPermissions1({ memberId, deleteMemberPermissionsRequest }: {
|
|
4257
4689
|
memberId: string;
|
|
4258
4690
|
deleteMemberPermissionsRequest: DeleteMemberPermissionsRequest;
|
|
4259
4691
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4275,9 +4707,9 @@ export function deleteMemberPermissions({ memberId, deleteMemberPermissionsReque
|
|
|
4275
4707
|
})));
|
|
4276
4708
|
}
|
|
4277
4709
|
/**
|
|
4278
|
-
* Update member permissions
|
|
4710
|
+
* Update a member's permissions by assigning resources and actions, creating a default role if necessary.
|
|
4279
4711
|
*/
|
|
4280
|
-
export function
|
|
4712
|
+
export function updateMemberPermissions1({ memberId, updateMemberPermissionsRequest }: {
|
|
4281
4713
|
memberId: string;
|
|
4282
4714
|
updateMemberPermissionsRequest: UpdateMemberPermissionsRequest;
|
|
4283
4715
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4299,7 +4731,7 @@ export function updateMemberPermissions({ memberId, updateMemberPermissionsReque
|
|
|
4299
4731
|
})));
|
|
4300
4732
|
}
|
|
4301
4733
|
/**
|
|
4302
|
-
*
|
|
4734
|
+
* Retrieves a paginated list of Fido user credentials for a specific member.
|
|
4303
4735
|
*/
|
|
4304
4736
|
export function getAllMemberFidoCredentials({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4305
4737
|
memberId: string;
|
|
@@ -4342,7 +4774,7 @@ export function getAllMemberFidoCredentials({ memberId, size, page, sort, direct
|
|
|
4342
4774
|
}));
|
|
4343
4775
|
}
|
|
4344
4776
|
/**
|
|
4345
|
-
*
|
|
4777
|
+
* Deactivates all Fido credentials associated with a specific member.
|
|
4346
4778
|
*/
|
|
4347
4779
|
export function deactivateFidoCredentials({ memberId }: {
|
|
4348
4780
|
memberId: string;
|
|
@@ -4364,7 +4796,7 @@ export function deactivateFidoCredentials({ memberId }: {
|
|
|
4364
4796
|
}));
|
|
4365
4797
|
}
|
|
4366
4798
|
/**
|
|
4367
|
-
*
|
|
4799
|
+
* Enables Fido credentials for a specified member.
|
|
4368
4800
|
*/
|
|
4369
4801
|
export function enableFidoCredentials({ memberId }: {
|
|
4370
4802
|
memberId: string;
|
|
@@ -4386,7 +4818,7 @@ export function enableFidoCredentials({ memberId }: {
|
|
|
4386
4818
|
}));
|
|
4387
4819
|
}
|
|
4388
4820
|
/**
|
|
4389
|
-
*
|
|
4821
|
+
* Cancel a user invitation.
|
|
4390
4822
|
*/
|
|
4391
4823
|
export function cancelUserInvitation({ id }: {
|
|
4392
4824
|
id: string;
|
|
@@ -4411,7 +4843,7 @@ export function cancelUserInvitation({ id }: {
|
|
|
4411
4843
|
}));
|
|
4412
4844
|
}
|
|
4413
4845
|
/**
|
|
4414
|
-
*
|
|
4846
|
+
* Resends a user invitation for a specified account.
|
|
4415
4847
|
*/
|
|
4416
4848
|
export function resendUserInvitation({ id }: {
|
|
4417
4849
|
id: string;
|
|
@@ -4513,7 +4945,7 @@ export function update1({ groupId, updateGroupRequest }: {
|
|
|
4513
4945
|
/**
|
|
4514
4946
|
* Delete Group permissions
|
|
4515
4947
|
*/
|
|
4516
|
-
export function
|
|
4948
|
+
export function deleteGroupPermissions1({ groupId, deleteGroupPermissionsRequest }: {
|
|
4517
4949
|
groupId: string;
|
|
4518
4950
|
deleteGroupPermissionsRequest: DeleteGroupPermissionsRequest;
|
|
4519
4951
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4537,7 +4969,7 @@ export function deleteGroupPermissions({ groupId, deleteGroupPermissionsRequest
|
|
|
4537
4969
|
/**
|
|
4538
4970
|
* Update Group permissions
|
|
4539
4971
|
*/
|
|
4540
|
-
export function
|
|
4972
|
+
export function updateGroupPermissions1({ groupId, updateGroupPermissionsRequest }: {
|
|
4541
4973
|
groupId: string;
|
|
4542
4974
|
updateGroupPermissionsRequest: UpdateGroupPermissionsRequest;
|
|
4543
4975
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -5190,7 +5622,7 @@ export function getResourceTypes({ size, page, sort, direction, search, filterMo
|
|
|
5190
5622
|
}));
|
|
5191
5623
|
}
|
|
5192
5624
|
/**
|
|
5193
|
-
*
|
|
5625
|
+
* Retrieves a list of account members.
|
|
5194
5626
|
*/
|
|
5195
5627
|
export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5196
5628
|
size?: any;
|
|
@@ -5229,7 +5661,7 @@ export function getAccountMembers({ size, page, sort, direction, search, filterM
|
|
|
5229
5661
|
}));
|
|
5230
5662
|
}
|
|
5231
5663
|
/**
|
|
5232
|
-
*
|
|
5664
|
+
* Retrieves a list of roles associated with a specific member.
|
|
5233
5665
|
*/
|
|
5234
5666
|
export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5235
5667
|
memberId: string;
|
|
@@ -5269,7 +5701,7 @@ export function getRoles1({ memberId, size, page, sort, direction, search, filte
|
|
|
5269
5701
|
}));
|
|
5270
5702
|
}
|
|
5271
5703
|
/**
|
|
5272
|
-
*
|
|
5704
|
+
* Retrieves a list of groups for a specified member.
|
|
5273
5705
|
*/
|
|
5274
5706
|
export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5275
5707
|
memberId: string;
|
|
@@ -5470,7 +5902,7 @@ export function getMembers({ groupId, size, page, sort, direction, search, filte
|
|
|
5470
5902
|
}));
|
|
5471
5903
|
}
|
|
5472
5904
|
/**
|
|
5473
|
-
*
|
|
5905
|
+
* Verifies if SCM credentials exist for the current user's account and email, throwing an error if not found.
|
|
5474
5906
|
*/
|
|
5475
5907
|
export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
5476
5908
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -5492,7 +5924,7 @@ export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
|
5492
5924
|
}));
|
|
5493
5925
|
}
|
|
5494
5926
|
/**
|
|
5495
|
-
*
|
|
5927
|
+
* Retrieves a list of user accounts along with their collaboration roles for the current authenticated user.
|
|
5496
5928
|
*/
|
|
5497
5929
|
export function getUserAccountWithRole(opts?: Oazapfts.RequestOpts) {
|
|
5498
5930
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -5653,7 +6085,26 @@ export function getServiceCredentialGroups1({ id }: {
|
|
|
5653
6085
|
}));
|
|
5654
6086
|
}
|
|
5655
6087
|
/**
|
|
5656
|
-
*
|
|
6088
|
+
* Retrieve secret value
|
|
6089
|
+
*/
|
|
6090
|
+
export function getSecretValue({ secretId }: {
|
|
6091
|
+
secretId: string;
|
|
6092
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6093
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6094
|
+
status: 200;
|
|
6095
|
+
data: SecretResponse;
|
|
6096
|
+
} | {
|
|
6097
|
+
status: 400;
|
|
6098
|
+
data: SecretResponse;
|
|
6099
|
+
} | {
|
|
6100
|
+
status: 500;
|
|
6101
|
+
data: SecretResponse;
|
|
6102
|
+
}>(`/v1/secrets/${encodeURIComponent(secretId)}/value`, {
|
|
6103
|
+
...opts
|
|
6104
|
+
}));
|
|
6105
|
+
}
|
|
6106
|
+
/**
|
|
6107
|
+
* Retrieves the SCM provider information for the current user's account.
|
|
5657
6108
|
*/
|
|
5658
6109
|
export function getScmProvider(opts?: Oazapfts.RequestOpts) {
|
|
5659
6110
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -5673,7 +6124,7 @@ export function getScmProvider(opts?: Oazapfts.RequestOpts) {
|
|
|
5673
6124
|
}));
|
|
5674
6125
|
}
|
|
5675
6126
|
/**
|
|
5676
|
-
*
|
|
6127
|
+
* Verifies the SCM credentials configuration for the current user's account and returns its status, indicating if the mandate or user-specific configuration exists.
|
|
5677
6128
|
*/
|
|
5678
6129
|
export function isCreatedScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
5679
6130
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -5696,7 +6147,7 @@ export function isCreatedScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
|
5696
6147
|
}));
|
|
5697
6148
|
}
|
|
5698
6149
|
/**
|
|
5699
|
-
*
|
|
6150
|
+
* Retrieves a list of permissions with their status for a specified role.
|
|
5700
6151
|
*/
|
|
5701
6152
|
export function getPermissionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5702
6153
|
roleId: string;
|
|
@@ -5882,7 +6333,7 @@ export function getAccess({ resourceType, resource, action, attribute }: {
|
|
|
5882
6333
|
}));
|
|
5883
6334
|
}
|
|
5884
6335
|
/**
|
|
5885
|
-
*
|
|
6336
|
+
* Retrieves a list of resources associated with the specified member.
|
|
5886
6337
|
*/
|
|
5887
6338
|
export function getResources2({ memberId }: {
|
|
5888
6339
|
memberId: string;
|
|
@@ -5921,7 +6372,7 @@ export function listMemberFavoritesByResource({ memberId, resourceType }: {
|
|
|
5921
6372
|
}));
|
|
5922
6373
|
}
|
|
5923
6374
|
/**
|
|
5924
|
-
*
|
|
6375
|
+
* Retrieves a list of account members and collaborators associated with the current user's account.
|
|
5925
6376
|
*/
|
|
5926
6377
|
export function getAccountMembersToCollaborators({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5927
6378
|
size?: any;
|
|
@@ -6283,7 +6734,7 @@ export function disassociateGroupToServiceCredential({ id, groupId }: {
|
|
|
6283
6734
|
}));
|
|
6284
6735
|
}
|
|
6285
6736
|
/**
|
|
6286
|
-
*
|
|
6737
|
+
* Removes a specified role from a member.
|
|
6287
6738
|
*/
|
|
6288
6739
|
export function removeRoleFromMember({ roleId, memberId }: {
|
|
6289
6740
|
roleId: string;
|
|
@@ -6333,7 +6784,7 @@ export function deleteResource({ resourceId }: {
|
|
|
6333
6784
|
}));
|
|
6334
6785
|
}
|
|
6335
6786
|
/**
|
|
6336
|
-
*
|
|
6787
|
+
* Deletes the profile image of a member.
|
|
6337
6788
|
*/
|
|
6338
6789
|
export function deleteProfileImage({ memberId }: {
|
|
6339
6790
|
memberId: string;
|