@flashstart/client 0.1.0 → 0.2.1
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/LICENSE +201 -0
- 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 +151 -0
- package/dist/src/generated/authentication/sdk.gen.js +359 -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 +207 -0
- package/dist/src/generated/integration/sdk.gen.js +527 -0
- package/dist/src/generated/integration/types.gen.d.ts +2604 -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 +5 -2
|
@@ -0,0 +1,1135 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: 'https://core.flashstart.com/authentication' | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type FlashStartErrorBody = {
|
|
5
|
+
code: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
details?: unknown;
|
|
8
|
+
};
|
|
9
|
+
export type MissingCredentialsErrorBody = {
|
|
10
|
+
message: string;
|
|
11
|
+
};
|
|
12
|
+
export type TooManyRequestsErrorBody = {
|
|
13
|
+
error: 'Too many requests, please try again later.';
|
|
14
|
+
};
|
|
15
|
+
export type LoginData = {
|
|
16
|
+
body: {
|
|
17
|
+
password: string;
|
|
18
|
+
twoFactorToken?: string;
|
|
19
|
+
username?: string;
|
|
20
|
+
};
|
|
21
|
+
path?: never;
|
|
22
|
+
query?: never;
|
|
23
|
+
url: '/v1/login';
|
|
24
|
+
};
|
|
25
|
+
export type LoginErrors = {
|
|
26
|
+
/**
|
|
27
|
+
* Unauthorized
|
|
28
|
+
*/
|
|
29
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
30
|
+
/**
|
|
31
|
+
* Invalid request
|
|
32
|
+
*/
|
|
33
|
+
422: FlashStartErrorBody;
|
|
34
|
+
/**
|
|
35
|
+
* Too many requests
|
|
36
|
+
*/
|
|
37
|
+
429: TooManyRequestsErrorBody;
|
|
38
|
+
/**
|
|
39
|
+
* Internal server error
|
|
40
|
+
*/
|
|
41
|
+
500: FlashStartErrorBody;
|
|
42
|
+
};
|
|
43
|
+
export type LoginError = LoginErrors[keyof LoginErrors];
|
|
44
|
+
export type LoginResponses = {
|
|
45
|
+
/**
|
|
46
|
+
* Authentication result
|
|
47
|
+
*/
|
|
48
|
+
200: {
|
|
49
|
+
accessToken: string;
|
|
50
|
+
accessTokenExpiresAt: number;
|
|
51
|
+
defaultOrganizationId: string | null;
|
|
52
|
+
refreshToken: string;
|
|
53
|
+
refreshTokenExpiresAt: number;
|
|
54
|
+
user: {
|
|
55
|
+
id: string;
|
|
56
|
+
username: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
};
|
|
59
|
+
} | {
|
|
60
|
+
message?: string;
|
|
61
|
+
requiresTwoFactor: true;
|
|
62
|
+
user: {
|
|
63
|
+
id: string;
|
|
64
|
+
username: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export type LoginResponse = LoginResponses[keyof LoginResponses];
|
|
69
|
+
export type RefreshTokenData = {
|
|
70
|
+
body: {
|
|
71
|
+
refreshToken: string;
|
|
72
|
+
};
|
|
73
|
+
path?: never;
|
|
74
|
+
query?: never;
|
|
75
|
+
url: '/v1/refresh';
|
|
76
|
+
};
|
|
77
|
+
export type RefreshTokenErrors = {
|
|
78
|
+
/**
|
|
79
|
+
* Unauthorized
|
|
80
|
+
*/
|
|
81
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
82
|
+
/**
|
|
83
|
+
* Invalid request
|
|
84
|
+
*/
|
|
85
|
+
422: FlashStartErrorBody;
|
|
86
|
+
/**
|
|
87
|
+
* Too many requests
|
|
88
|
+
*/
|
|
89
|
+
429: TooManyRequestsErrorBody;
|
|
90
|
+
/**
|
|
91
|
+
* Internal server error
|
|
92
|
+
*/
|
|
93
|
+
500: FlashStartErrorBody;
|
|
94
|
+
};
|
|
95
|
+
export type RefreshTokenError = RefreshTokenErrors[keyof RefreshTokenErrors];
|
|
96
|
+
export type RefreshTokenResponses = {
|
|
97
|
+
/**
|
|
98
|
+
* Refreshed tokens
|
|
99
|
+
*/
|
|
100
|
+
200: {
|
|
101
|
+
accessToken: string;
|
|
102
|
+
accessTokenExpiresAt: number;
|
|
103
|
+
refreshToken: string;
|
|
104
|
+
refreshTokenExpiresAt: number;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export type RefreshTokenResponse = RefreshTokenResponses[keyof RefreshTokenResponses];
|
|
108
|
+
export type GetCurrentUserData = {
|
|
109
|
+
body?: never;
|
|
110
|
+
path?: never;
|
|
111
|
+
query?: never;
|
|
112
|
+
url: '/v1/me';
|
|
113
|
+
};
|
|
114
|
+
export type GetCurrentUserErrors = {
|
|
115
|
+
/**
|
|
116
|
+
* Unauthorized
|
|
117
|
+
*/
|
|
118
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
119
|
+
/**
|
|
120
|
+
* Forbidden
|
|
121
|
+
*/
|
|
122
|
+
403: FlashStartErrorBody;
|
|
123
|
+
/**
|
|
124
|
+
* Internal server error
|
|
125
|
+
*/
|
|
126
|
+
500: FlashStartErrorBody;
|
|
127
|
+
};
|
|
128
|
+
export type GetCurrentUserError = GetCurrentUserErrors[keyof GetCurrentUserErrors];
|
|
129
|
+
export type GetCurrentUserResponses = {
|
|
130
|
+
/**
|
|
131
|
+
* Current user
|
|
132
|
+
*/
|
|
133
|
+
200: {
|
|
134
|
+
id: string;
|
|
135
|
+
username: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export type GetCurrentUserResponse = GetCurrentUserResponses[keyof GetCurrentUserResponses];
|
|
140
|
+
export type GenerateOneTimeTokenData = {
|
|
141
|
+
body: {
|
|
142
|
+
userId: string;
|
|
143
|
+
};
|
|
144
|
+
path?: never;
|
|
145
|
+
query?: never;
|
|
146
|
+
url: '/v1/one-time-token/generate';
|
|
147
|
+
};
|
|
148
|
+
export type GenerateOneTimeTokenErrors = {
|
|
149
|
+
/**
|
|
150
|
+
* Unauthorized
|
|
151
|
+
*/
|
|
152
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
153
|
+
/**
|
|
154
|
+
* Forbidden
|
|
155
|
+
*/
|
|
156
|
+
403: FlashStartErrorBody;
|
|
157
|
+
/**
|
|
158
|
+
* Invalid request
|
|
159
|
+
*/
|
|
160
|
+
422: FlashStartErrorBody;
|
|
161
|
+
/**
|
|
162
|
+
* Internal server error
|
|
163
|
+
*/
|
|
164
|
+
500: FlashStartErrorBody;
|
|
165
|
+
};
|
|
166
|
+
export type GenerateOneTimeTokenError = GenerateOneTimeTokenErrors[keyof GenerateOneTimeTokenErrors];
|
|
167
|
+
export type GenerateOneTimeTokenResponses = {
|
|
168
|
+
/**
|
|
169
|
+
* One-time token
|
|
170
|
+
*/
|
|
171
|
+
200: {
|
|
172
|
+
message: string;
|
|
173
|
+
token: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
export type GenerateOneTimeTokenResponse = GenerateOneTimeTokenResponses[keyof GenerateOneTimeTokenResponses];
|
|
177
|
+
export type ResetPasswordData = {
|
|
178
|
+
body: {
|
|
179
|
+
userId: string;
|
|
180
|
+
username: string;
|
|
181
|
+
organizationId: string;
|
|
182
|
+
newPassword: string;
|
|
183
|
+
};
|
|
184
|
+
path?: never;
|
|
185
|
+
query?: never;
|
|
186
|
+
url: '/v1/reset-password';
|
|
187
|
+
};
|
|
188
|
+
export type ResetPasswordErrors = {
|
|
189
|
+
/**
|
|
190
|
+
* Unauthorized
|
|
191
|
+
*/
|
|
192
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
193
|
+
/**
|
|
194
|
+
* Forbidden
|
|
195
|
+
*/
|
|
196
|
+
403: FlashStartErrorBody;
|
|
197
|
+
/**
|
|
198
|
+
* Invalid request
|
|
199
|
+
*/
|
|
200
|
+
422: FlashStartErrorBody;
|
|
201
|
+
/**
|
|
202
|
+
* Internal server error
|
|
203
|
+
*/
|
|
204
|
+
500: FlashStartErrorBody;
|
|
205
|
+
};
|
|
206
|
+
export type ResetPasswordError = ResetPasswordErrors[keyof ResetPasswordErrors];
|
|
207
|
+
export type ResetPasswordResponses = {
|
|
208
|
+
/**
|
|
209
|
+
* Password reset
|
|
210
|
+
*/
|
|
211
|
+
204: void;
|
|
212
|
+
};
|
|
213
|
+
export type ResetPasswordResponse = ResetPasswordResponses[keyof ResetPasswordResponses];
|
|
214
|
+
export type LoginWithOneTimeTokenData = {
|
|
215
|
+
body: {
|
|
216
|
+
token: string;
|
|
217
|
+
twoFactorToken?: string;
|
|
218
|
+
userId: string;
|
|
219
|
+
};
|
|
220
|
+
path?: never;
|
|
221
|
+
query?: never;
|
|
222
|
+
url: '/v1/one-time-token/login';
|
|
223
|
+
};
|
|
224
|
+
export type LoginWithOneTimeTokenErrors = {
|
|
225
|
+
/**
|
|
226
|
+
* Unauthorized
|
|
227
|
+
*/
|
|
228
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
229
|
+
/**
|
|
230
|
+
* Invalid request
|
|
231
|
+
*/
|
|
232
|
+
422: FlashStartErrorBody;
|
|
233
|
+
/**
|
|
234
|
+
* Too many requests
|
|
235
|
+
*/
|
|
236
|
+
429: TooManyRequestsErrorBody;
|
|
237
|
+
/**
|
|
238
|
+
* Internal server error
|
|
239
|
+
*/
|
|
240
|
+
500: FlashStartErrorBody;
|
|
241
|
+
};
|
|
242
|
+
export type LoginWithOneTimeTokenError = LoginWithOneTimeTokenErrors[keyof LoginWithOneTimeTokenErrors];
|
|
243
|
+
export type LoginWithOneTimeTokenResponses = {
|
|
244
|
+
/**
|
|
245
|
+
* Authentication result
|
|
246
|
+
*/
|
|
247
|
+
200: {
|
|
248
|
+
accessToken: string;
|
|
249
|
+
accessTokenExpiresAt: number;
|
|
250
|
+
defaultOrganizationId: string | null;
|
|
251
|
+
refreshToken: string;
|
|
252
|
+
refreshTokenExpiresAt: number;
|
|
253
|
+
user: {
|
|
254
|
+
id: string;
|
|
255
|
+
username: string;
|
|
256
|
+
name?: string;
|
|
257
|
+
};
|
|
258
|
+
} | {
|
|
259
|
+
message?: string;
|
|
260
|
+
requiresTwoFactor: true;
|
|
261
|
+
user: {
|
|
262
|
+
id: string;
|
|
263
|
+
username: string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
export type LoginWithOneTimeTokenResponse = LoginWithOneTimeTokenResponses[keyof LoginWithOneTimeTokenResponses];
|
|
268
|
+
export type LogoutData = {
|
|
269
|
+
body: {
|
|
270
|
+
refreshToken: string;
|
|
271
|
+
};
|
|
272
|
+
path?: never;
|
|
273
|
+
query?: never;
|
|
274
|
+
url: '/v1/logout';
|
|
275
|
+
};
|
|
276
|
+
export type LogoutErrors = {
|
|
277
|
+
/**
|
|
278
|
+
* Unauthorized
|
|
279
|
+
*/
|
|
280
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
281
|
+
/**
|
|
282
|
+
* Invalid request
|
|
283
|
+
*/
|
|
284
|
+
422: FlashStartErrorBody;
|
|
285
|
+
/**
|
|
286
|
+
* Internal server error
|
|
287
|
+
*/
|
|
288
|
+
500: FlashStartErrorBody;
|
|
289
|
+
};
|
|
290
|
+
export type LogoutError = LogoutErrors[keyof LogoutErrors];
|
|
291
|
+
export type LogoutResponses = {
|
|
292
|
+
/**
|
|
293
|
+
* Logged out
|
|
294
|
+
*/
|
|
295
|
+
200: {
|
|
296
|
+
message: string;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
export type LogoutResponse = LogoutResponses[keyof LogoutResponses];
|
|
300
|
+
export type ListAuditLogsData = {
|
|
301
|
+
body?: never;
|
|
302
|
+
path?: never;
|
|
303
|
+
query?: {
|
|
304
|
+
organizationIds?: string | Array<string>;
|
|
305
|
+
};
|
|
306
|
+
url: '/v1/audit';
|
|
307
|
+
};
|
|
308
|
+
export type ListAuditLogsErrors = {
|
|
309
|
+
/**
|
|
310
|
+
* Unauthorized
|
|
311
|
+
*/
|
|
312
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
313
|
+
/**
|
|
314
|
+
* Forbidden
|
|
315
|
+
*/
|
|
316
|
+
403: FlashStartErrorBody;
|
|
317
|
+
/**
|
|
318
|
+
* Invalid request
|
|
319
|
+
*/
|
|
320
|
+
422: FlashStartErrorBody;
|
|
321
|
+
/**
|
|
322
|
+
* Internal server error
|
|
323
|
+
*/
|
|
324
|
+
500: FlashStartErrorBody;
|
|
325
|
+
};
|
|
326
|
+
export type ListAuditLogsError = ListAuditLogsErrors[keyof ListAuditLogsErrors];
|
|
327
|
+
export type ListAuditLogsResponses = {
|
|
328
|
+
/**
|
|
329
|
+
* Audit logs
|
|
330
|
+
*/
|
|
331
|
+
200: Array<{
|
|
332
|
+
id?: string;
|
|
333
|
+
action?: string;
|
|
334
|
+
createdAt?: string;
|
|
335
|
+
[key: string]: unknown;
|
|
336
|
+
}>;
|
|
337
|
+
};
|
|
338
|
+
export type ListAuditLogsResponse = ListAuditLogsResponses[keyof ListAuditLogsResponses];
|
|
339
|
+
export type GetTwoFactorStatusData = {
|
|
340
|
+
body?: never;
|
|
341
|
+
path?: never;
|
|
342
|
+
query?: never;
|
|
343
|
+
url: '/v1/2fa/status';
|
|
344
|
+
};
|
|
345
|
+
export type GetTwoFactorStatusErrors = {
|
|
346
|
+
/**
|
|
347
|
+
* Unauthorized
|
|
348
|
+
*/
|
|
349
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
350
|
+
/**
|
|
351
|
+
* Forbidden
|
|
352
|
+
*/
|
|
353
|
+
403: FlashStartErrorBody;
|
|
354
|
+
/**
|
|
355
|
+
* Internal server error
|
|
356
|
+
*/
|
|
357
|
+
500: FlashStartErrorBody;
|
|
358
|
+
};
|
|
359
|
+
export type GetTwoFactorStatusError = GetTwoFactorStatusErrors[keyof GetTwoFactorStatusErrors];
|
|
360
|
+
export type GetTwoFactorStatusResponses = {
|
|
361
|
+
/**
|
|
362
|
+
* Two-factor status
|
|
363
|
+
*/
|
|
364
|
+
200: {
|
|
365
|
+
enabled: boolean;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
export type GetTwoFactorStatusResponse = GetTwoFactorStatusResponses[keyof GetTwoFactorStatusResponses];
|
|
369
|
+
export type SetupTwoFactorData = {
|
|
370
|
+
body?: never;
|
|
371
|
+
path?: never;
|
|
372
|
+
query?: never;
|
|
373
|
+
url: '/v1/2fa/setup';
|
|
374
|
+
};
|
|
375
|
+
export type SetupTwoFactorErrors = {
|
|
376
|
+
/**
|
|
377
|
+
* Unauthorized
|
|
378
|
+
*/
|
|
379
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
380
|
+
/**
|
|
381
|
+
* Forbidden
|
|
382
|
+
*/
|
|
383
|
+
403: FlashStartErrorBody;
|
|
384
|
+
/**
|
|
385
|
+
* Internal server error
|
|
386
|
+
*/
|
|
387
|
+
500: FlashStartErrorBody;
|
|
388
|
+
};
|
|
389
|
+
export type SetupTwoFactorError = SetupTwoFactorErrors[keyof SetupTwoFactorErrors];
|
|
390
|
+
export type SetupTwoFactorResponses = {
|
|
391
|
+
/**
|
|
392
|
+
* Two-factor setup
|
|
393
|
+
*/
|
|
394
|
+
200: {
|
|
395
|
+
otpauthUrl: string;
|
|
396
|
+
qrCode: string;
|
|
397
|
+
secret: string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
export type SetupTwoFactorResponse = SetupTwoFactorResponses[keyof SetupTwoFactorResponses];
|
|
401
|
+
export type EnableTwoFactorData = {
|
|
402
|
+
body: {
|
|
403
|
+
token: string;
|
|
404
|
+
};
|
|
405
|
+
path?: never;
|
|
406
|
+
query?: never;
|
|
407
|
+
url: '/v1/2fa/enable';
|
|
408
|
+
};
|
|
409
|
+
export type EnableTwoFactorErrors = {
|
|
410
|
+
/**
|
|
411
|
+
* Unauthorized
|
|
412
|
+
*/
|
|
413
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
414
|
+
/**
|
|
415
|
+
* Forbidden
|
|
416
|
+
*/
|
|
417
|
+
403: FlashStartErrorBody;
|
|
418
|
+
/**
|
|
419
|
+
* Invalid request
|
|
420
|
+
*/
|
|
421
|
+
422: FlashStartErrorBody;
|
|
422
|
+
/**
|
|
423
|
+
* Internal server error
|
|
424
|
+
*/
|
|
425
|
+
500: FlashStartErrorBody;
|
|
426
|
+
};
|
|
427
|
+
export type EnableTwoFactorError = EnableTwoFactorErrors[keyof EnableTwoFactorErrors];
|
|
428
|
+
export type EnableTwoFactorResponses = {
|
|
429
|
+
/**
|
|
430
|
+
* Two-factor enabled
|
|
431
|
+
*/
|
|
432
|
+
200: {
|
|
433
|
+
backupCodes: Array<string>;
|
|
434
|
+
message: string;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
export type EnableTwoFactorResponse = EnableTwoFactorResponses[keyof EnableTwoFactorResponses];
|
|
438
|
+
export type DisableTwoFactorData = {
|
|
439
|
+
body?: never;
|
|
440
|
+
path?: never;
|
|
441
|
+
query?: never;
|
|
442
|
+
url: '/v1/2fa/disable';
|
|
443
|
+
};
|
|
444
|
+
export type DisableTwoFactorErrors = {
|
|
445
|
+
/**
|
|
446
|
+
* Unauthorized
|
|
447
|
+
*/
|
|
448
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
449
|
+
/**
|
|
450
|
+
* Forbidden
|
|
451
|
+
*/
|
|
452
|
+
403: FlashStartErrorBody;
|
|
453
|
+
/**
|
|
454
|
+
* Internal server error
|
|
455
|
+
*/
|
|
456
|
+
500: FlashStartErrorBody;
|
|
457
|
+
};
|
|
458
|
+
export type DisableTwoFactorError = DisableTwoFactorErrors[keyof DisableTwoFactorErrors];
|
|
459
|
+
export type DisableTwoFactorResponses = {
|
|
460
|
+
/**
|
|
461
|
+
* Two-factor disabled
|
|
462
|
+
*/
|
|
463
|
+
200: {
|
|
464
|
+
message: string;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
export type DisableTwoFactorResponse = DisableTwoFactorResponses[keyof DisableTwoFactorResponses];
|
|
468
|
+
export type RegenerateBackupCodesData = {
|
|
469
|
+
body?: never;
|
|
470
|
+
path?: never;
|
|
471
|
+
query?: never;
|
|
472
|
+
url: '/v1/2fa/backup-codes';
|
|
473
|
+
};
|
|
474
|
+
export type RegenerateBackupCodesErrors = {
|
|
475
|
+
/**
|
|
476
|
+
* Unauthorized
|
|
477
|
+
*/
|
|
478
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
479
|
+
/**
|
|
480
|
+
* Forbidden
|
|
481
|
+
*/
|
|
482
|
+
403: FlashStartErrorBody;
|
|
483
|
+
/**
|
|
484
|
+
* Internal server error
|
|
485
|
+
*/
|
|
486
|
+
500: FlashStartErrorBody;
|
|
487
|
+
};
|
|
488
|
+
export type RegenerateBackupCodesError = RegenerateBackupCodesErrors[keyof RegenerateBackupCodesErrors];
|
|
489
|
+
export type RegenerateBackupCodesResponses = {
|
|
490
|
+
/**
|
|
491
|
+
* Backup codes
|
|
492
|
+
*/
|
|
493
|
+
200: {
|
|
494
|
+
backupCodes: Array<string>;
|
|
495
|
+
message: string;
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
export type RegenerateBackupCodesResponse = RegenerateBackupCodesResponses[keyof RegenerateBackupCodesResponses];
|
|
499
|
+
export type ListOrganizationsData = {
|
|
500
|
+
body?: never;
|
|
501
|
+
path?: never;
|
|
502
|
+
query?: never;
|
|
503
|
+
url: '/v1/all';
|
|
504
|
+
};
|
|
505
|
+
export type ListOrganizationsErrors = {
|
|
506
|
+
/**
|
|
507
|
+
* Unauthorized
|
|
508
|
+
*/
|
|
509
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
510
|
+
/**
|
|
511
|
+
* Forbidden
|
|
512
|
+
*/
|
|
513
|
+
403: FlashStartErrorBody;
|
|
514
|
+
/**
|
|
515
|
+
* Internal server error
|
|
516
|
+
*/
|
|
517
|
+
500: FlashStartErrorBody;
|
|
518
|
+
};
|
|
519
|
+
export type ListOrganizationsError = ListOrganizationsErrors[keyof ListOrganizationsErrors];
|
|
520
|
+
export type ListOrganizationsResponses = {
|
|
521
|
+
/**
|
|
522
|
+
* Organizations
|
|
523
|
+
*/
|
|
524
|
+
200: Array<{
|
|
525
|
+
id: string;
|
|
526
|
+
name: string;
|
|
527
|
+
[key: string]: unknown;
|
|
528
|
+
}>;
|
|
529
|
+
};
|
|
530
|
+
export type ListOrganizationsResponse = ListOrganizationsResponses[keyof ListOrganizationsResponses];
|
|
531
|
+
export type GetCurrentOrganizationData = {
|
|
532
|
+
body?: never;
|
|
533
|
+
path?: never;
|
|
534
|
+
query?: never;
|
|
535
|
+
url: '/v1/';
|
|
536
|
+
};
|
|
537
|
+
export type GetCurrentOrganizationErrors = {
|
|
538
|
+
/**
|
|
539
|
+
* Unauthorized
|
|
540
|
+
*/
|
|
541
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
542
|
+
/**
|
|
543
|
+
* Forbidden
|
|
544
|
+
*/
|
|
545
|
+
403: FlashStartErrorBody;
|
|
546
|
+
/**
|
|
547
|
+
* Not found
|
|
548
|
+
*/
|
|
549
|
+
404: FlashStartErrorBody;
|
|
550
|
+
/**
|
|
551
|
+
* Internal server error
|
|
552
|
+
*/
|
|
553
|
+
500: FlashStartErrorBody;
|
|
554
|
+
};
|
|
555
|
+
export type GetCurrentOrganizationError = GetCurrentOrganizationErrors[keyof GetCurrentOrganizationErrors];
|
|
556
|
+
export type GetCurrentOrganizationResponses = {
|
|
557
|
+
/**
|
|
558
|
+
* Organization
|
|
559
|
+
*/
|
|
560
|
+
200: {
|
|
561
|
+
id: string;
|
|
562
|
+
name: string;
|
|
563
|
+
[key: string]: unknown;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
export type GetCurrentOrganizationResponse = GetCurrentOrganizationResponses[keyof GetCurrentOrganizationResponses];
|
|
567
|
+
export type ListChildOrganizationsData = {
|
|
568
|
+
body?: never;
|
|
569
|
+
path?: never;
|
|
570
|
+
query?: {
|
|
571
|
+
organizationId?: string;
|
|
572
|
+
};
|
|
573
|
+
url: '/v1/children';
|
|
574
|
+
};
|
|
575
|
+
export type ListChildOrganizationsErrors = {
|
|
576
|
+
/**
|
|
577
|
+
* Unauthorized
|
|
578
|
+
*/
|
|
579
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
580
|
+
/**
|
|
581
|
+
* Forbidden
|
|
582
|
+
*/
|
|
583
|
+
403: FlashStartErrorBody;
|
|
584
|
+
/**
|
|
585
|
+
* Not found
|
|
586
|
+
*/
|
|
587
|
+
404: FlashStartErrorBody;
|
|
588
|
+
/**
|
|
589
|
+
* Invalid request
|
|
590
|
+
*/
|
|
591
|
+
422: FlashStartErrorBody;
|
|
592
|
+
/**
|
|
593
|
+
* Internal server error
|
|
594
|
+
*/
|
|
595
|
+
500: FlashStartErrorBody;
|
|
596
|
+
};
|
|
597
|
+
export type ListChildOrganizationsError = ListChildOrganizationsErrors[keyof ListChildOrganizationsErrors];
|
|
598
|
+
export type ListChildOrganizationsResponses = {
|
|
599
|
+
/**
|
|
600
|
+
* Child organizations
|
|
601
|
+
*/
|
|
602
|
+
200: Array<{
|
|
603
|
+
id: string;
|
|
604
|
+
name: string;
|
|
605
|
+
children?: Array<{
|
|
606
|
+
id: string;
|
|
607
|
+
name: string;
|
|
608
|
+
[key: string]: unknown;
|
|
609
|
+
}>;
|
|
610
|
+
[key: string]: unknown;
|
|
611
|
+
}>;
|
|
612
|
+
};
|
|
613
|
+
export type ListChildOrganizationsResponse = ListChildOrganizationsResponses[keyof ListChildOrganizationsResponses];
|
|
614
|
+
export type ListOrganizationMembersData = {
|
|
615
|
+
body?: never;
|
|
616
|
+
path?: never;
|
|
617
|
+
query?: {
|
|
618
|
+
organizationId?: string;
|
|
619
|
+
};
|
|
620
|
+
url: '/v1/members';
|
|
621
|
+
};
|
|
622
|
+
export type ListOrganizationMembersErrors = {
|
|
623
|
+
/**
|
|
624
|
+
* Unauthorized
|
|
625
|
+
*/
|
|
626
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
627
|
+
/**
|
|
628
|
+
* Forbidden
|
|
629
|
+
*/
|
|
630
|
+
403: FlashStartErrorBody;
|
|
631
|
+
/**
|
|
632
|
+
* Not found
|
|
633
|
+
*/
|
|
634
|
+
404: FlashStartErrorBody;
|
|
635
|
+
/**
|
|
636
|
+
* Invalid request
|
|
637
|
+
*/
|
|
638
|
+
422: FlashStartErrorBody;
|
|
639
|
+
/**
|
|
640
|
+
* Internal server error
|
|
641
|
+
*/
|
|
642
|
+
500: FlashStartErrorBody;
|
|
643
|
+
};
|
|
644
|
+
export type ListOrganizationMembersError = ListOrganizationMembersErrors[keyof ListOrganizationMembersErrors];
|
|
645
|
+
export type ListOrganizationMembersResponses = {
|
|
646
|
+
/**
|
|
647
|
+
* Organization members
|
|
648
|
+
*/
|
|
649
|
+
200: Array<{
|
|
650
|
+
id: string;
|
|
651
|
+
username: string;
|
|
652
|
+
name?: string;
|
|
653
|
+
}>;
|
|
654
|
+
};
|
|
655
|
+
export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses];
|
|
656
|
+
export type CreateOrganizationMemberData = {
|
|
657
|
+
body: {
|
|
658
|
+
username: string;
|
|
659
|
+
password: unknown & unknown & unknown & unknown;
|
|
660
|
+
roleId: string;
|
|
661
|
+
name: string;
|
|
662
|
+
notificationEmail?: string;
|
|
663
|
+
organizationId: string;
|
|
664
|
+
};
|
|
665
|
+
path?: never;
|
|
666
|
+
query?: never;
|
|
667
|
+
url: '/v1/member';
|
|
668
|
+
};
|
|
669
|
+
export type CreateOrganizationMemberErrors = {
|
|
670
|
+
/**
|
|
671
|
+
* Unauthorized
|
|
672
|
+
*/
|
|
673
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
674
|
+
/**
|
|
675
|
+
* Forbidden
|
|
676
|
+
*/
|
|
677
|
+
403: FlashStartErrorBody;
|
|
678
|
+
/**
|
|
679
|
+
* Not found
|
|
680
|
+
*/
|
|
681
|
+
404: FlashStartErrorBody;
|
|
682
|
+
/**
|
|
683
|
+
* Invalid request
|
|
684
|
+
*/
|
|
685
|
+
422: FlashStartErrorBody;
|
|
686
|
+
/**
|
|
687
|
+
* Internal server error
|
|
688
|
+
*/
|
|
689
|
+
500: FlashStartErrorBody;
|
|
690
|
+
};
|
|
691
|
+
export type CreateOrganizationMemberError = CreateOrganizationMemberErrors[keyof CreateOrganizationMemberErrors];
|
|
692
|
+
export type CreateOrganizationMemberResponses = {
|
|
693
|
+
/**
|
|
694
|
+
* Organization member
|
|
695
|
+
*/
|
|
696
|
+
201: {
|
|
697
|
+
id: string;
|
|
698
|
+
username: string;
|
|
699
|
+
name?: string;
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
export type CreateOrganizationMemberResponse = CreateOrganizationMemberResponses[keyof CreateOrganizationMemberResponses];
|
|
703
|
+
export type DeleteOrganizationMemberData = {
|
|
704
|
+
body?: never;
|
|
705
|
+
path: {
|
|
706
|
+
memberId: string;
|
|
707
|
+
};
|
|
708
|
+
query?: never;
|
|
709
|
+
url: '/v1/member/{memberId}';
|
|
710
|
+
};
|
|
711
|
+
export type DeleteOrganizationMemberErrors = {
|
|
712
|
+
/**
|
|
713
|
+
* Unauthorized
|
|
714
|
+
*/
|
|
715
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
716
|
+
/**
|
|
717
|
+
* Forbidden
|
|
718
|
+
*/
|
|
719
|
+
403: FlashStartErrorBody;
|
|
720
|
+
/**
|
|
721
|
+
* Not found
|
|
722
|
+
*/
|
|
723
|
+
404: FlashStartErrorBody;
|
|
724
|
+
/**
|
|
725
|
+
* Invalid request
|
|
726
|
+
*/
|
|
727
|
+
422: FlashStartErrorBody;
|
|
728
|
+
/**
|
|
729
|
+
* Internal server error
|
|
730
|
+
*/
|
|
731
|
+
500: FlashStartErrorBody;
|
|
732
|
+
};
|
|
733
|
+
export type DeleteOrganizationMemberError = DeleteOrganizationMemberErrors[keyof DeleteOrganizationMemberErrors];
|
|
734
|
+
export type DeleteOrganizationMemberResponses = {
|
|
735
|
+
/**
|
|
736
|
+
* Organization member
|
|
737
|
+
*/
|
|
738
|
+
200: {
|
|
739
|
+
id: string;
|
|
740
|
+
username: string;
|
|
741
|
+
name?: string;
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
export type DeleteOrganizationMemberResponse = DeleteOrganizationMemberResponses[keyof DeleteOrganizationMemberResponses];
|
|
745
|
+
export type GetOrganizationMemberData = {
|
|
746
|
+
body?: never;
|
|
747
|
+
path: {
|
|
748
|
+
memberId: string;
|
|
749
|
+
};
|
|
750
|
+
query?: never;
|
|
751
|
+
url: '/v1/member/{memberId}';
|
|
752
|
+
};
|
|
753
|
+
export type GetOrganizationMemberErrors = {
|
|
754
|
+
/**
|
|
755
|
+
* Unauthorized
|
|
756
|
+
*/
|
|
757
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
758
|
+
/**
|
|
759
|
+
* Forbidden
|
|
760
|
+
*/
|
|
761
|
+
403: FlashStartErrorBody;
|
|
762
|
+
/**
|
|
763
|
+
* Not found
|
|
764
|
+
*/
|
|
765
|
+
404: FlashStartErrorBody;
|
|
766
|
+
/**
|
|
767
|
+
* Invalid request
|
|
768
|
+
*/
|
|
769
|
+
422: FlashStartErrorBody;
|
|
770
|
+
/**
|
|
771
|
+
* Internal server error
|
|
772
|
+
*/
|
|
773
|
+
500: FlashStartErrorBody;
|
|
774
|
+
};
|
|
775
|
+
export type GetOrganizationMemberError = GetOrganizationMemberErrors[keyof GetOrganizationMemberErrors];
|
|
776
|
+
export type GetOrganizationMemberResponses = {
|
|
777
|
+
/**
|
|
778
|
+
* Organization member
|
|
779
|
+
*/
|
|
780
|
+
200: {
|
|
781
|
+
id: string;
|
|
782
|
+
username: string;
|
|
783
|
+
name?: string;
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
export type GetOrganizationMemberResponse = GetOrganizationMemberResponses[keyof GetOrganizationMemberResponses];
|
|
787
|
+
export type UpdateOrganizationMemberData = {
|
|
788
|
+
body: {
|
|
789
|
+
username?: string;
|
|
790
|
+
roleId?: string;
|
|
791
|
+
name?: string;
|
|
792
|
+
notificationEmail?: string;
|
|
793
|
+
};
|
|
794
|
+
path: {
|
|
795
|
+
memberId: string;
|
|
796
|
+
};
|
|
797
|
+
query?: never;
|
|
798
|
+
url: '/v1/member/{memberId}';
|
|
799
|
+
};
|
|
800
|
+
export type UpdateOrganizationMemberErrors = {
|
|
801
|
+
/**
|
|
802
|
+
* Unauthorized
|
|
803
|
+
*/
|
|
804
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
805
|
+
/**
|
|
806
|
+
* Forbidden
|
|
807
|
+
*/
|
|
808
|
+
403: FlashStartErrorBody;
|
|
809
|
+
/**
|
|
810
|
+
* Not found
|
|
811
|
+
*/
|
|
812
|
+
404: FlashStartErrorBody;
|
|
813
|
+
/**
|
|
814
|
+
* Invalid request
|
|
815
|
+
*/
|
|
816
|
+
422: FlashStartErrorBody;
|
|
817
|
+
/**
|
|
818
|
+
* Internal server error
|
|
819
|
+
*/
|
|
820
|
+
500: FlashStartErrorBody;
|
|
821
|
+
};
|
|
822
|
+
export type UpdateOrganizationMemberError = UpdateOrganizationMemberErrors[keyof UpdateOrganizationMemberErrors];
|
|
823
|
+
export type UpdateOrganizationMemberResponses = {
|
|
824
|
+
/**
|
|
825
|
+
* Organization member
|
|
826
|
+
*/
|
|
827
|
+
200: {
|
|
828
|
+
id: string;
|
|
829
|
+
username: string;
|
|
830
|
+
name?: string;
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
export type UpdateOrganizationMemberResponse = UpdateOrganizationMemberResponses[keyof UpdateOrganizationMemberResponses];
|
|
834
|
+
export type GetOrganizationAdminEmailsData = {
|
|
835
|
+
body?: never;
|
|
836
|
+
path?: never;
|
|
837
|
+
query?: never;
|
|
838
|
+
url: '/v1/admin-emails';
|
|
839
|
+
};
|
|
840
|
+
export type GetOrganizationAdminEmailsErrors = {
|
|
841
|
+
/**
|
|
842
|
+
* Unauthorized
|
|
843
|
+
*/
|
|
844
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
845
|
+
/**
|
|
846
|
+
* Forbidden
|
|
847
|
+
*/
|
|
848
|
+
403: FlashStartErrorBody;
|
|
849
|
+
/**
|
|
850
|
+
* Internal server error
|
|
851
|
+
*/
|
|
852
|
+
500: FlashStartErrorBody;
|
|
853
|
+
};
|
|
854
|
+
export type GetOrganizationAdminEmailsError = GetOrganizationAdminEmailsErrors[keyof GetOrganizationAdminEmailsErrors];
|
|
855
|
+
export type GetOrganizationAdminEmailsResponses = {
|
|
856
|
+
/**
|
|
857
|
+
* Organization admin emails
|
|
858
|
+
*/
|
|
859
|
+
200: {
|
|
860
|
+
[key: string]: Array<string>;
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
export type GetOrganizationAdminEmailsResponse = GetOrganizationAdminEmailsResponses[keyof GetOrganizationAdminEmailsResponses];
|
|
864
|
+
export type CheckAuthorizationData = {
|
|
865
|
+
body: {
|
|
866
|
+
context?: {
|
|
867
|
+
[key: string]: unknown;
|
|
868
|
+
};
|
|
869
|
+
organizationId: string;
|
|
870
|
+
permissionName: string;
|
|
871
|
+
};
|
|
872
|
+
path?: never;
|
|
873
|
+
query?: never;
|
|
874
|
+
url: '/v1/can';
|
|
875
|
+
};
|
|
876
|
+
export type CheckAuthorizationErrors = {
|
|
877
|
+
/**
|
|
878
|
+
* Unauthorized
|
|
879
|
+
*/
|
|
880
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
881
|
+
/**
|
|
882
|
+
* Forbidden
|
|
883
|
+
*/
|
|
884
|
+
403: FlashStartErrorBody;
|
|
885
|
+
/**
|
|
886
|
+
* Invalid request
|
|
887
|
+
*/
|
|
888
|
+
422: FlashStartErrorBody;
|
|
889
|
+
/**
|
|
890
|
+
* Internal server error
|
|
891
|
+
*/
|
|
892
|
+
500: FlashStartErrorBody;
|
|
893
|
+
};
|
|
894
|
+
export type CheckAuthorizationError = CheckAuthorizationErrors[keyof CheckAuthorizationErrors];
|
|
895
|
+
export type CheckAuthorizationResponses = {
|
|
896
|
+
/**
|
|
897
|
+
* Authorization result
|
|
898
|
+
*/
|
|
899
|
+
200: {
|
|
900
|
+
can: boolean;
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
export type CheckAuthorizationResponse = CheckAuthorizationResponses[keyof CheckAuthorizationResponses];
|
|
904
|
+
export type ListAvailableRolesData = {
|
|
905
|
+
body?: never;
|
|
906
|
+
path?: never;
|
|
907
|
+
query?: never;
|
|
908
|
+
url: '/v1/roles';
|
|
909
|
+
};
|
|
910
|
+
export type ListAvailableRolesErrors = {
|
|
911
|
+
/**
|
|
912
|
+
* Unauthorized
|
|
913
|
+
*/
|
|
914
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
915
|
+
/**
|
|
916
|
+
* Forbidden
|
|
917
|
+
*/
|
|
918
|
+
403: FlashStartErrorBody;
|
|
919
|
+
/**
|
|
920
|
+
* Internal server error
|
|
921
|
+
*/
|
|
922
|
+
500: FlashStartErrorBody;
|
|
923
|
+
};
|
|
924
|
+
export type ListAvailableRolesError = ListAvailableRolesErrors[keyof ListAvailableRolesErrors];
|
|
925
|
+
export type ListAvailableRolesResponses = {
|
|
926
|
+
/**
|
|
927
|
+
* Available roles
|
|
928
|
+
*/
|
|
929
|
+
200: Array<{
|
|
930
|
+
id: string;
|
|
931
|
+
name: string;
|
|
932
|
+
[key: string]: unknown;
|
|
933
|
+
}>;
|
|
934
|
+
};
|
|
935
|
+
export type ListAvailableRolesResponse = ListAvailableRolesResponses[keyof ListAvailableRolesResponses];
|
|
936
|
+
export type ListDelegatedAccessUsersData = {
|
|
937
|
+
body?: never;
|
|
938
|
+
path?: never;
|
|
939
|
+
query?: never;
|
|
940
|
+
url: '/v1/delegated-admins';
|
|
941
|
+
};
|
|
942
|
+
export type ListDelegatedAccessUsersErrors = {
|
|
943
|
+
/**
|
|
944
|
+
* Unauthorized
|
|
945
|
+
*/
|
|
946
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
947
|
+
/**
|
|
948
|
+
* Forbidden
|
|
949
|
+
*/
|
|
950
|
+
403: FlashStartErrorBody;
|
|
951
|
+
/**
|
|
952
|
+
* Internal server error
|
|
953
|
+
*/
|
|
954
|
+
500: FlashStartErrorBody;
|
|
955
|
+
};
|
|
956
|
+
export type ListDelegatedAccessUsersError = ListDelegatedAccessUsersErrors[keyof ListDelegatedAccessUsersErrors];
|
|
957
|
+
export type ListDelegatedAccessUsersResponses = {
|
|
958
|
+
/**
|
|
959
|
+
* Delegated access users
|
|
960
|
+
*/
|
|
961
|
+
200: Array<{
|
|
962
|
+
id: string;
|
|
963
|
+
username: string;
|
|
964
|
+
name?: string;
|
|
965
|
+
}>;
|
|
966
|
+
};
|
|
967
|
+
export type ListDelegatedAccessUsersResponse = ListDelegatedAccessUsersResponses[keyof ListDelegatedAccessUsersResponses];
|
|
968
|
+
export type GetAuthorizationContextData = {
|
|
969
|
+
body?: never;
|
|
970
|
+
path: {
|
|
971
|
+
organizationId: string;
|
|
972
|
+
};
|
|
973
|
+
query?: never;
|
|
974
|
+
url: '/v1/organization/{organizationId}/context';
|
|
975
|
+
};
|
|
976
|
+
export type GetAuthorizationContextErrors = {
|
|
977
|
+
/**
|
|
978
|
+
* Unauthorized
|
|
979
|
+
*/
|
|
980
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
981
|
+
/**
|
|
982
|
+
* Forbidden
|
|
983
|
+
*/
|
|
984
|
+
403: FlashStartErrorBody;
|
|
985
|
+
/**
|
|
986
|
+
* Not found
|
|
987
|
+
*/
|
|
988
|
+
404: FlashStartErrorBody;
|
|
989
|
+
/**
|
|
990
|
+
* Invalid request
|
|
991
|
+
*/
|
|
992
|
+
422: FlashStartErrorBody;
|
|
993
|
+
/**
|
|
994
|
+
* Internal server error
|
|
995
|
+
*/
|
|
996
|
+
500: FlashStartErrorBody;
|
|
997
|
+
};
|
|
998
|
+
export type GetAuthorizationContextError = GetAuthorizationContextErrors[keyof GetAuthorizationContextErrors];
|
|
999
|
+
export type GetAuthorizationContextResponses = {
|
|
1000
|
+
/**
|
|
1001
|
+
* Authorization context
|
|
1002
|
+
*/
|
|
1003
|
+
200: {
|
|
1004
|
+
[key: string]: unknown;
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
export type GetAuthorizationContextResponse = GetAuthorizationContextResponses[keyof GetAuthorizationContextResponses];
|
|
1008
|
+
export type ListUserGrantedPermissionsData = {
|
|
1009
|
+
body?: never;
|
|
1010
|
+
path: {
|
|
1011
|
+
organizationId: string;
|
|
1012
|
+
};
|
|
1013
|
+
query?: never;
|
|
1014
|
+
url: '/v1/permissions/{organizationId}';
|
|
1015
|
+
};
|
|
1016
|
+
export type ListUserGrantedPermissionsErrors = {
|
|
1017
|
+
/**
|
|
1018
|
+
* Unauthorized
|
|
1019
|
+
*/
|
|
1020
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
1021
|
+
/**
|
|
1022
|
+
* Forbidden
|
|
1023
|
+
*/
|
|
1024
|
+
403: FlashStartErrorBody;
|
|
1025
|
+
/**
|
|
1026
|
+
* Invalid request
|
|
1027
|
+
*/
|
|
1028
|
+
422: FlashStartErrorBody;
|
|
1029
|
+
/**
|
|
1030
|
+
* Internal server error
|
|
1031
|
+
*/
|
|
1032
|
+
500: FlashStartErrorBody;
|
|
1033
|
+
};
|
|
1034
|
+
export type ListUserGrantedPermissionsError = ListUserGrantedPermissionsErrors[keyof ListUserGrantedPermissionsErrors];
|
|
1035
|
+
export type ListUserGrantedPermissionsResponses = {
|
|
1036
|
+
/**
|
|
1037
|
+
* Granted permissions
|
|
1038
|
+
*/
|
|
1039
|
+
200: {
|
|
1040
|
+
permissions: Array<string>;
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
export type ListUserGrantedPermissionsResponse = ListUserGrantedPermissionsResponses[keyof ListUserGrantedPermissionsResponses];
|
|
1044
|
+
export type ListDelegatedAccessAssignmentsData = {
|
|
1045
|
+
body?: never;
|
|
1046
|
+
path: {
|
|
1047
|
+
userId: string;
|
|
1048
|
+
};
|
|
1049
|
+
query?: never;
|
|
1050
|
+
url: '/v1/delegated-admins/{userId}/assignments';
|
|
1051
|
+
};
|
|
1052
|
+
export type ListDelegatedAccessAssignmentsErrors = {
|
|
1053
|
+
/**
|
|
1054
|
+
* Unauthorized
|
|
1055
|
+
*/
|
|
1056
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
1057
|
+
/**
|
|
1058
|
+
* Forbidden
|
|
1059
|
+
*/
|
|
1060
|
+
403: FlashStartErrorBody;
|
|
1061
|
+
/**
|
|
1062
|
+
* Invalid request
|
|
1063
|
+
*/
|
|
1064
|
+
422: FlashStartErrorBody;
|
|
1065
|
+
/**
|
|
1066
|
+
* Internal server error
|
|
1067
|
+
*/
|
|
1068
|
+
500: FlashStartErrorBody;
|
|
1069
|
+
};
|
|
1070
|
+
export type ListDelegatedAccessAssignmentsError = ListDelegatedAccessAssignmentsErrors[keyof ListDelegatedAccessAssignmentsErrors];
|
|
1071
|
+
export type ListDelegatedAccessAssignmentsResponses = {
|
|
1072
|
+
/**
|
|
1073
|
+
* Delegated access scope
|
|
1074
|
+
*/
|
|
1075
|
+
200: {
|
|
1076
|
+
allOrganizations: boolean;
|
|
1077
|
+
assignments: Array<{
|
|
1078
|
+
userId: string;
|
|
1079
|
+
organizationId: string;
|
|
1080
|
+
includeDescendants: boolean;
|
|
1081
|
+
createdAt: string;
|
|
1082
|
+
updatedAt: string;
|
|
1083
|
+
}>;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
export type ListDelegatedAccessAssignmentsResponse = ListDelegatedAccessAssignmentsResponses[keyof ListDelegatedAccessAssignmentsResponses];
|
|
1087
|
+
export type ReplaceDelegatedAccessAssignmentsData = {
|
|
1088
|
+
body: {
|
|
1089
|
+
allOrganizations: boolean;
|
|
1090
|
+
assignments: Array<{
|
|
1091
|
+
organizationId: string;
|
|
1092
|
+
includeDescendants: boolean;
|
|
1093
|
+
}>;
|
|
1094
|
+
};
|
|
1095
|
+
path: {
|
|
1096
|
+
userId: string;
|
|
1097
|
+
};
|
|
1098
|
+
query?: never;
|
|
1099
|
+
url: '/v1/delegated-admins/{userId}/assignments';
|
|
1100
|
+
};
|
|
1101
|
+
export type ReplaceDelegatedAccessAssignmentsErrors = {
|
|
1102
|
+
/**
|
|
1103
|
+
* Unauthorized
|
|
1104
|
+
*/
|
|
1105
|
+
401: MissingCredentialsErrorBody | FlashStartErrorBody;
|
|
1106
|
+
/**
|
|
1107
|
+
* Forbidden
|
|
1108
|
+
*/
|
|
1109
|
+
403: FlashStartErrorBody;
|
|
1110
|
+
/**
|
|
1111
|
+
* Invalid request
|
|
1112
|
+
*/
|
|
1113
|
+
422: FlashStartErrorBody;
|
|
1114
|
+
/**
|
|
1115
|
+
* Internal server error
|
|
1116
|
+
*/
|
|
1117
|
+
500: FlashStartErrorBody;
|
|
1118
|
+
};
|
|
1119
|
+
export type ReplaceDelegatedAccessAssignmentsError = ReplaceDelegatedAccessAssignmentsErrors[keyof ReplaceDelegatedAccessAssignmentsErrors];
|
|
1120
|
+
export type ReplaceDelegatedAccessAssignmentsResponses = {
|
|
1121
|
+
/**
|
|
1122
|
+
* Delegated access scope
|
|
1123
|
+
*/
|
|
1124
|
+
200: {
|
|
1125
|
+
allOrganizations: boolean;
|
|
1126
|
+
assignments: Array<{
|
|
1127
|
+
userId: string;
|
|
1128
|
+
organizationId: string;
|
|
1129
|
+
includeDescendants: boolean;
|
|
1130
|
+
createdAt: string;
|
|
1131
|
+
updatedAt: string;
|
|
1132
|
+
}>;
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
export type ReplaceDelegatedAccessAssignmentsResponse = ReplaceDelegatedAccessAssignmentsResponses[keyof ReplaceDelegatedAccessAssignmentsResponses];
|