@flashstart/client 0.1.1 → 8.10.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/README.md +9 -2
- package/dist/src/generated/authentication/client/client.gen.d.ts +2 -0
- package/dist/src/generated/authentication/client/client.gen.js +216 -0
- package/dist/src/generated/authentication/client/index.d.ts +10 -0
- package/dist/src/generated/authentication/client/index.js +6 -0
- package/dist/src/generated/authentication/client/types.gen.d.ts +120 -0
- package/dist/src/generated/authentication/client/types.gen.js +2 -0
- package/dist/src/generated/authentication/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/authentication/client/utils.gen.js +228 -0
- package/dist/src/generated/authentication/client.gen.d.ts +12 -0
- package/dist/src/generated/authentication/client.gen.js +3 -0
- package/dist/src/generated/authentication/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/authentication/core/auth.gen.js +14 -0
- package/dist/src/generated/authentication/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/authentication/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/authentication/core/params.gen.d.ts +43 -0
- package/dist/src/generated/authentication/core/params.gen.js +109 -0
- package/dist/src/generated/authentication/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/authentication/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/authentication/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/authentication/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/authentication/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/authentication/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/authentication/core/types.gen.d.ts +83 -0
- package/dist/src/generated/authentication/core/types.gen.js +2 -0
- package/dist/src/generated/authentication/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/authentication/core/utils.gen.js +87 -0
- package/dist/src/generated/authentication/index.d.ts +2 -0
- package/dist/src/generated/authentication/index.js +2 -0
- package/dist/src/generated/authentication/sdk.gen.d.ts +159 -0
- package/dist/src/generated/authentication/sdk.gen.js +371 -0
- package/dist/src/generated/authentication/types.gen.d.ts +1135 -0
- package/dist/src/generated/authentication/types.gen.js +2 -0
- package/dist/src/generated/integration/client/client.gen.d.ts +2 -0
- package/dist/src/generated/integration/client/client.gen.js +216 -0
- package/dist/src/generated/integration/client/index.d.ts +10 -0
- package/dist/src/generated/integration/client/index.js +6 -0
- package/dist/src/generated/integration/client/types.gen.d.ts +120 -0
- package/dist/src/generated/integration/client/types.gen.js +2 -0
- package/dist/src/generated/integration/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/integration/client/utils.gen.js +228 -0
- package/dist/src/generated/integration/client.gen.d.ts +12 -0
- package/dist/src/generated/integration/client.gen.js +3 -0
- package/dist/src/generated/integration/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/integration/core/auth.gen.js +14 -0
- package/dist/src/generated/integration/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/integration/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/integration/core/params.gen.d.ts +43 -0
- package/dist/src/generated/integration/core/params.gen.js +109 -0
- package/dist/src/generated/integration/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/integration/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/integration/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/integration/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/integration/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/integration/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/integration/core/types.gen.d.ts +83 -0
- package/dist/src/generated/integration/core/types.gen.js +2 -0
- package/dist/src/generated/integration/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/integration/core/utils.gen.js +87 -0
- package/dist/src/generated/integration/index.d.ts +2 -0
- package/dist/src/generated/integration/index.js +2 -0
- package/dist/src/generated/integration/sdk.gen.d.ts +211 -0
- package/dist/src/generated/integration/sdk.gen.js +537 -0
- package/dist/src/generated/integration/types.gen.d.ts +2658 -0
- package/dist/src/generated/integration/types.gen.js +2 -0
- package/dist/src/generated/network/index.d.ts +1 -1
- package/dist/src/generated/network/types.gen.d.ts +751 -55
- package/dist/src/generated/protection/index.d.ts +1 -1
- package/dist/src/generated/protection/types.gen.d.ts +627 -357
- package/dist/src/generated/report/client/client.gen.d.ts +2 -0
- package/dist/src/generated/report/client/client.gen.js +216 -0
- package/dist/src/generated/report/client/index.d.ts +10 -0
- package/dist/src/generated/report/client/index.js +6 -0
- package/dist/src/generated/report/client/types.gen.d.ts +120 -0
- package/dist/src/generated/report/client/types.gen.js +2 -0
- package/dist/src/generated/report/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/report/client/utils.gen.js +228 -0
- package/dist/src/generated/report/client.gen.d.ts +12 -0
- package/dist/src/generated/report/client.gen.js +3 -0
- package/dist/src/generated/report/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/report/core/auth.gen.js +14 -0
- package/dist/src/generated/report/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/report/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/report/core/params.gen.d.ts +43 -0
- package/dist/src/generated/report/core/params.gen.js +109 -0
- package/dist/src/generated/report/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/report/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/report/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/report/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/report/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/report/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/report/core/types.gen.d.ts +83 -0
- package/dist/src/generated/report/core/types.gen.js +2 -0
- package/dist/src/generated/report/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/report/core/utils.gen.js +87 -0
- package/dist/src/generated/report/index.d.ts +2 -0
- package/dist/src/generated/report/index.js +2 -0
- package/dist/src/generated/report/sdk.gen.d.ts +59 -0
- package/dist/src/generated/report/sdk.gen.js +89 -0
- package/dist/src/generated/report/types.gen.d.ts +389 -0
- package/dist/src/generated/report/types.gen.js +2 -0
- package/dist/src/index.d.ts +13 -1
- package/dist/src/index.js +39 -4
- package/package.json +6 -4
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
class HeyApiClient {
|
|
4
|
+
client;
|
|
5
|
+
constructor(args) {
|
|
6
|
+
this.client = args?.client ?? client;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
class HeyApiRegistry {
|
|
10
|
+
defaultKey = 'default';
|
|
11
|
+
instances = new Map();
|
|
12
|
+
get(key) {
|
|
13
|
+
const instance = this.instances.get(key ?? this.defaultKey);
|
|
14
|
+
if (!instance) {
|
|
15
|
+
throw new Error(`No SDK client found. Create one with "new AuthenticationSdk()" to fix this error.`);
|
|
16
|
+
}
|
|
17
|
+
return instance;
|
|
18
|
+
}
|
|
19
|
+
set(value, key) {
|
|
20
|
+
this.instances.set(key ?? this.defaultKey, value);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export class AuthenticationSdk extends HeyApiClient {
|
|
24
|
+
static __registry = new HeyApiRegistry();
|
|
25
|
+
constructor(args) {
|
|
26
|
+
super(args);
|
|
27
|
+
AuthenticationSdk.__registry.set(this, args?.key);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Log in (Private / Internal)
|
|
31
|
+
*
|
|
32
|
+
* Internal system route for FlashStart frontend authentication. Not intended for direct external customer usage — external customers must use API keys (x-api-key) with public API endpoints.
|
|
33
|
+
*/
|
|
34
|
+
login(options) {
|
|
35
|
+
return (options.client ?? this.client).post({
|
|
36
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
37
|
+
url: '/v1/login',
|
|
38
|
+
...options,
|
|
39
|
+
headers: {
|
|
40
|
+
'Content-Type': 'application/json',
|
|
41
|
+
...options.headers
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Refresh tokens (Private / Internal)
|
|
47
|
+
*
|
|
48
|
+
* Internal system route for FlashStart frontend authentication. Not intended for direct external customer usage — external customers must use API keys (x-api-key) with public API endpoints.
|
|
49
|
+
*/
|
|
50
|
+
refreshToken(options) {
|
|
51
|
+
return (options.client ?? this.client).post({
|
|
52
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
53
|
+
url: '/v1/refresh',
|
|
54
|
+
...options,
|
|
55
|
+
headers: {
|
|
56
|
+
'Content-Type': 'application/json',
|
|
57
|
+
...options.headers
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get current user
|
|
63
|
+
*/
|
|
64
|
+
getCurrentUser(options) {
|
|
65
|
+
return (options?.client ?? this.client).get({
|
|
66
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
67
|
+
url: '/v1/me',
|
|
68
|
+
...options
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Generate one-time token
|
|
73
|
+
*/
|
|
74
|
+
generateOneTimeToken(options) {
|
|
75
|
+
return (options.client ?? this.client).post({
|
|
76
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
77
|
+
url: '/v1/one-time-token/generate',
|
|
78
|
+
...options,
|
|
79
|
+
headers: {
|
|
80
|
+
'Content-Type': 'application/json',
|
|
81
|
+
...options.headers
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Reset password
|
|
87
|
+
*/
|
|
88
|
+
resetPassword(options) {
|
|
89
|
+
return (options.client ?? this.client).post({
|
|
90
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
91
|
+
url: '/v1/reset-password',
|
|
92
|
+
...options,
|
|
93
|
+
headers: {
|
|
94
|
+
'Content-Type': 'application/json',
|
|
95
|
+
...options.headers
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Log in with one-time token (Private / Internal)
|
|
101
|
+
*
|
|
102
|
+
* Internal system route for FlashStart frontend authentication. Not intended for direct external customer usage — external customers must use API keys (x-api-key) with public API endpoints.
|
|
103
|
+
*/
|
|
104
|
+
loginWithOneTimeToken(options) {
|
|
105
|
+
return (options.client ?? this.client).post({
|
|
106
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
107
|
+
url: '/v1/one-time-token/login',
|
|
108
|
+
...options,
|
|
109
|
+
headers: {
|
|
110
|
+
'Content-Type': 'application/json',
|
|
111
|
+
...options.headers
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Log out (Private / Internal)
|
|
117
|
+
*
|
|
118
|
+
* Internal system route for FlashStart frontend authentication. Not intended for direct external customer usage — external customers must use API keys (x-api-key) with public API endpoints.
|
|
119
|
+
*/
|
|
120
|
+
logout(options) {
|
|
121
|
+
return (options.client ?? this.client).post({
|
|
122
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
123
|
+
url: '/v1/logout',
|
|
124
|
+
...options,
|
|
125
|
+
headers: {
|
|
126
|
+
'Content-Type': 'application/json',
|
|
127
|
+
...options.headers
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* List audit logs
|
|
133
|
+
*/
|
|
134
|
+
listAuditLogs(options) {
|
|
135
|
+
return (options?.client ?? this.client).get({
|
|
136
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
137
|
+
url: '/v1/audit',
|
|
138
|
+
...options
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Get two-factor status
|
|
143
|
+
*/
|
|
144
|
+
getTwoFactorStatus(options) {
|
|
145
|
+
return (options?.client ?? this.client).get({
|
|
146
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
147
|
+
url: '/v1/2fa/status',
|
|
148
|
+
...options
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Set up two-factor authentication
|
|
153
|
+
*/
|
|
154
|
+
setupTwoFactor(options) {
|
|
155
|
+
return (options?.client ?? this.client).get({
|
|
156
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
157
|
+
url: '/v1/2fa/setup',
|
|
158
|
+
...options
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Enable two-factor authentication
|
|
163
|
+
*/
|
|
164
|
+
enableTwoFactor(options) {
|
|
165
|
+
return (options.client ?? this.client).post({
|
|
166
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
167
|
+
url: '/v1/2fa/enable',
|
|
168
|
+
...options,
|
|
169
|
+
headers: {
|
|
170
|
+
'Content-Type': 'application/json',
|
|
171
|
+
...options.headers
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Disable two-factor authentication
|
|
177
|
+
*/
|
|
178
|
+
disableTwoFactor(options) {
|
|
179
|
+
return (options?.client ?? this.client).post({
|
|
180
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
181
|
+
url: '/v1/2fa/disable',
|
|
182
|
+
...options
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Regenerate backup codes
|
|
187
|
+
*/
|
|
188
|
+
regenerateBackupCodes(options) {
|
|
189
|
+
return (options?.client ?? this.client).post({
|
|
190
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
191
|
+
url: '/v1/2fa/backup-codes',
|
|
192
|
+
...options
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* List organizations
|
|
197
|
+
*/
|
|
198
|
+
listOrganizations(options) {
|
|
199
|
+
return (options?.client ?? this.client).get({
|
|
200
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
201
|
+
url: '/v1/all',
|
|
202
|
+
...options
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get current organization
|
|
207
|
+
*/
|
|
208
|
+
getCurrentOrganization(options) {
|
|
209
|
+
return (options?.client ?? this.client).get({
|
|
210
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
211
|
+
url: '/v1/',
|
|
212
|
+
...options
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* List child organizations
|
|
217
|
+
*/
|
|
218
|
+
listChildOrganizations(options) {
|
|
219
|
+
return (options?.client ?? this.client).get({
|
|
220
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
221
|
+
url: '/v1/children',
|
|
222
|
+
...options
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* List organization members
|
|
227
|
+
*/
|
|
228
|
+
listOrganizationMembers(options) {
|
|
229
|
+
return (options?.client ?? this.client).get({
|
|
230
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
231
|
+
url: '/v1/members',
|
|
232
|
+
...options
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Create organization member
|
|
237
|
+
*/
|
|
238
|
+
createOrganizationMember(options) {
|
|
239
|
+
return (options.client ?? this.client).post({
|
|
240
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
241
|
+
url: '/v1/member',
|
|
242
|
+
...options,
|
|
243
|
+
headers: {
|
|
244
|
+
'Content-Type': 'application/json',
|
|
245
|
+
...options.headers
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Delete organization member
|
|
251
|
+
*/
|
|
252
|
+
deleteOrganizationMember(options) {
|
|
253
|
+
return (options.client ?? this.client).delete({
|
|
254
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
255
|
+
url: '/v1/member/{memberId}',
|
|
256
|
+
...options
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Get organization member
|
|
261
|
+
*/
|
|
262
|
+
getOrganizationMember(options) {
|
|
263
|
+
return (options.client ?? this.client).get({
|
|
264
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
265
|
+
url: '/v1/member/{memberId}',
|
|
266
|
+
...options
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Update organization member
|
|
271
|
+
*/
|
|
272
|
+
updateOrganizationMember(options) {
|
|
273
|
+
return (options.client ?? this.client).patch({
|
|
274
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
275
|
+
url: '/v1/member/{memberId}',
|
|
276
|
+
...options,
|
|
277
|
+
headers: {
|
|
278
|
+
'Content-Type': 'application/json',
|
|
279
|
+
...options.headers
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Get organization admin emails
|
|
285
|
+
*/
|
|
286
|
+
getOrganizationAdminEmails(options) {
|
|
287
|
+
return (options?.client ?? this.client).get({
|
|
288
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
289
|
+
url: '/v1/admin-emails',
|
|
290
|
+
...options
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Check authorization
|
|
295
|
+
*/
|
|
296
|
+
checkAuthorization(options) {
|
|
297
|
+
return (options.client ?? this.client).post({
|
|
298
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
299
|
+
url: '/v1/can',
|
|
300
|
+
...options,
|
|
301
|
+
headers: {
|
|
302
|
+
'Content-Type': 'application/json',
|
|
303
|
+
...options.headers
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* List available roles
|
|
309
|
+
*/
|
|
310
|
+
listAvailableRoles(options) {
|
|
311
|
+
return (options?.client ?? this.client).get({
|
|
312
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
313
|
+
url: '/v1/roles',
|
|
314
|
+
...options
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* List delegated access users
|
|
319
|
+
*/
|
|
320
|
+
listDelegatedAccessUsers(options) {
|
|
321
|
+
return (options?.client ?? this.client).get({
|
|
322
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
323
|
+
url: '/v1/delegated-admins',
|
|
324
|
+
...options
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Get authorization context
|
|
329
|
+
*/
|
|
330
|
+
getAuthorizationContext(options) {
|
|
331
|
+
return (options.client ?? this.client).get({
|
|
332
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
333
|
+
url: '/v1/organization/{organizationId}/context',
|
|
334
|
+
...options
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* List granted permissions
|
|
339
|
+
*/
|
|
340
|
+
listUserGrantedPermissions(options) {
|
|
341
|
+
return (options.client ?? this.client).get({
|
|
342
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
343
|
+
url: '/v1/permissions/{organizationId}',
|
|
344
|
+
...options
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* List delegated access assignments
|
|
349
|
+
*/
|
|
350
|
+
listDelegatedAccessAssignments(options) {
|
|
351
|
+
return (options.client ?? this.client).get({
|
|
352
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
353
|
+
url: '/v1/delegated-admins/{userId}/assignments',
|
|
354
|
+
...options
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Replace delegated access assignments
|
|
359
|
+
*/
|
|
360
|
+
replaceDelegatedAccessAssignments(options) {
|
|
361
|
+
return (options.client ?? this.client).put({
|
|
362
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
363
|
+
url: '/v1/delegated-admins/{userId}/assignments',
|
|
364
|
+
...options,
|
|
365
|
+
headers: {
|
|
366
|
+
'Content-Type': 'application/json',
|
|
367
|
+
...options.headers
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
}
|