@touhidrahman/restauth-sdk 1.0.2 → 1.1.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/index.cjs.js +1 -0
- package/index.esm.js +1 -1
- package/package.json +1 -1
- package/src/client/client/client.gen.d.ts +2 -0
- package/src/client/client/index.d.ts +10 -0
- package/src/client/client/types.gen.d.ts +120 -0
- package/src/client/client.gen.d.ts +12 -2
- package/src/client/index.d.ts +2 -10
- package/src/client/types.gen.d.ts +4139 -120
- package/src/index.d.ts +3 -2
- package/src/client.gen.d.ts +0 -12
- package/src/types.gen.d.ts +0 -4139
- /package/src/client/{utils.gen.d.ts → client/utils.gen.d.ts} +0 -0
- /package/src/{core → client/core}/auth.gen.d.ts +0 -0
- /package/src/{core → client/core}/bodySerializer.gen.d.ts +0 -0
- /package/src/{core → client/core}/params.gen.d.ts +0 -0
- /package/src/{core → client/core}/pathSerializer.gen.d.ts +0 -0
- /package/src/{core → client/core}/queryKeySerializer.gen.d.ts +0 -0
- /package/src/{core → client/core}/serverSentEvents.gen.d.ts +0 -0
- /package/src/{core → client/core}/types.gen.d.ts +0 -0
- /package/src/{core → client/core}/utils.gen.d.ts +0 -0
- /package/src/{sdk.gen.d.ts → client/sdk.gen.d.ts} +0 -0
- /package/src/{transformers.gen.d.ts → client/transformers.gen.d.ts} +0 -0
|
@@ -1,120 +1,4139 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
path?:
|
|
58
|
-
query?:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: 'https://auth-api.mattrika.com' | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type GetData = {
|
|
5
|
+
body?: never;
|
|
6
|
+
path?: never;
|
|
7
|
+
query?: never;
|
|
8
|
+
url: '/';
|
|
9
|
+
};
|
|
10
|
+
export type GetResponses = {
|
|
11
|
+
/**
|
|
12
|
+
* Server running
|
|
13
|
+
*/
|
|
14
|
+
200: {
|
|
15
|
+
data: {
|
|
16
|
+
port: number;
|
|
17
|
+
};
|
|
18
|
+
message: string;
|
|
19
|
+
success: boolean;
|
|
20
|
+
error?: unknown;
|
|
21
|
+
meta?: unknown;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type GetResponse = GetResponses[keyof GetResponses];
|
|
25
|
+
export type GetV1ListErrorCodesData = {
|
|
26
|
+
body?: never;
|
|
27
|
+
path?: never;
|
|
28
|
+
query?: never;
|
|
29
|
+
url: '/v1/list-error-codes';
|
|
30
|
+
};
|
|
31
|
+
export type GetV1ListErrorCodesResponses = {
|
|
32
|
+
/**
|
|
33
|
+
* Full dictionary of RestAuth error codes
|
|
34
|
+
*/
|
|
35
|
+
200: {
|
|
36
|
+
data: Array<{
|
|
37
|
+
code: string;
|
|
38
|
+
key: string;
|
|
39
|
+
status: number;
|
|
40
|
+
message: string;
|
|
41
|
+
description: string;
|
|
42
|
+
}>;
|
|
43
|
+
message: string;
|
|
44
|
+
success: boolean;
|
|
45
|
+
error?: unknown;
|
|
46
|
+
meta?: unknown;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type GetV1ListErrorCodesResponse = GetV1ListErrorCodesResponses[keyof GetV1ListErrorCodesResponses];
|
|
50
|
+
export type PostAdminNewTokenData = {
|
|
51
|
+
/**
|
|
52
|
+
* Refresh token
|
|
53
|
+
*/
|
|
54
|
+
body: {
|
|
55
|
+
refreshToken: string;
|
|
56
|
+
};
|
|
57
|
+
path?: never;
|
|
58
|
+
query?: never;
|
|
59
|
+
url: '/admin/new-token';
|
|
60
|
+
};
|
|
61
|
+
export type PostAdminNewTokenResponses = {
|
|
62
|
+
/**
|
|
63
|
+
* User logged in successfully
|
|
64
|
+
*/
|
|
65
|
+
200: {
|
|
66
|
+
data: {
|
|
67
|
+
accessToken: string;
|
|
68
|
+
refreshToken: string;
|
|
69
|
+
lastLogin?: Date;
|
|
70
|
+
};
|
|
71
|
+
message: string;
|
|
72
|
+
success: boolean;
|
|
73
|
+
error?: unknown;
|
|
74
|
+
meta?: unknown;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type PostAdminNewTokenResponse = PostAdminNewTokenResponses[keyof PostAdminNewTokenResponses];
|
|
78
|
+
export type PostAdminLoginData = {
|
|
79
|
+
/**
|
|
80
|
+
* Admin Login Data
|
|
81
|
+
*/
|
|
82
|
+
body: {
|
|
83
|
+
password: string;
|
|
84
|
+
};
|
|
85
|
+
path?: never;
|
|
86
|
+
query?: never;
|
|
87
|
+
url: '/admin/login';
|
|
88
|
+
};
|
|
89
|
+
export type PostAdminLoginResponses = {
|
|
90
|
+
/**
|
|
91
|
+
* Admin logged in successfully
|
|
92
|
+
*/
|
|
93
|
+
200: {
|
|
94
|
+
data: {
|
|
95
|
+
accessToken: string;
|
|
96
|
+
refreshToken: string;
|
|
97
|
+
lastLogin?: Date;
|
|
98
|
+
};
|
|
99
|
+
message: string;
|
|
100
|
+
success: boolean;
|
|
101
|
+
error?: unknown;
|
|
102
|
+
meta?: unknown;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export type PostAdminLoginResponse = PostAdminLoginResponses[keyof PostAdminLoginResponses];
|
|
106
|
+
export type GetOrganizationsByOrganizationIdBranchesMyData = {
|
|
107
|
+
body?: never;
|
|
108
|
+
path: {
|
|
109
|
+
organizationId: string;
|
|
110
|
+
};
|
|
111
|
+
query?: {
|
|
112
|
+
id?: string;
|
|
113
|
+
name?: string;
|
|
114
|
+
description?: string | null;
|
|
115
|
+
zoneId?: string | null;
|
|
116
|
+
organizationId?: string | null;
|
|
117
|
+
createdAt?: Date | null;
|
|
118
|
+
updatedAt?: Date | null;
|
|
119
|
+
search?: string;
|
|
120
|
+
ids?: Array<string>;
|
|
121
|
+
orderBy?: string;
|
|
122
|
+
sortOrder?: 'asc' | 'desc';
|
|
123
|
+
page?: number;
|
|
124
|
+
size?: number;
|
|
125
|
+
};
|
|
126
|
+
url: '/organizations/{organizationId}/branches/my';
|
|
127
|
+
};
|
|
128
|
+
export type GetOrganizationsByOrganizationIdBranchesMyResponses = {
|
|
129
|
+
/**
|
|
130
|
+
* Branch List
|
|
131
|
+
*/
|
|
132
|
+
200: {
|
|
133
|
+
data: Array<{
|
|
134
|
+
id: string;
|
|
135
|
+
name: string;
|
|
136
|
+
description: string | null;
|
|
137
|
+
zoneId: string | null;
|
|
138
|
+
organizationId: string | null;
|
|
139
|
+
createdAt: Date | null;
|
|
140
|
+
updatedAt: Date | null;
|
|
141
|
+
}>;
|
|
142
|
+
message: string;
|
|
143
|
+
success: boolean;
|
|
144
|
+
error?: unknown;
|
|
145
|
+
meta?: unknown;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
export type GetOrganizationsByOrganizationIdBranchesMyResponse = GetOrganizationsByOrganizationIdBranchesMyResponses[keyof GetOrganizationsByOrganizationIdBranchesMyResponses];
|
|
149
|
+
export type GetOrganizationsByOrganizationIdBranchesData = {
|
|
150
|
+
body?: never;
|
|
151
|
+
path: {
|
|
152
|
+
organizationId: string;
|
|
153
|
+
};
|
|
154
|
+
query?: {
|
|
155
|
+
id?: string;
|
|
156
|
+
name?: string;
|
|
157
|
+
description?: string | null;
|
|
158
|
+
zoneId?: string | null;
|
|
159
|
+
organizationId?: string | null;
|
|
160
|
+
createdAt?: Date | null;
|
|
161
|
+
updatedAt?: Date | null;
|
|
162
|
+
search?: string;
|
|
163
|
+
ids?: Array<string>;
|
|
164
|
+
orderBy?: string;
|
|
165
|
+
sortOrder?: 'asc' | 'desc';
|
|
166
|
+
page?: number;
|
|
167
|
+
size?: number;
|
|
168
|
+
};
|
|
169
|
+
url: '/organizations/{organizationId}/branches';
|
|
170
|
+
};
|
|
171
|
+
export type GetOrganizationsByOrganizationIdBranchesResponses = {
|
|
172
|
+
/**
|
|
173
|
+
* Branch List
|
|
174
|
+
*/
|
|
175
|
+
200: {
|
|
176
|
+
data: Array<{
|
|
177
|
+
id: string;
|
|
178
|
+
name: string;
|
|
179
|
+
description: string | null;
|
|
180
|
+
zoneId: string | null;
|
|
181
|
+
organizationId: string | null;
|
|
182
|
+
createdAt: Date | null;
|
|
183
|
+
updatedAt: Date | null;
|
|
184
|
+
}>;
|
|
185
|
+
message: string;
|
|
186
|
+
success: boolean;
|
|
187
|
+
error?: unknown;
|
|
188
|
+
meta?: unknown;
|
|
189
|
+
pagination: {
|
|
190
|
+
page: number;
|
|
191
|
+
size: number;
|
|
192
|
+
totalItems: number;
|
|
193
|
+
totalPages: number;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
export type GetOrganizationsByOrganizationIdBranchesResponse = GetOrganizationsByOrganizationIdBranchesResponses[keyof GetOrganizationsByOrganizationIdBranchesResponses];
|
|
198
|
+
export type PostOrganizationsByOrganizationIdBranchesData = {
|
|
199
|
+
/**
|
|
200
|
+
* Input
|
|
201
|
+
*/
|
|
202
|
+
body?: {
|
|
203
|
+
id?: string;
|
|
204
|
+
name: string;
|
|
205
|
+
description?: string | null;
|
|
206
|
+
zoneId?: string | null;
|
|
207
|
+
organizationId?: string | null;
|
|
208
|
+
createdAt?: Date | null;
|
|
209
|
+
updatedAt?: Date | null;
|
|
210
|
+
};
|
|
211
|
+
path: {
|
|
212
|
+
organizationId: string;
|
|
213
|
+
};
|
|
214
|
+
query?: never;
|
|
215
|
+
url: '/organizations/{organizationId}/branches';
|
|
216
|
+
};
|
|
217
|
+
export type PostOrganizationsByOrganizationIdBranchesResponses = {
|
|
218
|
+
/**
|
|
219
|
+
* Item
|
|
220
|
+
*/
|
|
221
|
+
200: {
|
|
222
|
+
data: {
|
|
223
|
+
id: string;
|
|
224
|
+
name: string;
|
|
225
|
+
description: string | null;
|
|
226
|
+
zoneId: string | null;
|
|
227
|
+
organizationId: string | null;
|
|
228
|
+
createdAt: Date | null;
|
|
229
|
+
updatedAt: Date | null;
|
|
230
|
+
};
|
|
231
|
+
message: string;
|
|
232
|
+
success: boolean;
|
|
233
|
+
error?: unknown;
|
|
234
|
+
meta?: unknown;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
export type PostOrganizationsByOrganizationIdBranchesResponse = PostOrganizationsByOrganizationIdBranchesResponses[keyof PostOrganizationsByOrganizationIdBranchesResponses];
|
|
238
|
+
export type DeleteOrganizationsByOrganizationIdBranchesByIdData = {
|
|
239
|
+
body?: never;
|
|
240
|
+
path: {
|
|
241
|
+
id: string;
|
|
242
|
+
organizationId: string;
|
|
243
|
+
};
|
|
244
|
+
query?: never;
|
|
245
|
+
url: '/organizations/{organizationId}/branches/{id}';
|
|
246
|
+
};
|
|
247
|
+
export type DeleteOrganizationsByOrganizationIdBranchesByIdResponses = {
|
|
248
|
+
/**
|
|
249
|
+
* Deleted Branch
|
|
250
|
+
*/
|
|
251
|
+
200: {
|
|
252
|
+
data: {
|
|
253
|
+
id: string;
|
|
254
|
+
name: string;
|
|
255
|
+
description: string | null;
|
|
256
|
+
zoneId: string | null;
|
|
257
|
+
organizationId: string | null;
|
|
258
|
+
createdAt: Date | null;
|
|
259
|
+
updatedAt: Date | null;
|
|
260
|
+
};
|
|
261
|
+
message: string;
|
|
262
|
+
success: boolean;
|
|
263
|
+
error?: unknown;
|
|
264
|
+
meta?: unknown;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
export type DeleteOrganizationsByOrganizationIdBranchesByIdResponse = DeleteOrganizationsByOrganizationIdBranchesByIdResponses[keyof DeleteOrganizationsByOrganizationIdBranchesByIdResponses];
|
|
268
|
+
export type GetOrganizationsByOrganizationIdBranchesByIdData = {
|
|
269
|
+
body?: never;
|
|
270
|
+
path: {
|
|
271
|
+
id: string;
|
|
272
|
+
organizationId: string;
|
|
273
|
+
};
|
|
274
|
+
query?: never;
|
|
275
|
+
url: '/organizations/{organizationId}/branches/{id}';
|
|
276
|
+
};
|
|
277
|
+
export type GetOrganizationsByOrganizationIdBranchesByIdResponses = {
|
|
278
|
+
/**
|
|
279
|
+
* Item
|
|
280
|
+
*/
|
|
281
|
+
200: {
|
|
282
|
+
data: {
|
|
283
|
+
id: string;
|
|
284
|
+
name: string;
|
|
285
|
+
description: string | null;
|
|
286
|
+
zoneId: string | null;
|
|
287
|
+
organizationId: string | null;
|
|
288
|
+
createdAt: Date | null;
|
|
289
|
+
updatedAt: Date | null;
|
|
290
|
+
};
|
|
291
|
+
message: string;
|
|
292
|
+
success: boolean;
|
|
293
|
+
error?: unknown;
|
|
294
|
+
meta?: unknown;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
export type GetOrganizationsByOrganizationIdBranchesByIdResponse = GetOrganizationsByOrganizationIdBranchesByIdResponses[keyof GetOrganizationsByOrganizationIdBranchesByIdResponses];
|
|
298
|
+
export type PutOrganizationsByOrganizationIdBranchesByIdData = {
|
|
299
|
+
/**
|
|
300
|
+
* Input
|
|
301
|
+
*/
|
|
302
|
+
body?: {
|
|
303
|
+
id?: string;
|
|
304
|
+
name?: string;
|
|
305
|
+
description?: string | null;
|
|
306
|
+
zoneId?: string | null;
|
|
307
|
+
organizationId?: string | null;
|
|
308
|
+
createdAt?: Date | null;
|
|
309
|
+
updatedAt?: Date | null;
|
|
310
|
+
};
|
|
311
|
+
path: {
|
|
312
|
+
id: string;
|
|
313
|
+
organizationId: string;
|
|
314
|
+
};
|
|
315
|
+
query?: never;
|
|
316
|
+
url: '/organizations/{organizationId}/branches/{id}';
|
|
317
|
+
};
|
|
318
|
+
export type PutOrganizationsByOrganizationIdBranchesByIdResponses = {
|
|
319
|
+
/**
|
|
320
|
+
* Item
|
|
321
|
+
*/
|
|
322
|
+
200: {
|
|
323
|
+
data: {
|
|
324
|
+
id: string;
|
|
325
|
+
name: string;
|
|
326
|
+
description: string | null;
|
|
327
|
+
zoneId: string | null;
|
|
328
|
+
organizationId: string | null;
|
|
329
|
+
createdAt: Date | null;
|
|
330
|
+
updatedAt: Date | null;
|
|
331
|
+
};
|
|
332
|
+
message: string;
|
|
333
|
+
success: boolean;
|
|
334
|
+
error?: unknown;
|
|
335
|
+
meta?: unknown;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
export type PutOrganizationsByOrganizationIdBranchesByIdResponse = PutOrganizationsByOrganizationIdBranchesByIdResponses[keyof PutOrganizationsByOrganizationIdBranchesByIdResponses];
|
|
339
|
+
export type PutOrganizationsByOrganizationIdBranchesByIdChangeIdData = {
|
|
340
|
+
/**
|
|
341
|
+
* New Branch ID payload
|
|
342
|
+
*/
|
|
343
|
+
body?: {
|
|
344
|
+
newId: string;
|
|
345
|
+
};
|
|
346
|
+
path: {
|
|
347
|
+
id: string;
|
|
348
|
+
organizationId: string;
|
|
349
|
+
};
|
|
350
|
+
query?: never;
|
|
351
|
+
url: '/organizations/{organizationId}/branches/{id}/change-id';
|
|
352
|
+
};
|
|
353
|
+
export type PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponses = {
|
|
354
|
+
/**
|
|
355
|
+
* Updated Branch ID
|
|
356
|
+
*/
|
|
357
|
+
200: {
|
|
358
|
+
data: {
|
|
359
|
+
id: string;
|
|
360
|
+
};
|
|
361
|
+
message: string;
|
|
362
|
+
success: boolean;
|
|
363
|
+
error?: unknown;
|
|
364
|
+
meta?: unknown;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
export type PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponse = PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponses[keyof PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponses];
|
|
368
|
+
export type GetGroupsMyData = {
|
|
369
|
+
body?: never;
|
|
370
|
+
path?: never;
|
|
371
|
+
query?: {
|
|
372
|
+
id?: string;
|
|
373
|
+
name?: string;
|
|
374
|
+
description?: string | null;
|
|
375
|
+
projectId?: string;
|
|
376
|
+
createdAt?: Date | null;
|
|
377
|
+
updatedAt?: Date | null;
|
|
378
|
+
search?: string;
|
|
379
|
+
ids?: Array<string>;
|
|
380
|
+
orderBy?: string;
|
|
381
|
+
sortOrder?: 'asc' | 'desc';
|
|
382
|
+
page?: number;
|
|
383
|
+
size?: number;
|
|
384
|
+
};
|
|
385
|
+
url: '/groups/my';
|
|
386
|
+
};
|
|
387
|
+
export type GetGroupsMyResponses = {
|
|
388
|
+
/**
|
|
389
|
+
* Group List
|
|
390
|
+
*/
|
|
391
|
+
200: {
|
|
392
|
+
data: Array<{
|
|
393
|
+
id: string;
|
|
394
|
+
name: string;
|
|
395
|
+
description: string | null;
|
|
396
|
+
projectId: string;
|
|
397
|
+
createdAt: Date | null;
|
|
398
|
+
updatedAt: Date | null;
|
|
399
|
+
}>;
|
|
400
|
+
message: string;
|
|
401
|
+
success: boolean;
|
|
402
|
+
error?: unknown;
|
|
403
|
+
meta?: unknown;
|
|
404
|
+
pagination: {
|
|
405
|
+
page: number;
|
|
406
|
+
size: number;
|
|
407
|
+
totalItems: number;
|
|
408
|
+
totalPages: number;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
export type GetGroupsMyResponse = GetGroupsMyResponses[keyof GetGroupsMyResponses];
|
|
413
|
+
export type GetGroupsByIdPermissionsData = {
|
|
414
|
+
body?: never;
|
|
415
|
+
path: {
|
|
416
|
+
id: string;
|
|
417
|
+
};
|
|
418
|
+
query?: never;
|
|
419
|
+
url: '/groups/{id}/permissions';
|
|
420
|
+
};
|
|
421
|
+
export type GetGroupsByIdPermissionsResponses = {
|
|
422
|
+
/**
|
|
423
|
+
* Group Permissions List
|
|
424
|
+
*/
|
|
425
|
+
200: {
|
|
426
|
+
data: Array<{
|
|
427
|
+
id: string;
|
|
428
|
+
name: string;
|
|
429
|
+
description: string | null;
|
|
430
|
+
projectId: string;
|
|
431
|
+
}>;
|
|
432
|
+
message: string;
|
|
433
|
+
success: boolean;
|
|
434
|
+
error?: unknown;
|
|
435
|
+
meta?: unknown;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
export type GetGroupsByIdPermissionsResponse = GetGroupsByIdPermissionsResponses[keyof GetGroupsByIdPermissionsResponses];
|
|
439
|
+
export type PostGroupsByIdPermissionsData = {
|
|
440
|
+
/**
|
|
441
|
+
* Input
|
|
442
|
+
*/
|
|
443
|
+
body?: {
|
|
444
|
+
permissions: Array<string>;
|
|
445
|
+
};
|
|
446
|
+
path: {
|
|
447
|
+
id: string;
|
|
448
|
+
};
|
|
449
|
+
query?: never;
|
|
450
|
+
url: '/groups/{id}/permissions';
|
|
451
|
+
};
|
|
452
|
+
export type PostGroupsByIdPermissionsResponses = {
|
|
453
|
+
/**
|
|
454
|
+
* Group Permissions List
|
|
455
|
+
*/
|
|
456
|
+
200: {
|
|
457
|
+
data: Array<{
|
|
458
|
+
id: string;
|
|
459
|
+
name: string;
|
|
460
|
+
description: string | null;
|
|
461
|
+
projectId: string;
|
|
462
|
+
}>;
|
|
463
|
+
message: string;
|
|
464
|
+
success: boolean;
|
|
465
|
+
error?: unknown;
|
|
466
|
+
meta?: unknown;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
export type PostGroupsByIdPermissionsResponse = PostGroupsByIdPermissionsResponses[keyof PostGroupsByIdPermissionsResponses];
|
|
470
|
+
export type GetGroupsByIdUsersData = {
|
|
471
|
+
body?: never;
|
|
472
|
+
path: {
|
|
473
|
+
id: string;
|
|
474
|
+
};
|
|
475
|
+
query?: {
|
|
476
|
+
search?: string;
|
|
477
|
+
ids?: Array<string>;
|
|
478
|
+
orderBy?: string;
|
|
479
|
+
sortOrder?: 'asc' | 'desc';
|
|
480
|
+
page?: number;
|
|
481
|
+
size?: number;
|
|
482
|
+
};
|
|
483
|
+
url: '/groups/{id}/users';
|
|
484
|
+
};
|
|
485
|
+
export type GetGroupsByIdUsersResponses = {
|
|
486
|
+
/**
|
|
487
|
+
* Group Users List
|
|
488
|
+
*/
|
|
489
|
+
200: {
|
|
490
|
+
data: Array<{
|
|
491
|
+
id: string;
|
|
492
|
+
firstName: string;
|
|
493
|
+
lastName: string;
|
|
494
|
+
defaultMembershipId: string | null;
|
|
495
|
+
lastLogin: Date | null;
|
|
496
|
+
bannedAt: Date | null;
|
|
497
|
+
verifiedAt: Date | null;
|
|
498
|
+
projectId: string;
|
|
499
|
+
createdAt: Date | null;
|
|
500
|
+
updatedAt: Date | null;
|
|
501
|
+
}>;
|
|
502
|
+
message: string;
|
|
503
|
+
success: boolean;
|
|
504
|
+
error?: unknown;
|
|
505
|
+
meta?: unknown;
|
|
506
|
+
pagination: {
|
|
507
|
+
page: number;
|
|
508
|
+
size: number;
|
|
509
|
+
totalItems: number;
|
|
510
|
+
totalPages: number;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
export type GetGroupsByIdUsersResponse = GetGroupsByIdUsersResponses[keyof GetGroupsByIdUsersResponses];
|
|
515
|
+
export type DeleteGroupsByGroupIdUsersByUserIdData = {
|
|
516
|
+
body?: never;
|
|
517
|
+
path: {
|
|
518
|
+
groupId: string;
|
|
519
|
+
userId: string;
|
|
520
|
+
};
|
|
521
|
+
query?: never;
|
|
522
|
+
url: '/groups/{groupId}/users/{userId}';
|
|
523
|
+
};
|
|
524
|
+
export type DeleteGroupsByGroupIdUsersByUserIdResponses = {
|
|
525
|
+
/**
|
|
526
|
+
* Group User Deleted Successfully
|
|
527
|
+
*/
|
|
528
|
+
200: {
|
|
529
|
+
data: {
|
|
530
|
+
[key: string]: unknown;
|
|
531
|
+
};
|
|
532
|
+
message: string;
|
|
533
|
+
success: boolean;
|
|
534
|
+
error?: unknown;
|
|
535
|
+
meta?: unknown;
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
export type DeleteGroupsByGroupIdUsersByUserIdResponse = DeleteGroupsByGroupIdUsersByUserIdResponses[keyof DeleteGroupsByGroupIdUsersByUserIdResponses];
|
|
539
|
+
export type GetGroupsData = {
|
|
540
|
+
body?: never;
|
|
541
|
+
path?: never;
|
|
542
|
+
query?: {
|
|
543
|
+
id?: string;
|
|
544
|
+
name?: string;
|
|
545
|
+
description?: string | null;
|
|
546
|
+
projectId?: string;
|
|
547
|
+
createdAt?: Date | null;
|
|
548
|
+
updatedAt?: Date | null;
|
|
549
|
+
search?: string;
|
|
550
|
+
ids?: Array<string>;
|
|
551
|
+
orderBy?: string;
|
|
552
|
+
sortOrder?: 'asc' | 'desc';
|
|
553
|
+
page?: number;
|
|
554
|
+
size?: number;
|
|
555
|
+
};
|
|
556
|
+
url: '/groups';
|
|
557
|
+
};
|
|
558
|
+
export type GetGroupsResponses = {
|
|
559
|
+
/**
|
|
560
|
+
* Group List
|
|
561
|
+
*/
|
|
562
|
+
200: {
|
|
563
|
+
data: Array<{
|
|
564
|
+
id: string;
|
|
565
|
+
name: string;
|
|
566
|
+
description: string | null;
|
|
567
|
+
projectId: string;
|
|
568
|
+
createdAt: Date | null;
|
|
569
|
+
updatedAt: Date | null;
|
|
570
|
+
}>;
|
|
571
|
+
message: string;
|
|
572
|
+
success: boolean;
|
|
573
|
+
error?: unknown;
|
|
574
|
+
meta?: unknown;
|
|
575
|
+
pagination: {
|
|
576
|
+
page: number;
|
|
577
|
+
size: number;
|
|
578
|
+
totalItems: number;
|
|
579
|
+
totalPages: number;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
export type GetGroupsResponse = GetGroupsResponses[keyof GetGroupsResponses];
|
|
584
|
+
export type PostGroupsData = {
|
|
585
|
+
/**
|
|
586
|
+
* Input
|
|
587
|
+
*/
|
|
588
|
+
body?: {
|
|
589
|
+
id?: string;
|
|
590
|
+
name: string;
|
|
591
|
+
description?: string | null;
|
|
592
|
+
createdAt?: Date | null;
|
|
593
|
+
updatedAt?: Date | null;
|
|
594
|
+
};
|
|
595
|
+
path?: never;
|
|
596
|
+
query?: never;
|
|
597
|
+
url: '/groups';
|
|
598
|
+
};
|
|
599
|
+
export type PostGroupsResponses = {
|
|
600
|
+
/**
|
|
601
|
+
* Item
|
|
602
|
+
*/
|
|
603
|
+
200: {
|
|
604
|
+
data: {
|
|
605
|
+
id: string;
|
|
606
|
+
name: string;
|
|
607
|
+
description: string | null;
|
|
608
|
+
projectId: string;
|
|
609
|
+
createdAt: Date | null;
|
|
610
|
+
updatedAt: Date | null;
|
|
611
|
+
};
|
|
612
|
+
message: string;
|
|
613
|
+
success: boolean;
|
|
614
|
+
error?: unknown;
|
|
615
|
+
meta?: unknown;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
export type PostGroupsResponse = PostGroupsResponses[keyof PostGroupsResponses];
|
|
619
|
+
export type DeleteGroupsByIdData = {
|
|
620
|
+
body?: never;
|
|
621
|
+
path: {
|
|
622
|
+
id: string;
|
|
623
|
+
};
|
|
624
|
+
query?: never;
|
|
625
|
+
url: '/groups/{id}';
|
|
626
|
+
};
|
|
627
|
+
export type DeleteGroupsByIdResponses = {
|
|
628
|
+
/**
|
|
629
|
+
* Deleted Group
|
|
630
|
+
*/
|
|
631
|
+
200: {
|
|
632
|
+
data: {
|
|
633
|
+
id: string;
|
|
634
|
+
name: string;
|
|
635
|
+
description: string | null;
|
|
636
|
+
projectId: string;
|
|
637
|
+
createdAt: Date | null;
|
|
638
|
+
updatedAt: Date | null;
|
|
639
|
+
};
|
|
640
|
+
message: string;
|
|
641
|
+
success: boolean;
|
|
642
|
+
error?: unknown;
|
|
643
|
+
meta?: unknown;
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
export type DeleteGroupsByIdResponse = DeleteGroupsByIdResponses[keyof DeleteGroupsByIdResponses];
|
|
647
|
+
export type GetGroupsByIdData = {
|
|
648
|
+
body?: never;
|
|
649
|
+
path: {
|
|
650
|
+
id: string;
|
|
651
|
+
};
|
|
652
|
+
query?: never;
|
|
653
|
+
url: '/groups/{id}';
|
|
654
|
+
};
|
|
655
|
+
export type GetGroupsByIdResponses = {
|
|
656
|
+
/**
|
|
657
|
+
* Item
|
|
658
|
+
*/
|
|
659
|
+
200: {
|
|
660
|
+
data: {
|
|
661
|
+
id: string;
|
|
662
|
+
name: string;
|
|
663
|
+
description: string | null;
|
|
664
|
+
projectId: string;
|
|
665
|
+
createdAt: Date | null;
|
|
666
|
+
updatedAt: Date | null;
|
|
667
|
+
};
|
|
668
|
+
message: string;
|
|
669
|
+
success: boolean;
|
|
670
|
+
error?: unknown;
|
|
671
|
+
meta?: unknown;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
export type GetGroupsByIdResponse = GetGroupsByIdResponses[keyof GetGroupsByIdResponses];
|
|
675
|
+
export type PutGroupsByIdData = {
|
|
676
|
+
/**
|
|
677
|
+
* Input
|
|
678
|
+
*/
|
|
679
|
+
body?: {
|
|
680
|
+
id?: string;
|
|
681
|
+
name?: string;
|
|
682
|
+
description?: string | null;
|
|
683
|
+
projectId?: string;
|
|
684
|
+
createdAt?: Date | null;
|
|
685
|
+
updatedAt?: Date | null;
|
|
686
|
+
};
|
|
687
|
+
path: {
|
|
688
|
+
id: string;
|
|
689
|
+
};
|
|
690
|
+
query?: never;
|
|
691
|
+
url: '/groups/{id}';
|
|
692
|
+
};
|
|
693
|
+
export type PutGroupsByIdResponses = {
|
|
694
|
+
/**
|
|
695
|
+
* Item
|
|
696
|
+
*/
|
|
697
|
+
200: {
|
|
698
|
+
data: {
|
|
699
|
+
id: string;
|
|
700
|
+
name: string;
|
|
701
|
+
description: string | null;
|
|
702
|
+
projectId: string;
|
|
703
|
+
createdAt: Date | null;
|
|
704
|
+
updatedAt: Date | null;
|
|
705
|
+
};
|
|
706
|
+
message: string;
|
|
707
|
+
success: boolean;
|
|
708
|
+
error?: unknown;
|
|
709
|
+
meta?: unknown;
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
export type PutGroupsByIdResponse = PutGroupsByIdResponses[keyof PutGroupsByIdResponses];
|
|
713
|
+
export type PutGroupsByIdChangeIdData = {
|
|
714
|
+
/**
|
|
715
|
+
* New ID payload
|
|
716
|
+
*/
|
|
717
|
+
body?: {
|
|
718
|
+
newId: string;
|
|
719
|
+
};
|
|
720
|
+
path: {
|
|
721
|
+
id: string;
|
|
722
|
+
};
|
|
723
|
+
query?: never;
|
|
724
|
+
url: '/groups/{id}/change-id';
|
|
725
|
+
};
|
|
726
|
+
export type PutGroupsByIdChangeIdResponses = {
|
|
727
|
+
/**
|
|
728
|
+
* Updated Group ID
|
|
729
|
+
*/
|
|
730
|
+
200: {
|
|
731
|
+
data: {
|
|
732
|
+
id: string;
|
|
733
|
+
};
|
|
734
|
+
message: string;
|
|
735
|
+
success: boolean;
|
|
736
|
+
error?: unknown;
|
|
737
|
+
meta?: unknown;
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
export type PutGroupsByIdChangeIdResponse = PutGroupsByIdChangeIdResponses[keyof PutGroupsByIdChangeIdResponses];
|
|
741
|
+
export type GetInvitesData = {
|
|
742
|
+
body?: never;
|
|
743
|
+
path?: never;
|
|
744
|
+
query?: {
|
|
745
|
+
id?: string;
|
|
746
|
+
projectId?: string;
|
|
747
|
+
groupId?: string;
|
|
748
|
+
organizationId?: string;
|
|
749
|
+
roleId?: string | null;
|
|
750
|
+
identifierType?: string;
|
|
751
|
+
identifierValue?: string;
|
|
752
|
+
creatorId?: string | null;
|
|
753
|
+
token?: string | null;
|
|
754
|
+
expiresAt?: Date | null;
|
|
755
|
+
acceptedAt?: Date | null;
|
|
756
|
+
linkedUserId?: string | null;
|
|
757
|
+
createdAt?: Date | null;
|
|
758
|
+
updatedAt?: Date | null;
|
|
759
|
+
search?: string;
|
|
760
|
+
ids?: Array<string>;
|
|
761
|
+
orderBy?: string;
|
|
762
|
+
sortOrder?: 'asc' | 'desc';
|
|
763
|
+
page?: number;
|
|
764
|
+
size?: number;
|
|
765
|
+
};
|
|
766
|
+
url: '/invites';
|
|
767
|
+
};
|
|
768
|
+
export type GetInvitesResponses = {
|
|
769
|
+
/**
|
|
770
|
+
* Invite List
|
|
771
|
+
*/
|
|
772
|
+
200: {
|
|
773
|
+
data: Array<{
|
|
774
|
+
id: string;
|
|
775
|
+
projectId: string;
|
|
776
|
+
groupId: string;
|
|
777
|
+
organizationId: string;
|
|
778
|
+
roleId: string | null;
|
|
779
|
+
identifierType: string;
|
|
780
|
+
identifierValue: string;
|
|
781
|
+
creatorId: string | null;
|
|
782
|
+
token: string | null;
|
|
783
|
+
expiresAt: Date | null;
|
|
784
|
+
acceptedAt: Date | null;
|
|
785
|
+
linkedUserId: string | null;
|
|
786
|
+
createdAt: Date | null;
|
|
787
|
+
updatedAt: Date | null;
|
|
788
|
+
}>;
|
|
789
|
+
message: string;
|
|
790
|
+
success: boolean;
|
|
791
|
+
error?: unknown;
|
|
792
|
+
meta?: unknown;
|
|
793
|
+
pagination: {
|
|
794
|
+
page: number;
|
|
795
|
+
size: number;
|
|
796
|
+
totalItems: number;
|
|
797
|
+
totalPages: number;
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
export type GetInvitesResponse = GetInvitesResponses[keyof GetInvitesResponses];
|
|
802
|
+
export type PostInvitesData = {
|
|
803
|
+
/**
|
|
804
|
+
* Input
|
|
805
|
+
*/
|
|
806
|
+
body?: {
|
|
807
|
+
id?: string;
|
|
808
|
+
groupId: string;
|
|
809
|
+
organizationId: string;
|
|
810
|
+
roleId?: string | null;
|
|
811
|
+
identifierType: string;
|
|
812
|
+
identifierValue: string;
|
|
813
|
+
creatorId?: string | null;
|
|
814
|
+
token?: string | null;
|
|
815
|
+
expiresAt?: Date | null;
|
|
816
|
+
acceptedAt?: Date | null;
|
|
817
|
+
linkedUserId?: string | null;
|
|
818
|
+
createdAt?: Date | null;
|
|
819
|
+
updatedAt?: Date | null;
|
|
820
|
+
};
|
|
821
|
+
path?: never;
|
|
822
|
+
query?: never;
|
|
823
|
+
url: '/invites';
|
|
824
|
+
};
|
|
825
|
+
export type PostInvitesResponses = {
|
|
826
|
+
/**
|
|
827
|
+
* Item
|
|
828
|
+
*/
|
|
829
|
+
200: {
|
|
830
|
+
data: {
|
|
831
|
+
id: string;
|
|
832
|
+
projectId: string;
|
|
833
|
+
groupId: string;
|
|
834
|
+
organizationId: string;
|
|
835
|
+
roleId: string | null;
|
|
836
|
+
identifierType: string;
|
|
837
|
+
identifierValue: string;
|
|
838
|
+
creatorId: string | null;
|
|
839
|
+
token: string | null;
|
|
840
|
+
expiresAt: Date | null;
|
|
841
|
+
acceptedAt: Date | null;
|
|
842
|
+
linkedUserId: string | null;
|
|
843
|
+
createdAt: Date | null;
|
|
844
|
+
updatedAt: Date | null;
|
|
845
|
+
};
|
|
846
|
+
message: string;
|
|
847
|
+
success: boolean;
|
|
848
|
+
error?: unknown;
|
|
849
|
+
meta?: unknown;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
export type PostInvitesResponse = PostInvitesResponses[keyof PostInvitesResponses];
|
|
853
|
+
export type DeleteInvitesByIdData = {
|
|
854
|
+
body?: never;
|
|
855
|
+
path: {
|
|
856
|
+
id: string;
|
|
857
|
+
};
|
|
858
|
+
query?: never;
|
|
859
|
+
url: '/invites/{id}';
|
|
860
|
+
};
|
|
861
|
+
export type DeleteInvitesByIdResponses = {
|
|
862
|
+
/**
|
|
863
|
+
* Deleted Invite
|
|
864
|
+
*/
|
|
865
|
+
200: {
|
|
866
|
+
data: {
|
|
867
|
+
id: string;
|
|
868
|
+
projectId: string;
|
|
869
|
+
groupId: string;
|
|
870
|
+
organizationId: string;
|
|
871
|
+
roleId: string | null;
|
|
872
|
+
identifierType: string;
|
|
873
|
+
identifierValue: string;
|
|
874
|
+
creatorId: string | null;
|
|
875
|
+
token: string | null;
|
|
876
|
+
expiresAt: Date | null;
|
|
877
|
+
acceptedAt: Date | null;
|
|
878
|
+
linkedUserId: string | null;
|
|
879
|
+
createdAt: Date | null;
|
|
880
|
+
updatedAt: Date | null;
|
|
881
|
+
};
|
|
882
|
+
message: string;
|
|
883
|
+
success: boolean;
|
|
884
|
+
error?: unknown;
|
|
885
|
+
meta?: unknown;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
export type DeleteInvitesByIdResponse = DeleteInvitesByIdResponses[keyof DeleteInvitesByIdResponses];
|
|
889
|
+
export type GetInvitesByIdData = {
|
|
890
|
+
body?: never;
|
|
891
|
+
path: {
|
|
892
|
+
id: string;
|
|
893
|
+
};
|
|
894
|
+
query?: never;
|
|
895
|
+
url: '/invites/{id}';
|
|
896
|
+
};
|
|
897
|
+
export type GetInvitesByIdResponses = {
|
|
898
|
+
/**
|
|
899
|
+
* Item
|
|
900
|
+
*/
|
|
901
|
+
200: {
|
|
902
|
+
data: {
|
|
903
|
+
id: string;
|
|
904
|
+
projectId: string;
|
|
905
|
+
groupId: string;
|
|
906
|
+
organizationId: string;
|
|
907
|
+
roleId: string | null;
|
|
908
|
+
identifierType: string;
|
|
909
|
+
identifierValue: string;
|
|
910
|
+
creatorId: string | null;
|
|
911
|
+
token: string | null;
|
|
912
|
+
expiresAt: Date | null;
|
|
913
|
+
acceptedAt: Date | null;
|
|
914
|
+
linkedUserId: string | null;
|
|
915
|
+
createdAt: Date | null;
|
|
916
|
+
updatedAt: Date | null;
|
|
917
|
+
};
|
|
918
|
+
message: string;
|
|
919
|
+
success: boolean;
|
|
920
|
+
error?: unknown;
|
|
921
|
+
meta?: unknown;
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
export type GetInvitesByIdResponse = GetInvitesByIdResponses[keyof GetInvitesByIdResponses];
|
|
925
|
+
export type PutInvitesByIdData = {
|
|
926
|
+
/**
|
|
927
|
+
* Input
|
|
928
|
+
*/
|
|
929
|
+
body?: {
|
|
930
|
+
id?: string;
|
|
931
|
+
groupId?: string;
|
|
932
|
+
organizationId?: string;
|
|
933
|
+
roleId?: string | null;
|
|
934
|
+
identifierType?: string;
|
|
935
|
+
identifierValue?: string;
|
|
936
|
+
creatorId?: string | null;
|
|
937
|
+
expiresAt?: Date | null;
|
|
938
|
+
acceptedAt?: Date | null;
|
|
939
|
+
linkedUserId?: string | null;
|
|
940
|
+
createdAt?: Date | null;
|
|
941
|
+
updatedAt?: Date | null;
|
|
942
|
+
};
|
|
943
|
+
path: {
|
|
944
|
+
id: string;
|
|
945
|
+
};
|
|
946
|
+
query?: never;
|
|
947
|
+
url: '/invites/{id}';
|
|
948
|
+
};
|
|
949
|
+
export type PutInvitesByIdResponses = {
|
|
950
|
+
/**
|
|
951
|
+
* Item
|
|
952
|
+
*/
|
|
953
|
+
200: {
|
|
954
|
+
data: {
|
|
955
|
+
id: string;
|
|
956
|
+
projectId: string;
|
|
957
|
+
groupId: string;
|
|
958
|
+
organizationId: string;
|
|
959
|
+
roleId: string | null;
|
|
960
|
+
identifierType: string;
|
|
961
|
+
identifierValue: string;
|
|
962
|
+
creatorId: string | null;
|
|
963
|
+
token: string | null;
|
|
964
|
+
expiresAt: Date | null;
|
|
965
|
+
acceptedAt: Date | null;
|
|
966
|
+
linkedUserId: string | null;
|
|
967
|
+
createdAt: Date | null;
|
|
968
|
+
updatedAt: Date | null;
|
|
969
|
+
};
|
|
970
|
+
message: string;
|
|
971
|
+
success: boolean;
|
|
972
|
+
error?: unknown;
|
|
973
|
+
meta?: unknown;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
export type PutInvitesByIdResponse = PutInvitesByIdResponses[keyof PutInvitesByIdResponses];
|
|
977
|
+
export type PutInvitesByIdChangeIdData = {
|
|
978
|
+
/**
|
|
979
|
+
* New Invite ID payload
|
|
980
|
+
*/
|
|
981
|
+
body?: {
|
|
982
|
+
newId: string;
|
|
983
|
+
};
|
|
984
|
+
path: {
|
|
985
|
+
id: string;
|
|
986
|
+
};
|
|
987
|
+
query?: never;
|
|
988
|
+
url: '/invites/{id}/change-id';
|
|
989
|
+
};
|
|
990
|
+
export type PutInvitesByIdChangeIdResponses = {
|
|
991
|
+
/**
|
|
992
|
+
* Updated Invite ID
|
|
993
|
+
*/
|
|
994
|
+
200: {
|
|
995
|
+
data: {
|
|
996
|
+
id: string;
|
|
997
|
+
};
|
|
998
|
+
message: string;
|
|
999
|
+
success: boolean;
|
|
1000
|
+
error?: unknown;
|
|
1001
|
+
meta?: unknown;
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
export type PutInvitesByIdChangeIdResponse = PutInvitesByIdChangeIdResponses[keyof PutInvitesByIdChangeIdResponses];
|
|
1005
|
+
export type DeleteMembershipsByIdZoneData = {
|
|
1006
|
+
/**
|
|
1007
|
+
* Input
|
|
1008
|
+
*/
|
|
1009
|
+
body: {
|
|
1010
|
+
zoneId: string;
|
|
1011
|
+
};
|
|
1012
|
+
path: {
|
|
1013
|
+
id: string;
|
|
1014
|
+
};
|
|
1015
|
+
query?: never;
|
|
1016
|
+
url: '/memberships/{id}/zone';
|
|
1017
|
+
};
|
|
1018
|
+
export type DeleteMembershipsByIdZoneResponses = {
|
|
1019
|
+
/**
|
|
1020
|
+
* Removed from zone
|
|
1021
|
+
*/
|
|
1022
|
+
200: {
|
|
1023
|
+
data: {
|
|
1024
|
+
[key: string]: unknown;
|
|
1025
|
+
};
|
|
1026
|
+
message: string;
|
|
1027
|
+
success: boolean;
|
|
1028
|
+
error?: unknown;
|
|
1029
|
+
meta?: unknown;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
export type DeleteMembershipsByIdZoneResponse = DeleteMembershipsByIdZoneResponses[keyof DeleteMembershipsByIdZoneResponses];
|
|
1033
|
+
export type PostMembershipsByIdZoneData = {
|
|
1034
|
+
/**
|
|
1035
|
+
* Input
|
|
1036
|
+
*/
|
|
1037
|
+
body: {
|
|
1038
|
+
zoneId: string;
|
|
1039
|
+
isDefault: boolean;
|
|
1040
|
+
};
|
|
1041
|
+
path: {
|
|
1042
|
+
id: string;
|
|
1043
|
+
};
|
|
1044
|
+
query?: never;
|
|
1045
|
+
url: '/memberships/{id}/zone';
|
|
1046
|
+
};
|
|
1047
|
+
export type PostMembershipsByIdZoneResponses = {
|
|
1048
|
+
/**
|
|
1049
|
+
* Added to zone
|
|
1050
|
+
*/
|
|
1051
|
+
200: {
|
|
1052
|
+
data: {
|
|
1053
|
+
membershipId: string;
|
|
1054
|
+
zoneId: string;
|
|
1055
|
+
createdAt: Date | null;
|
|
1056
|
+
updatedAt: Date | null;
|
|
1057
|
+
};
|
|
1058
|
+
message: string;
|
|
1059
|
+
success: boolean;
|
|
1060
|
+
error?: unknown;
|
|
1061
|
+
meta?: unknown;
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
export type PostMembershipsByIdZoneResponse = PostMembershipsByIdZoneResponses[keyof PostMembershipsByIdZoneResponses];
|
|
1065
|
+
export type GetMembershipsZoneByZoneIdData = {
|
|
1066
|
+
body?: never;
|
|
1067
|
+
path: {
|
|
1068
|
+
zoneId: string;
|
|
1069
|
+
};
|
|
1070
|
+
query?: never;
|
|
1071
|
+
url: '/memberships/zone/{zoneId}';
|
|
1072
|
+
};
|
|
1073
|
+
export type GetMembershipsZoneByZoneIdResponses = {
|
|
1074
|
+
/**
|
|
1075
|
+
* Added to zone
|
|
1076
|
+
*/
|
|
1077
|
+
200: {
|
|
1078
|
+
data: Array<{
|
|
1079
|
+
membershipId: string;
|
|
1080
|
+
zoneId: string;
|
|
1081
|
+
createdAt: Date | null;
|
|
1082
|
+
updatedAt: Date | null;
|
|
1083
|
+
}>;
|
|
1084
|
+
message: string;
|
|
1085
|
+
success: boolean;
|
|
1086
|
+
error?: unknown;
|
|
1087
|
+
meta?: unknown;
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
export type GetMembershipsZoneByZoneIdResponse = GetMembershipsZoneByZoneIdResponses[keyof GetMembershipsZoneByZoneIdResponses];
|
|
1091
|
+
export type DeleteMembershipsByIdBranchData = {
|
|
1092
|
+
/**
|
|
1093
|
+
* Input
|
|
1094
|
+
*/
|
|
1095
|
+
body: {
|
|
1096
|
+
branchId: string;
|
|
1097
|
+
};
|
|
1098
|
+
path: {
|
|
1099
|
+
id: string;
|
|
1100
|
+
};
|
|
1101
|
+
query?: never;
|
|
1102
|
+
url: '/memberships/{id}/branch';
|
|
1103
|
+
};
|
|
1104
|
+
export type DeleteMembershipsByIdBranchResponses = {
|
|
1105
|
+
/**
|
|
1106
|
+
* Removed from branch
|
|
1107
|
+
*/
|
|
1108
|
+
200: {
|
|
1109
|
+
data: {
|
|
1110
|
+
[key: string]: unknown;
|
|
1111
|
+
};
|
|
1112
|
+
message: string;
|
|
1113
|
+
success: boolean;
|
|
1114
|
+
error?: unknown;
|
|
1115
|
+
meta?: unknown;
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
export type DeleteMembershipsByIdBranchResponse = DeleteMembershipsByIdBranchResponses[keyof DeleteMembershipsByIdBranchResponses];
|
|
1119
|
+
export type PostMembershipsByIdBranchData = {
|
|
1120
|
+
/**
|
|
1121
|
+
* Input
|
|
1122
|
+
*/
|
|
1123
|
+
body: {
|
|
1124
|
+
branchId: string;
|
|
1125
|
+
isDefault: boolean;
|
|
1126
|
+
};
|
|
1127
|
+
path: {
|
|
1128
|
+
id: string;
|
|
1129
|
+
};
|
|
1130
|
+
query?: never;
|
|
1131
|
+
url: '/memberships/{id}/branch';
|
|
1132
|
+
};
|
|
1133
|
+
export type PostMembershipsByIdBranchResponses = {
|
|
1134
|
+
/**
|
|
1135
|
+
* Added to branch
|
|
1136
|
+
*/
|
|
1137
|
+
200: {
|
|
1138
|
+
data: {
|
|
1139
|
+
membershipId: string;
|
|
1140
|
+
branchId: string | null;
|
|
1141
|
+
isDefault?: boolean | null;
|
|
1142
|
+
createdAt: Date | null;
|
|
1143
|
+
updatedAt: Date | null;
|
|
1144
|
+
};
|
|
1145
|
+
message: string;
|
|
1146
|
+
success: boolean;
|
|
1147
|
+
error?: unknown;
|
|
1148
|
+
meta?: unknown;
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
export type PostMembershipsByIdBranchResponse = PostMembershipsByIdBranchResponses[keyof PostMembershipsByIdBranchResponses];
|
|
1152
|
+
export type GetMembershipsBranchByIdData = {
|
|
1153
|
+
/**
|
|
1154
|
+
* Input
|
|
1155
|
+
*/
|
|
1156
|
+
body: {
|
|
1157
|
+
branchId: string;
|
|
1158
|
+
};
|
|
1159
|
+
path: {
|
|
1160
|
+
id: string;
|
|
1161
|
+
};
|
|
1162
|
+
query?: never;
|
|
1163
|
+
url: '/memberships/branch/{id}';
|
|
1164
|
+
};
|
|
1165
|
+
export type GetMembershipsBranchByIdResponses = {
|
|
1166
|
+
/**
|
|
1167
|
+
* Removed from branch
|
|
1168
|
+
*/
|
|
1169
|
+
200: {
|
|
1170
|
+
data: Array<{
|
|
1171
|
+
membershipId: string;
|
|
1172
|
+
branchId: string | null;
|
|
1173
|
+
isDefault?: boolean | null;
|
|
1174
|
+
createdAt: Date | null;
|
|
1175
|
+
updatedAt: Date | null;
|
|
1176
|
+
}>;
|
|
1177
|
+
message: string;
|
|
1178
|
+
success: boolean;
|
|
1179
|
+
error?: unknown;
|
|
1180
|
+
meta?: unknown;
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
export type GetMembershipsBranchByIdResponse = GetMembershipsBranchByIdResponses[keyof GetMembershipsBranchByIdResponses];
|
|
1184
|
+
export type GetMembershipsMyData = {
|
|
1185
|
+
body?: never;
|
|
1186
|
+
path?: never;
|
|
1187
|
+
query?: {
|
|
1188
|
+
id?: string;
|
|
1189
|
+
userId?: string;
|
|
1190
|
+
roleId?: string;
|
|
1191
|
+
organizationId?: string;
|
|
1192
|
+
groupId?: string;
|
|
1193
|
+
projectId?: string;
|
|
1194
|
+
createdAt?: Date | null;
|
|
1195
|
+
updatedAt?: Date | null;
|
|
1196
|
+
search?: string;
|
|
1197
|
+
ids?: Array<string>;
|
|
1198
|
+
orderBy?: string;
|
|
1199
|
+
sortOrder?: 'asc' | 'desc';
|
|
1200
|
+
page?: number;
|
|
1201
|
+
size?: number;
|
|
1202
|
+
};
|
|
1203
|
+
url: '/memberships/my';
|
|
1204
|
+
};
|
|
1205
|
+
export type GetMembershipsMyResponses = {
|
|
1206
|
+
/**
|
|
1207
|
+
* Membership List
|
|
1208
|
+
*/
|
|
1209
|
+
200: {
|
|
1210
|
+
data: Array<{
|
|
1211
|
+
id: string;
|
|
1212
|
+
userId: string;
|
|
1213
|
+
roleId: string;
|
|
1214
|
+
organizationId: string;
|
|
1215
|
+
groupId: string;
|
|
1216
|
+
projectId: string;
|
|
1217
|
+
createdAt: Date | null;
|
|
1218
|
+
updatedAt: Date | null;
|
|
1219
|
+
}>;
|
|
1220
|
+
message: string;
|
|
1221
|
+
success: boolean;
|
|
1222
|
+
error?: unknown;
|
|
1223
|
+
meta?: unknown;
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
export type GetMembershipsMyResponse = GetMembershipsMyResponses[keyof GetMembershipsMyResponses];
|
|
1227
|
+
export type GetMembershipsByIdPermissionsData = {
|
|
1228
|
+
body?: never;
|
|
1229
|
+
path: {
|
|
1230
|
+
id: string;
|
|
1231
|
+
};
|
|
1232
|
+
query?: never;
|
|
1233
|
+
url: '/memberships/{id}/permissions';
|
|
1234
|
+
};
|
|
1235
|
+
export type GetMembershipsByIdPermissionsResponses = {
|
|
1236
|
+
/**
|
|
1237
|
+
* Membership Permissions
|
|
1238
|
+
*/
|
|
1239
|
+
200: {
|
|
1240
|
+
data: Array<{
|
|
1241
|
+
id: string;
|
|
1242
|
+
name: string;
|
|
1243
|
+
description: string | null;
|
|
1244
|
+
}>;
|
|
1245
|
+
message: string;
|
|
1246
|
+
success: boolean;
|
|
1247
|
+
error?: unknown;
|
|
1248
|
+
meta?: unknown;
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
export type GetMembershipsByIdPermissionsResponse = GetMembershipsByIdPermissionsResponses[keyof GetMembershipsByIdPermissionsResponses];
|
|
1252
|
+
export type DeleteMembershipsData = {
|
|
1253
|
+
/**
|
|
1254
|
+
* Membership ids
|
|
1255
|
+
*/
|
|
1256
|
+
body?: {
|
|
1257
|
+
ids: Array<string>;
|
|
1258
|
+
};
|
|
1259
|
+
path?: never;
|
|
1260
|
+
query?: never;
|
|
1261
|
+
url: '/memberships';
|
|
1262
|
+
};
|
|
1263
|
+
export type DeleteMembershipsResponses = {
|
|
1264
|
+
/**
|
|
1265
|
+
* Deleted Memberships
|
|
1266
|
+
*/
|
|
1267
|
+
200: {
|
|
1268
|
+
data: {
|
|
1269
|
+
[key: string]: unknown;
|
|
1270
|
+
};
|
|
1271
|
+
message: string;
|
|
1272
|
+
success: boolean;
|
|
1273
|
+
error?: unknown;
|
|
1274
|
+
meta?: unknown;
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
export type DeleteMembershipsResponse = DeleteMembershipsResponses[keyof DeleteMembershipsResponses];
|
|
1278
|
+
export type GetMembershipsData = {
|
|
1279
|
+
body?: never;
|
|
1280
|
+
path?: never;
|
|
1281
|
+
query?: {
|
|
1282
|
+
id?: string;
|
|
1283
|
+
userId?: string;
|
|
1284
|
+
roleId?: string;
|
|
1285
|
+
organizationId?: string;
|
|
1286
|
+
groupId?: string;
|
|
1287
|
+
projectId?: string;
|
|
1288
|
+
createdAt?: Date | null;
|
|
1289
|
+
updatedAt?: Date | null;
|
|
1290
|
+
search?: string;
|
|
1291
|
+
ids?: Array<string>;
|
|
1292
|
+
orderBy?: string;
|
|
1293
|
+
sortOrder?: 'asc' | 'desc';
|
|
1294
|
+
page?: number;
|
|
1295
|
+
size?: number;
|
|
1296
|
+
};
|
|
1297
|
+
url: '/memberships';
|
|
1298
|
+
};
|
|
1299
|
+
export type GetMembershipsResponses = {
|
|
1300
|
+
/**
|
|
1301
|
+
* Membership List
|
|
1302
|
+
*/
|
|
1303
|
+
200: {
|
|
1304
|
+
data: Array<{
|
|
1305
|
+
id: string;
|
|
1306
|
+
userId: string;
|
|
1307
|
+
roleId: string;
|
|
1308
|
+
organizationId: string;
|
|
1309
|
+
groupId: string;
|
|
1310
|
+
projectId: string;
|
|
1311
|
+
createdAt: Date | null;
|
|
1312
|
+
updatedAt: Date | null;
|
|
1313
|
+
project: {
|
|
1314
|
+
id: string;
|
|
1315
|
+
name: string;
|
|
1316
|
+
icon: string | null;
|
|
1317
|
+
color: string | null;
|
|
1318
|
+
createdAt: Date | null;
|
|
1319
|
+
updatedAt: Date | null;
|
|
1320
|
+
} | null;
|
|
1321
|
+
user: {
|
|
1322
|
+
id: string;
|
|
1323
|
+
firstName: string;
|
|
1324
|
+
lastName: string;
|
|
1325
|
+
defaultMembershipId: string | null;
|
|
1326
|
+
lastLogin: Date | null;
|
|
1327
|
+
bannedAt: Date | null;
|
|
1328
|
+
verifiedAt: Date | null;
|
|
1329
|
+
projectId: string;
|
|
1330
|
+
createdAt: Date | null;
|
|
1331
|
+
updatedAt: Date | null;
|
|
1332
|
+
} | null;
|
|
1333
|
+
role: {
|
|
1334
|
+
id: string;
|
|
1335
|
+
name: string;
|
|
1336
|
+
description: string | null;
|
|
1337
|
+
organizationId: string | null;
|
|
1338
|
+
groupId: string;
|
|
1339
|
+
projectId: string;
|
|
1340
|
+
createdAt: Date | null;
|
|
1341
|
+
updatedAt: Date | null;
|
|
1342
|
+
} | null;
|
|
1343
|
+
group: {
|
|
1344
|
+
id: string;
|
|
1345
|
+
name: string;
|
|
1346
|
+
description: string | null;
|
|
1347
|
+
projectId: string;
|
|
1348
|
+
createdAt: Date | null;
|
|
1349
|
+
updatedAt: Date | null;
|
|
1350
|
+
} | null;
|
|
1351
|
+
organization: {
|
|
1352
|
+
id: string;
|
|
1353
|
+
name: string;
|
|
1354
|
+
groupId: string;
|
|
1355
|
+
projectId: string;
|
|
1356
|
+
creatorId: string | null;
|
|
1357
|
+
createdAt: Date | null;
|
|
1358
|
+
updatedAt: Date | null;
|
|
1359
|
+
} | null;
|
|
1360
|
+
}>;
|
|
1361
|
+
message: string;
|
|
1362
|
+
success: boolean;
|
|
1363
|
+
error?: unknown;
|
|
1364
|
+
meta?: unknown;
|
|
1365
|
+
pagination: {
|
|
1366
|
+
page: number;
|
|
1367
|
+
size: number;
|
|
1368
|
+
totalItems: number;
|
|
1369
|
+
totalPages: number;
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
export type GetMembershipsResponse = GetMembershipsResponses[keyof GetMembershipsResponses];
|
|
1374
|
+
export type PostMembershipsData = {
|
|
1375
|
+
/**
|
|
1376
|
+
* Input
|
|
1377
|
+
*/
|
|
1378
|
+
body?: {
|
|
1379
|
+
id?: string;
|
|
1380
|
+
userId: string;
|
|
1381
|
+
roleId: string;
|
|
1382
|
+
organizationId: string;
|
|
1383
|
+
createdAt?: Date | null;
|
|
1384
|
+
updatedAt?: Date | null;
|
|
1385
|
+
};
|
|
1386
|
+
path?: never;
|
|
1387
|
+
query?: never;
|
|
1388
|
+
url: '/memberships';
|
|
1389
|
+
};
|
|
1390
|
+
export type PostMembershipsResponses = {
|
|
1391
|
+
/**
|
|
1392
|
+
* Item
|
|
1393
|
+
*/
|
|
1394
|
+
200: {
|
|
1395
|
+
data: {
|
|
1396
|
+
id: string;
|
|
1397
|
+
userId: string;
|
|
1398
|
+
roleId: string;
|
|
1399
|
+
organizationId: string;
|
|
1400
|
+
groupId: string;
|
|
1401
|
+
projectId: string;
|
|
1402
|
+
createdAt: Date | null;
|
|
1403
|
+
updatedAt: Date | null;
|
|
1404
|
+
project: {
|
|
1405
|
+
id: string;
|
|
1406
|
+
name: string;
|
|
1407
|
+
icon: string | null;
|
|
1408
|
+
color: string | null;
|
|
1409
|
+
createdAt: Date | null;
|
|
1410
|
+
updatedAt: Date | null;
|
|
1411
|
+
} | null;
|
|
1412
|
+
user: {
|
|
1413
|
+
id: string;
|
|
1414
|
+
firstName: string;
|
|
1415
|
+
lastName: string;
|
|
1416
|
+
defaultMembershipId: string | null;
|
|
1417
|
+
lastLogin: Date | null;
|
|
1418
|
+
bannedAt: Date | null;
|
|
1419
|
+
verifiedAt: Date | null;
|
|
1420
|
+
projectId: string;
|
|
1421
|
+
createdAt: Date | null;
|
|
1422
|
+
updatedAt: Date | null;
|
|
1423
|
+
} | null;
|
|
1424
|
+
role: {
|
|
1425
|
+
id: string;
|
|
1426
|
+
name: string;
|
|
1427
|
+
description: string | null;
|
|
1428
|
+
organizationId: string | null;
|
|
1429
|
+
groupId: string;
|
|
1430
|
+
projectId: string;
|
|
1431
|
+
createdAt: Date | null;
|
|
1432
|
+
updatedAt: Date | null;
|
|
1433
|
+
} | null;
|
|
1434
|
+
group: {
|
|
1435
|
+
id: string;
|
|
1436
|
+
name: string;
|
|
1437
|
+
description: string | null;
|
|
1438
|
+
projectId: string;
|
|
1439
|
+
createdAt: Date | null;
|
|
1440
|
+
updatedAt: Date | null;
|
|
1441
|
+
} | null;
|
|
1442
|
+
organization: {
|
|
1443
|
+
id: string;
|
|
1444
|
+
name: string;
|
|
1445
|
+
groupId: string;
|
|
1446
|
+
projectId: string;
|
|
1447
|
+
creatorId: string | null;
|
|
1448
|
+
createdAt: Date | null;
|
|
1449
|
+
updatedAt: Date | null;
|
|
1450
|
+
} | null;
|
|
1451
|
+
};
|
|
1452
|
+
message: string;
|
|
1453
|
+
success: boolean;
|
|
1454
|
+
error?: unknown;
|
|
1455
|
+
meta?: unknown;
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
export type PostMembershipsResponse = PostMembershipsResponses[keyof PostMembershipsResponses];
|
|
1459
|
+
export type DeleteMembershipsByIdData = {
|
|
1460
|
+
body?: never;
|
|
1461
|
+
path: {
|
|
1462
|
+
id: string;
|
|
1463
|
+
};
|
|
1464
|
+
query?: never;
|
|
1465
|
+
url: '/memberships/{id}';
|
|
1466
|
+
};
|
|
1467
|
+
export type DeleteMembershipsByIdResponses = {
|
|
1468
|
+
/**
|
|
1469
|
+
* Deleted Membership
|
|
1470
|
+
*/
|
|
1471
|
+
200: {
|
|
1472
|
+
data: {
|
|
1473
|
+
id: string;
|
|
1474
|
+
userId: string;
|
|
1475
|
+
roleId: string;
|
|
1476
|
+
organizationId: string;
|
|
1477
|
+
groupId: string;
|
|
1478
|
+
projectId: string;
|
|
1479
|
+
createdAt: Date | null;
|
|
1480
|
+
updatedAt: Date | null;
|
|
1481
|
+
};
|
|
1482
|
+
message: string;
|
|
1483
|
+
success: boolean;
|
|
1484
|
+
error?: unknown;
|
|
1485
|
+
meta?: unknown;
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
export type DeleteMembershipsByIdResponse = DeleteMembershipsByIdResponses[keyof DeleteMembershipsByIdResponses];
|
|
1489
|
+
export type GetMembershipsByIdData = {
|
|
1490
|
+
body?: never;
|
|
1491
|
+
path: {
|
|
1492
|
+
id: string;
|
|
1493
|
+
};
|
|
1494
|
+
query?: never;
|
|
1495
|
+
url: '/memberships/{id}';
|
|
1496
|
+
};
|
|
1497
|
+
export type GetMembershipsByIdResponses = {
|
|
1498
|
+
/**
|
|
1499
|
+
* Item
|
|
1500
|
+
*/
|
|
1501
|
+
200: {
|
|
1502
|
+
data: {
|
|
1503
|
+
id: string;
|
|
1504
|
+
userId: string;
|
|
1505
|
+
roleId: string;
|
|
1506
|
+
organizationId: string;
|
|
1507
|
+
groupId: string;
|
|
1508
|
+
projectId: string;
|
|
1509
|
+
createdAt: Date | null;
|
|
1510
|
+
updatedAt: Date | null;
|
|
1511
|
+
};
|
|
1512
|
+
message: string;
|
|
1513
|
+
success: boolean;
|
|
1514
|
+
error?: unknown;
|
|
1515
|
+
meta?: unknown;
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
export type GetMembershipsByIdResponse = GetMembershipsByIdResponses[keyof GetMembershipsByIdResponses];
|
|
1519
|
+
export type PutMembershipsByIdChangeIdData = {
|
|
1520
|
+
/**
|
|
1521
|
+
* New Membership ID payload
|
|
1522
|
+
*/
|
|
1523
|
+
body?: {
|
|
1524
|
+
newId: string;
|
|
1525
|
+
};
|
|
1526
|
+
path: {
|
|
1527
|
+
id: string;
|
|
1528
|
+
};
|
|
1529
|
+
query?: never;
|
|
1530
|
+
url: '/memberships/{id}/change-id';
|
|
1531
|
+
};
|
|
1532
|
+
export type PutMembershipsByIdChangeIdResponses = {
|
|
1533
|
+
/**
|
|
1534
|
+
* Updated Membership ID
|
|
1535
|
+
*/
|
|
1536
|
+
200: {
|
|
1537
|
+
data: {
|
|
1538
|
+
id: string;
|
|
1539
|
+
};
|
|
1540
|
+
message: string;
|
|
1541
|
+
success: boolean;
|
|
1542
|
+
error?: unknown;
|
|
1543
|
+
meta?: unknown;
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
export type PutMembershipsByIdChangeIdResponse = PutMembershipsByIdChangeIdResponses[keyof PutMembershipsByIdChangeIdResponses];
|
|
1547
|
+
export type GetOrganizationsByUserByUserIdData = {
|
|
1548
|
+
body?: never;
|
|
1549
|
+
path: {
|
|
1550
|
+
userId: string;
|
|
1551
|
+
};
|
|
1552
|
+
query?: never;
|
|
1553
|
+
url: '/organizations/by-user/{userId}';
|
|
1554
|
+
};
|
|
1555
|
+
export type GetOrganizationsByUserByUserIdResponses = {
|
|
1556
|
+
/**
|
|
1557
|
+
* Organization List
|
|
1558
|
+
*/
|
|
1559
|
+
200: {
|
|
1560
|
+
data: Array<{
|
|
1561
|
+
id: string;
|
|
1562
|
+
name: string;
|
|
1563
|
+
groupId: string;
|
|
1564
|
+
projectId: string;
|
|
1565
|
+
creatorId: string | null;
|
|
1566
|
+
createdAt: Date | null;
|
|
1567
|
+
updatedAt: Date | null;
|
|
1568
|
+
}>;
|
|
1569
|
+
message: string;
|
|
1570
|
+
success: boolean;
|
|
1571
|
+
error?: unknown;
|
|
1572
|
+
meta?: unknown;
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1575
|
+
export type GetOrganizationsByUserByUserIdResponse = GetOrganizationsByUserByUserIdResponses[keyof GetOrganizationsByUserByUserIdResponses];
|
|
1576
|
+
export type GetOrganizationsByOwnerByUserIdData = {
|
|
1577
|
+
body?: never;
|
|
1578
|
+
path: {
|
|
1579
|
+
userId: string;
|
|
1580
|
+
};
|
|
1581
|
+
query?: never;
|
|
1582
|
+
url: '/organizations/by-owner/{userId}';
|
|
1583
|
+
};
|
|
1584
|
+
export type GetOrganizationsByOwnerByUserIdResponses = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Organization List
|
|
1587
|
+
*/
|
|
1588
|
+
200: {
|
|
1589
|
+
data: Array<{
|
|
1590
|
+
id: string;
|
|
1591
|
+
name: string;
|
|
1592
|
+
groupId: string;
|
|
1593
|
+
projectId: string;
|
|
1594
|
+
creatorId: string | null;
|
|
1595
|
+
createdAt: Date | null;
|
|
1596
|
+
updatedAt: Date | null;
|
|
1597
|
+
}>;
|
|
1598
|
+
message: string;
|
|
1599
|
+
success: boolean;
|
|
1600
|
+
error?: unknown;
|
|
1601
|
+
meta?: unknown;
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
export type GetOrganizationsByOwnerByUserIdResponse = GetOrganizationsByOwnerByUserIdResponses[keyof GetOrganizationsByOwnerByUserIdResponses];
|
|
1605
|
+
export type GetOrganizationsByOrganizationIdMembersData = {
|
|
1606
|
+
body?: never;
|
|
1607
|
+
path: {
|
|
1608
|
+
organizationId: string;
|
|
1609
|
+
};
|
|
1610
|
+
query?: {
|
|
1611
|
+
orderBy?: string;
|
|
1612
|
+
sortOrder?: 'asc' | 'desc';
|
|
1613
|
+
page?: number;
|
|
1614
|
+
size?: number;
|
|
1615
|
+
search?: string;
|
|
1616
|
+
ids?: Array<string>;
|
|
1617
|
+
};
|
|
1618
|
+
url: '/organizations/{organizationId}/members';
|
|
1619
|
+
};
|
|
1620
|
+
export type GetOrganizationsByOrganizationIdMembersResponses = {
|
|
1621
|
+
/**
|
|
1622
|
+
* List
|
|
1623
|
+
*/
|
|
1624
|
+
200: {
|
|
1625
|
+
data: Array<{
|
|
1626
|
+
id: string;
|
|
1627
|
+
firstName: string;
|
|
1628
|
+
lastName: string;
|
|
1629
|
+
defaultMembershipId: string | null;
|
|
1630
|
+
lastLogin: Date | null;
|
|
1631
|
+
bannedAt: Date | null;
|
|
1632
|
+
verifiedAt: Date | null;
|
|
1633
|
+
projectId: string;
|
|
1634
|
+
createdAt: Date | null;
|
|
1635
|
+
updatedAt: Date | null;
|
|
1636
|
+
}>;
|
|
1637
|
+
message: string;
|
|
1638
|
+
success: boolean;
|
|
1639
|
+
error?: unknown;
|
|
1640
|
+
meta?: unknown;
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
export type GetOrganizationsByOrganizationIdMembersResponse = GetOrganizationsByOrganizationIdMembersResponses[keyof GetOrganizationsByOrganizationIdMembersResponses];
|
|
1644
|
+
export type GetOrganizationsByOrganizationIdCreatorData = {
|
|
1645
|
+
body?: never;
|
|
1646
|
+
path: {
|
|
1647
|
+
organizationId: string;
|
|
1648
|
+
};
|
|
1649
|
+
query?: never;
|
|
1650
|
+
url: '/organizations/{organizationId}/creator';
|
|
1651
|
+
};
|
|
1652
|
+
export type GetOrganizationsByOrganizationIdCreatorResponses = {
|
|
1653
|
+
/**
|
|
1654
|
+
* Creator
|
|
1655
|
+
*/
|
|
1656
|
+
200: {
|
|
1657
|
+
data: {
|
|
1658
|
+
id: string;
|
|
1659
|
+
firstName: string;
|
|
1660
|
+
lastName: string;
|
|
1661
|
+
defaultMembershipId: string | null;
|
|
1662
|
+
lastLogin: Date | null;
|
|
1663
|
+
bannedAt: Date | null;
|
|
1664
|
+
verifiedAt: Date | null;
|
|
1665
|
+
projectId: string;
|
|
1666
|
+
createdAt: Date | null;
|
|
1667
|
+
updatedAt: Date | null;
|
|
1668
|
+
};
|
|
1669
|
+
message: string;
|
|
1670
|
+
success: boolean;
|
|
1671
|
+
error?: unknown;
|
|
1672
|
+
meta?: unknown;
|
|
1673
|
+
};
|
|
1674
|
+
};
|
|
1675
|
+
export type GetOrganizationsByOrganizationIdCreatorResponse = GetOrganizationsByOrganizationIdCreatorResponses[keyof GetOrganizationsByOrganizationIdCreatorResponses];
|
|
1676
|
+
export type GetOrganizationsData = {
|
|
1677
|
+
body?: never;
|
|
1678
|
+
path?: never;
|
|
1679
|
+
query?: {
|
|
1680
|
+
id?: string;
|
|
1681
|
+
name?: string;
|
|
1682
|
+
groupId?: string;
|
|
1683
|
+
projectId?: string;
|
|
1684
|
+
creatorId?: string | null;
|
|
1685
|
+
createdAt?: Date | null;
|
|
1686
|
+
updatedAt?: Date | null;
|
|
1687
|
+
search?: string;
|
|
1688
|
+
ids?: Array<string>;
|
|
1689
|
+
orderBy?: string;
|
|
1690
|
+
sortOrder?: 'asc' | 'desc';
|
|
1691
|
+
page?: number;
|
|
1692
|
+
size?: number;
|
|
1693
|
+
};
|
|
1694
|
+
url: '/organizations';
|
|
1695
|
+
};
|
|
1696
|
+
export type GetOrganizationsResponses = {
|
|
1697
|
+
/**
|
|
1698
|
+
* Organization List
|
|
1699
|
+
*/
|
|
1700
|
+
200: {
|
|
1701
|
+
data: Array<{
|
|
1702
|
+
id: string;
|
|
1703
|
+
name: string;
|
|
1704
|
+
groupId: string;
|
|
1705
|
+
projectId: string;
|
|
1706
|
+
creatorId: string | null;
|
|
1707
|
+
createdAt: Date | null;
|
|
1708
|
+
updatedAt: Date | null;
|
|
1709
|
+
}>;
|
|
1710
|
+
message: string;
|
|
1711
|
+
success: boolean;
|
|
1712
|
+
error?: unknown;
|
|
1713
|
+
meta?: unknown;
|
|
1714
|
+
pagination: {
|
|
1715
|
+
page: number;
|
|
1716
|
+
size: number;
|
|
1717
|
+
totalItems: number;
|
|
1718
|
+
totalPages: number;
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
};
|
|
1722
|
+
export type GetOrganizationsResponse = GetOrganizationsResponses[keyof GetOrganizationsResponses];
|
|
1723
|
+
export type PostOrganizationsData = {
|
|
1724
|
+
/**
|
|
1725
|
+
* Input
|
|
1726
|
+
*/
|
|
1727
|
+
body?: {
|
|
1728
|
+
id?: string;
|
|
1729
|
+
name: string;
|
|
1730
|
+
groupId: string;
|
|
1731
|
+
creatorId?: string | null;
|
|
1732
|
+
createdAt?: Date | null;
|
|
1733
|
+
updatedAt?: Date | null;
|
|
1734
|
+
};
|
|
1735
|
+
path?: never;
|
|
1736
|
+
query?: never;
|
|
1737
|
+
url: '/organizations';
|
|
1738
|
+
};
|
|
1739
|
+
export type PostOrganizationsResponses = {
|
|
1740
|
+
/**
|
|
1741
|
+
* Item
|
|
1742
|
+
*/
|
|
1743
|
+
200: {
|
|
1744
|
+
data: {
|
|
1745
|
+
id: string;
|
|
1746
|
+
name: string;
|
|
1747
|
+
groupId: string;
|
|
1748
|
+
projectId: string;
|
|
1749
|
+
creatorId: string | null;
|
|
1750
|
+
createdAt: Date | null;
|
|
1751
|
+
updatedAt: Date | null;
|
|
1752
|
+
};
|
|
1753
|
+
message: string;
|
|
1754
|
+
success: boolean;
|
|
1755
|
+
error?: unknown;
|
|
1756
|
+
meta?: unknown;
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1759
|
+
export type PostOrganizationsResponse = PostOrganizationsResponses[keyof PostOrganizationsResponses];
|
|
1760
|
+
export type DeleteOrganizationsByIdData = {
|
|
1761
|
+
body?: never;
|
|
1762
|
+
path: {
|
|
1763
|
+
id: string;
|
|
1764
|
+
};
|
|
1765
|
+
query?: never;
|
|
1766
|
+
url: '/organizations/{id}';
|
|
1767
|
+
};
|
|
1768
|
+
export type DeleteOrganizationsByIdResponses = {
|
|
1769
|
+
/**
|
|
1770
|
+
* Deleted Organization
|
|
1771
|
+
*/
|
|
1772
|
+
200: {
|
|
1773
|
+
data: {
|
|
1774
|
+
id: string;
|
|
1775
|
+
name: string;
|
|
1776
|
+
groupId: string;
|
|
1777
|
+
projectId: string;
|
|
1778
|
+
creatorId: string | null;
|
|
1779
|
+
createdAt: Date | null;
|
|
1780
|
+
updatedAt: Date | null;
|
|
1781
|
+
};
|
|
1782
|
+
message: string;
|
|
1783
|
+
success: boolean;
|
|
1784
|
+
error?: unknown;
|
|
1785
|
+
meta?: unknown;
|
|
1786
|
+
};
|
|
1787
|
+
};
|
|
1788
|
+
export type DeleteOrganizationsByIdResponse = DeleteOrganizationsByIdResponses[keyof DeleteOrganizationsByIdResponses];
|
|
1789
|
+
export type GetOrganizationsByIdData = {
|
|
1790
|
+
body?: never;
|
|
1791
|
+
path: {
|
|
1792
|
+
id: string;
|
|
1793
|
+
};
|
|
1794
|
+
query?: never;
|
|
1795
|
+
url: '/organizations/{id}';
|
|
1796
|
+
};
|
|
1797
|
+
export type GetOrganizationsByIdResponses = {
|
|
1798
|
+
/**
|
|
1799
|
+
* Item
|
|
1800
|
+
*/
|
|
1801
|
+
200: {
|
|
1802
|
+
data: {
|
|
1803
|
+
id: string;
|
|
1804
|
+
name: string;
|
|
1805
|
+
groupId: string;
|
|
1806
|
+
projectId: string;
|
|
1807
|
+
creatorId: string | null;
|
|
1808
|
+
createdAt: Date | null;
|
|
1809
|
+
updatedAt: Date | null;
|
|
1810
|
+
};
|
|
1811
|
+
message: string;
|
|
1812
|
+
success: boolean;
|
|
1813
|
+
error?: unknown;
|
|
1814
|
+
meta?: unknown;
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
export type GetOrganizationsByIdResponse = GetOrganizationsByIdResponses[keyof GetOrganizationsByIdResponses];
|
|
1818
|
+
export type PutOrganizationsByIdData = {
|
|
1819
|
+
/**
|
|
1820
|
+
* Input
|
|
1821
|
+
*/
|
|
1822
|
+
body?: {
|
|
1823
|
+
id?: string;
|
|
1824
|
+
name?: string;
|
|
1825
|
+
groupId?: string;
|
|
1826
|
+
projectId?: string;
|
|
1827
|
+
creatorId?: string | null;
|
|
1828
|
+
createdAt?: Date | null;
|
|
1829
|
+
updatedAt?: Date | null;
|
|
1830
|
+
};
|
|
1831
|
+
path: {
|
|
1832
|
+
id: string;
|
|
1833
|
+
};
|
|
1834
|
+
query?: never;
|
|
1835
|
+
url: '/organizations/{id}';
|
|
1836
|
+
};
|
|
1837
|
+
export type PutOrganizationsByIdResponses = {
|
|
1838
|
+
/**
|
|
1839
|
+
* Item
|
|
1840
|
+
*/
|
|
1841
|
+
200: {
|
|
1842
|
+
data: {
|
|
1843
|
+
id: string;
|
|
1844
|
+
name: string;
|
|
1845
|
+
groupId: string;
|
|
1846
|
+
projectId: string;
|
|
1847
|
+
creatorId: string | null;
|
|
1848
|
+
createdAt: Date | null;
|
|
1849
|
+
updatedAt: Date | null;
|
|
1850
|
+
};
|
|
1851
|
+
message: string;
|
|
1852
|
+
success: boolean;
|
|
1853
|
+
error?: unknown;
|
|
1854
|
+
meta?: unknown;
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
export type PutOrganizationsByIdResponse = PutOrganizationsByIdResponses[keyof PutOrganizationsByIdResponses];
|
|
1858
|
+
export type PutOrganizationsByIdChangeIdData = {
|
|
1859
|
+
/**
|
|
1860
|
+
* New Organization ID payload
|
|
1861
|
+
*/
|
|
1862
|
+
body?: {
|
|
1863
|
+
newId: string;
|
|
1864
|
+
};
|
|
1865
|
+
path: {
|
|
1866
|
+
id: string;
|
|
1867
|
+
};
|
|
1868
|
+
query?: never;
|
|
1869
|
+
url: '/organizations/{id}/change-id';
|
|
1870
|
+
};
|
|
1871
|
+
export type PutOrganizationsByIdChangeIdResponses = {
|
|
1872
|
+
/**
|
|
1873
|
+
* Updated Organization ID
|
|
1874
|
+
*/
|
|
1875
|
+
200: {
|
|
1876
|
+
data: {
|
|
1877
|
+
id: string;
|
|
1878
|
+
};
|
|
1879
|
+
message: string;
|
|
1880
|
+
success: boolean;
|
|
1881
|
+
error?: unknown;
|
|
1882
|
+
meta?: unknown;
|
|
1883
|
+
};
|
|
1884
|
+
};
|
|
1885
|
+
export type PutOrganizationsByIdChangeIdResponse = PutOrganizationsByIdChangeIdResponses[keyof PutOrganizationsByIdChangeIdResponses];
|
|
1886
|
+
export type GetPermissionsData = {
|
|
1887
|
+
body?: never;
|
|
1888
|
+
path?: never;
|
|
1889
|
+
query?: {
|
|
1890
|
+
id?: string;
|
|
1891
|
+
name?: string;
|
|
1892
|
+
description?: string | null;
|
|
1893
|
+
projectId?: string;
|
|
1894
|
+
search?: string;
|
|
1895
|
+
ids?: Array<string>;
|
|
1896
|
+
orderBy?: string;
|
|
1897
|
+
sortOrder?: 'asc' | 'desc';
|
|
1898
|
+
page?: number;
|
|
1899
|
+
size?: number;
|
|
1900
|
+
};
|
|
1901
|
+
url: '/permissions';
|
|
1902
|
+
};
|
|
1903
|
+
export type GetPermissionsResponses = {
|
|
1904
|
+
/**
|
|
1905
|
+
* Permission List
|
|
1906
|
+
*/
|
|
1907
|
+
200: {
|
|
1908
|
+
data: Array<{
|
|
1909
|
+
id: string;
|
|
1910
|
+
name: string;
|
|
1911
|
+
description: string | null;
|
|
1912
|
+
projectId: string;
|
|
1913
|
+
}>;
|
|
1914
|
+
message: string;
|
|
1915
|
+
success: boolean;
|
|
1916
|
+
error?: unknown;
|
|
1917
|
+
meta?: unknown;
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
export type GetPermissionsResponse = GetPermissionsResponses[keyof GetPermissionsResponses];
|
|
1921
|
+
export type PostPermissionsData = {
|
|
1922
|
+
/**
|
|
1923
|
+
* Input
|
|
1924
|
+
*/
|
|
1925
|
+
body?: Array<{
|
|
1926
|
+
id?: string;
|
|
1927
|
+
name: string;
|
|
1928
|
+
description?: string | null;
|
|
1929
|
+
}>;
|
|
1930
|
+
path?: never;
|
|
1931
|
+
query?: never;
|
|
1932
|
+
url: '/permissions';
|
|
1933
|
+
};
|
|
1934
|
+
export type PostPermissionsResponses = {
|
|
1935
|
+
/**
|
|
1936
|
+
* Item
|
|
1937
|
+
*/
|
|
1938
|
+
200: {
|
|
1939
|
+
data: Array<{
|
|
1940
|
+
id: string;
|
|
1941
|
+
name: string;
|
|
1942
|
+
description: string | null;
|
|
1943
|
+
projectId: string;
|
|
1944
|
+
}>;
|
|
1945
|
+
message: string;
|
|
1946
|
+
success: boolean;
|
|
1947
|
+
error?: unknown;
|
|
1948
|
+
meta?: unknown;
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
export type PostPermissionsResponse = PostPermissionsResponses[keyof PostPermissionsResponses];
|
|
1952
|
+
export type DeletePermissionsByIdData = {
|
|
1953
|
+
body?: never;
|
|
1954
|
+
path: {
|
|
1955
|
+
id: string;
|
|
1956
|
+
};
|
|
1957
|
+
query?: never;
|
|
1958
|
+
url: '/permissions/{id}';
|
|
1959
|
+
};
|
|
1960
|
+
export type DeletePermissionsByIdResponses = {
|
|
1961
|
+
/**
|
|
1962
|
+
* Deleted Permission
|
|
1963
|
+
*/
|
|
1964
|
+
200: {
|
|
1965
|
+
data: {
|
|
1966
|
+
id: string;
|
|
1967
|
+
name: string;
|
|
1968
|
+
description: string | null;
|
|
1969
|
+
projectId: string;
|
|
1970
|
+
};
|
|
1971
|
+
message: string;
|
|
1972
|
+
success: boolean;
|
|
1973
|
+
error?: unknown;
|
|
1974
|
+
meta?: unknown;
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
export type DeletePermissionsByIdResponse = DeletePermissionsByIdResponses[keyof DeletePermissionsByIdResponses];
|
|
1978
|
+
export type GetPermissionsByIdData = {
|
|
1979
|
+
body?: never;
|
|
1980
|
+
path: {
|
|
1981
|
+
id: string;
|
|
1982
|
+
};
|
|
1983
|
+
query?: never;
|
|
1984
|
+
url: '/permissions/{id}';
|
|
1985
|
+
};
|
|
1986
|
+
export type GetPermissionsByIdResponses = {
|
|
1987
|
+
/**
|
|
1988
|
+
* Item
|
|
1989
|
+
*/
|
|
1990
|
+
200: {
|
|
1991
|
+
data: {
|
|
1992
|
+
id: string;
|
|
1993
|
+
name: string;
|
|
1994
|
+
description: string | null;
|
|
1995
|
+
projectId: string;
|
|
1996
|
+
};
|
|
1997
|
+
message: string;
|
|
1998
|
+
success: boolean;
|
|
1999
|
+
error?: unknown;
|
|
2000
|
+
meta?: unknown;
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
export type GetPermissionsByIdResponse = GetPermissionsByIdResponses[keyof GetPermissionsByIdResponses];
|
|
2004
|
+
export type PutPermissionsByIdData = {
|
|
2005
|
+
/**
|
|
2006
|
+
* Input
|
|
2007
|
+
*/
|
|
2008
|
+
body?: {
|
|
2009
|
+
id?: string;
|
|
2010
|
+
name?: string;
|
|
2011
|
+
description?: string | null;
|
|
2012
|
+
projectId?: string;
|
|
2013
|
+
};
|
|
2014
|
+
path: {
|
|
2015
|
+
id: string;
|
|
2016
|
+
};
|
|
2017
|
+
query?: never;
|
|
2018
|
+
url: '/permissions/{id}';
|
|
2019
|
+
};
|
|
2020
|
+
export type PutPermissionsByIdResponses = {
|
|
2021
|
+
/**
|
|
2022
|
+
* Item
|
|
2023
|
+
*/
|
|
2024
|
+
200: {
|
|
2025
|
+
data: {
|
|
2026
|
+
id: string;
|
|
2027
|
+
name: string;
|
|
2028
|
+
description: string | null;
|
|
2029
|
+
projectId: string;
|
|
2030
|
+
};
|
|
2031
|
+
message: string;
|
|
2032
|
+
success: boolean;
|
|
2033
|
+
error?: unknown;
|
|
2034
|
+
meta?: unknown;
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
export type PutPermissionsByIdResponse = PutPermissionsByIdResponses[keyof PutPermissionsByIdResponses];
|
|
2038
|
+
export type GetProjectsData = {
|
|
2039
|
+
body?: never;
|
|
2040
|
+
path?: never;
|
|
2041
|
+
query?: {
|
|
2042
|
+
id?: string;
|
|
2043
|
+
name?: string;
|
|
2044
|
+
icon?: string | null;
|
|
2045
|
+
color?: string | null;
|
|
2046
|
+
createdAt?: Date | null;
|
|
2047
|
+
updatedAt?: Date | null;
|
|
2048
|
+
search?: string;
|
|
2049
|
+
ids?: Array<string>;
|
|
2050
|
+
orderBy?: string;
|
|
2051
|
+
sortOrder?: 'asc' | 'desc';
|
|
2052
|
+
page?: number;
|
|
2053
|
+
size?: number;
|
|
2054
|
+
};
|
|
2055
|
+
url: '/projects';
|
|
2056
|
+
};
|
|
2057
|
+
export type GetProjectsResponses = {
|
|
2058
|
+
/**
|
|
2059
|
+
* Project List
|
|
2060
|
+
*/
|
|
2061
|
+
200: {
|
|
2062
|
+
data: Array<{
|
|
2063
|
+
id: string;
|
|
2064
|
+
name: string;
|
|
2065
|
+
icon: string | null;
|
|
2066
|
+
color: string | null;
|
|
2067
|
+
createdAt: Date | null;
|
|
2068
|
+
updatedAt: Date | null;
|
|
2069
|
+
}>;
|
|
2070
|
+
message: string;
|
|
2071
|
+
success: boolean;
|
|
2072
|
+
error?: unknown;
|
|
2073
|
+
meta?: unknown;
|
|
2074
|
+
pagination: {
|
|
2075
|
+
page: number;
|
|
2076
|
+
size: number;
|
|
2077
|
+
totalItems: number;
|
|
2078
|
+
totalPages: number;
|
|
2079
|
+
};
|
|
2080
|
+
};
|
|
2081
|
+
};
|
|
2082
|
+
export type GetProjectsResponse = GetProjectsResponses[keyof GetProjectsResponses];
|
|
2083
|
+
export type PostProjectsData = {
|
|
2084
|
+
/**
|
|
2085
|
+
* Input
|
|
2086
|
+
*/
|
|
2087
|
+
body?: {
|
|
2088
|
+
id?: string;
|
|
2089
|
+
name: string;
|
|
2090
|
+
icon?: string | null;
|
|
2091
|
+
color?: string | null;
|
|
2092
|
+
createdAt?: Date | null;
|
|
2093
|
+
updatedAt?: Date | null;
|
|
2094
|
+
};
|
|
2095
|
+
path?: never;
|
|
2096
|
+
query?: never;
|
|
2097
|
+
url: '/projects';
|
|
2098
|
+
};
|
|
2099
|
+
export type PostProjectsResponses = {
|
|
2100
|
+
/**
|
|
2101
|
+
* Item
|
|
2102
|
+
*/
|
|
2103
|
+
200: {
|
|
2104
|
+
data: {
|
|
2105
|
+
id: string;
|
|
2106
|
+
name: string;
|
|
2107
|
+
icon: string | null;
|
|
2108
|
+
color: string | null;
|
|
2109
|
+
createdAt: Date | null;
|
|
2110
|
+
updatedAt: Date | null;
|
|
2111
|
+
};
|
|
2112
|
+
message: string;
|
|
2113
|
+
success: boolean;
|
|
2114
|
+
error?: unknown;
|
|
2115
|
+
meta?: unknown;
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
export type PostProjectsResponse = PostProjectsResponses[keyof PostProjectsResponses];
|
|
2119
|
+
export type DeleteProjectsByProjectIdData = {
|
|
2120
|
+
body?: never;
|
|
2121
|
+
path: {
|
|
2122
|
+
projectId: string;
|
|
2123
|
+
};
|
|
2124
|
+
query?: never;
|
|
2125
|
+
url: '/projects/{projectId}';
|
|
2126
|
+
};
|
|
2127
|
+
export type DeleteProjectsByProjectIdResponses = {
|
|
2128
|
+
/**
|
|
2129
|
+
* Deleted Project
|
|
2130
|
+
*/
|
|
2131
|
+
200: {
|
|
2132
|
+
data: {
|
|
2133
|
+
id: string;
|
|
2134
|
+
name: string;
|
|
2135
|
+
icon: string | null;
|
|
2136
|
+
color: string | null;
|
|
2137
|
+
createdAt: Date | null;
|
|
2138
|
+
updatedAt: Date | null;
|
|
2139
|
+
};
|
|
2140
|
+
message: string;
|
|
2141
|
+
success: boolean;
|
|
2142
|
+
error?: unknown;
|
|
2143
|
+
meta?: unknown;
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
export type DeleteProjectsByProjectIdResponse = DeleteProjectsByProjectIdResponses[keyof DeleteProjectsByProjectIdResponses];
|
|
2147
|
+
export type GetProjectsByProjectIdData = {
|
|
2148
|
+
body?: never;
|
|
2149
|
+
path: {
|
|
2150
|
+
projectId: string;
|
|
2151
|
+
};
|
|
2152
|
+
query?: never;
|
|
2153
|
+
url: '/projects/{projectId}';
|
|
2154
|
+
};
|
|
2155
|
+
export type GetProjectsByProjectIdResponses = {
|
|
2156
|
+
/**
|
|
2157
|
+
* Item
|
|
2158
|
+
*/
|
|
2159
|
+
200: {
|
|
2160
|
+
data: {
|
|
2161
|
+
id: string;
|
|
2162
|
+
name: string;
|
|
2163
|
+
icon: string | null;
|
|
2164
|
+
color: string | null;
|
|
2165
|
+
createdAt: Date | null;
|
|
2166
|
+
updatedAt: Date | null;
|
|
2167
|
+
};
|
|
2168
|
+
message: string;
|
|
2169
|
+
success: boolean;
|
|
2170
|
+
error?: unknown;
|
|
2171
|
+
meta?: unknown;
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
export type GetProjectsByProjectIdResponse = GetProjectsByProjectIdResponses[keyof GetProjectsByProjectIdResponses];
|
|
2175
|
+
export type PutProjectsByProjectIdData = {
|
|
2176
|
+
/**
|
|
2177
|
+
* Input
|
|
2178
|
+
*/
|
|
2179
|
+
body?: {
|
|
2180
|
+
id?: string;
|
|
2181
|
+
name?: string;
|
|
2182
|
+
icon?: string | null;
|
|
2183
|
+
color?: string | null;
|
|
2184
|
+
createdAt?: Date | null;
|
|
2185
|
+
updatedAt?: Date | null;
|
|
2186
|
+
};
|
|
2187
|
+
path: {
|
|
2188
|
+
projectId: string;
|
|
2189
|
+
};
|
|
2190
|
+
query?: never;
|
|
2191
|
+
url: '/projects/{projectId}';
|
|
2192
|
+
};
|
|
2193
|
+
export type PutProjectsByProjectIdResponses = {
|
|
2194
|
+
/**
|
|
2195
|
+
* Item
|
|
2196
|
+
*/
|
|
2197
|
+
200: {
|
|
2198
|
+
data: {
|
|
2199
|
+
id: string;
|
|
2200
|
+
name: string;
|
|
2201
|
+
icon: string | null;
|
|
2202
|
+
color: string | null;
|
|
2203
|
+
createdAt: Date | null;
|
|
2204
|
+
updatedAt: Date | null;
|
|
2205
|
+
};
|
|
2206
|
+
message: string;
|
|
2207
|
+
success: boolean;
|
|
2208
|
+
error?: unknown;
|
|
2209
|
+
meta?: unknown;
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
export type PutProjectsByProjectIdResponse = PutProjectsByProjectIdResponses[keyof PutProjectsByProjectIdResponses];
|
|
2213
|
+
export type PutProjectsByProjectIdChangeIdData = {
|
|
2214
|
+
/**
|
|
2215
|
+
* New Project ID payload
|
|
2216
|
+
*/
|
|
2217
|
+
body?: {
|
|
2218
|
+
newId: string;
|
|
2219
|
+
};
|
|
2220
|
+
path: {
|
|
2221
|
+
projectId: string;
|
|
2222
|
+
};
|
|
2223
|
+
query?: never;
|
|
2224
|
+
url: '/projects/{projectId}/change-id';
|
|
2225
|
+
};
|
|
2226
|
+
export type PutProjectsByProjectIdChangeIdResponses = {
|
|
2227
|
+
/**
|
|
2228
|
+
* Updated Project ID
|
|
2229
|
+
*/
|
|
2230
|
+
200: {
|
|
2231
|
+
data: {
|
|
2232
|
+
id: string;
|
|
2233
|
+
};
|
|
2234
|
+
message: string;
|
|
2235
|
+
success: boolean;
|
|
2236
|
+
error?: unknown;
|
|
2237
|
+
meta?: unknown;
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
export type PutProjectsByProjectIdChangeIdResponse = PutProjectsByProjectIdChangeIdResponses[keyof PutProjectsByProjectIdChangeIdResponses];
|
|
2241
|
+
export type DeleteRolesByIdPermissionsData = {
|
|
2242
|
+
/**
|
|
2243
|
+
* Input
|
|
2244
|
+
*/
|
|
2245
|
+
body?: {
|
|
2246
|
+
ids: Array<string>;
|
|
2247
|
+
};
|
|
2248
|
+
path: {
|
|
2249
|
+
id: string;
|
|
2250
|
+
};
|
|
2251
|
+
query?: never;
|
|
2252
|
+
url: '/roles/{id}/permissions';
|
|
2253
|
+
};
|
|
2254
|
+
export type DeleteRolesByIdPermissionsResponses = {
|
|
2255
|
+
/**
|
|
2256
|
+
* Role permissions List
|
|
2257
|
+
*/
|
|
2258
|
+
200: {
|
|
2259
|
+
data: Array<{
|
|
2260
|
+
roleId: string;
|
|
2261
|
+
permissionId: string;
|
|
2262
|
+
projectId: string | null;
|
|
2263
|
+
}>;
|
|
2264
|
+
message: string;
|
|
2265
|
+
success: boolean;
|
|
2266
|
+
error?: unknown;
|
|
2267
|
+
meta?: unknown;
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
export type DeleteRolesByIdPermissionsResponse = DeleteRolesByIdPermissionsResponses[keyof DeleteRolesByIdPermissionsResponses];
|
|
2271
|
+
export type GetRolesByIdPermissionsData = {
|
|
2272
|
+
body?: never;
|
|
2273
|
+
path: {
|
|
2274
|
+
id: string;
|
|
2275
|
+
};
|
|
2276
|
+
query?: never;
|
|
2277
|
+
url: '/roles/{id}/permissions';
|
|
2278
|
+
};
|
|
2279
|
+
export type GetRolesByIdPermissionsResponses = {
|
|
2280
|
+
/**
|
|
2281
|
+
* Role permissions List
|
|
2282
|
+
*/
|
|
2283
|
+
200: {
|
|
2284
|
+
data: Array<{
|
|
2285
|
+
id: string;
|
|
2286
|
+
name: string;
|
|
2287
|
+
description: string | null;
|
|
2288
|
+
}>;
|
|
2289
|
+
message: string;
|
|
2290
|
+
success: boolean;
|
|
2291
|
+
error?: unknown;
|
|
2292
|
+
meta?: unknown;
|
|
2293
|
+
};
|
|
2294
|
+
};
|
|
2295
|
+
export type GetRolesByIdPermissionsResponse = GetRolesByIdPermissionsResponses[keyof GetRolesByIdPermissionsResponses];
|
|
2296
|
+
export type PostRolesByIdPermissionsData = {
|
|
2297
|
+
/**
|
|
2298
|
+
* Input
|
|
2299
|
+
*/
|
|
2300
|
+
body?: {
|
|
2301
|
+
ids: Array<string>;
|
|
2302
|
+
};
|
|
2303
|
+
path: {
|
|
2304
|
+
id: string;
|
|
2305
|
+
};
|
|
2306
|
+
query?: never;
|
|
2307
|
+
url: '/roles/{id}/permissions';
|
|
2308
|
+
};
|
|
2309
|
+
export type PostRolesByIdPermissionsResponses = {
|
|
2310
|
+
/**
|
|
2311
|
+
* Role permissions List
|
|
2312
|
+
*/
|
|
2313
|
+
200: {
|
|
2314
|
+
data: Array<{
|
|
2315
|
+
roleId: string;
|
|
2316
|
+
permissionId: string;
|
|
2317
|
+
projectId: string | null;
|
|
2318
|
+
}>;
|
|
2319
|
+
message: string;
|
|
2320
|
+
success: boolean;
|
|
2321
|
+
error?: unknown;
|
|
2322
|
+
meta?: unknown;
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2325
|
+
export type PostRolesByIdPermissionsResponse = PostRolesByIdPermissionsResponses[keyof PostRolesByIdPermissionsResponses];
|
|
2326
|
+
export type GetRolesByIdUsersData = {
|
|
2327
|
+
body?: never;
|
|
2328
|
+
path: {
|
|
2329
|
+
id: string;
|
|
2330
|
+
};
|
|
2331
|
+
query?: never;
|
|
2332
|
+
url: '/roles/{id}/users';
|
|
2333
|
+
};
|
|
2334
|
+
export type GetRolesByIdUsersResponses = {
|
|
2335
|
+
/**
|
|
2336
|
+
* Role users List
|
|
2337
|
+
*/
|
|
2338
|
+
200: {
|
|
2339
|
+
data: Array<{
|
|
2340
|
+
id: string;
|
|
2341
|
+
firstName: string;
|
|
2342
|
+
lastName: string;
|
|
2343
|
+
defaultMembershipId: string | null;
|
|
2344
|
+
lastLogin: Date | null;
|
|
2345
|
+
bannedAt: Date | null;
|
|
2346
|
+
verifiedAt: Date | null;
|
|
2347
|
+
projectId: string;
|
|
2348
|
+
createdAt: Date | null;
|
|
2349
|
+
updatedAt: Date | null;
|
|
2350
|
+
}>;
|
|
2351
|
+
message: string;
|
|
2352
|
+
success: boolean;
|
|
2353
|
+
error?: unknown;
|
|
2354
|
+
meta?: unknown;
|
|
2355
|
+
};
|
|
2356
|
+
};
|
|
2357
|
+
export type GetRolesByIdUsersResponse = GetRolesByIdUsersResponses[keyof GetRolesByIdUsersResponses];
|
|
2358
|
+
export type GetRolesData = {
|
|
2359
|
+
body?: never;
|
|
2360
|
+
path?: never;
|
|
2361
|
+
query?: {
|
|
2362
|
+
id?: string;
|
|
2363
|
+
name?: string;
|
|
2364
|
+
description?: string | null;
|
|
2365
|
+
organizationId?: string | null;
|
|
2366
|
+
groupId?: string;
|
|
2367
|
+
projectId?: string;
|
|
2368
|
+
createdAt?: Date | null;
|
|
2369
|
+
updatedAt?: Date | null;
|
|
2370
|
+
search?: string;
|
|
2371
|
+
ids?: Array<string>;
|
|
2372
|
+
orderBy?: string;
|
|
2373
|
+
sortOrder?: 'asc' | 'desc';
|
|
2374
|
+
page?: number;
|
|
2375
|
+
size?: number;
|
|
2376
|
+
};
|
|
2377
|
+
url: '/roles';
|
|
2378
|
+
};
|
|
2379
|
+
export type GetRolesResponses = {
|
|
2380
|
+
/**
|
|
2381
|
+
* Role List
|
|
2382
|
+
*/
|
|
2383
|
+
200: {
|
|
2384
|
+
data: Array<{
|
|
2385
|
+
id: string;
|
|
2386
|
+
name: string;
|
|
2387
|
+
description: string | null;
|
|
2388
|
+
organizationId: string | null;
|
|
2389
|
+
groupId: string;
|
|
2390
|
+
projectId: string;
|
|
2391
|
+
createdAt: Date | null;
|
|
2392
|
+
updatedAt: Date | null;
|
|
2393
|
+
}>;
|
|
2394
|
+
message: string;
|
|
2395
|
+
success: boolean;
|
|
2396
|
+
error?: unknown;
|
|
2397
|
+
meta?: unknown;
|
|
2398
|
+
pagination: {
|
|
2399
|
+
page: number;
|
|
2400
|
+
size: number;
|
|
2401
|
+
totalItems: number;
|
|
2402
|
+
totalPages: number;
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
};
|
|
2406
|
+
export type GetRolesResponse = GetRolesResponses[keyof GetRolesResponses];
|
|
2407
|
+
export type PostRolesData = {
|
|
2408
|
+
/**
|
|
2409
|
+
* Input
|
|
2410
|
+
*/
|
|
2411
|
+
body?: {
|
|
2412
|
+
id?: string;
|
|
2413
|
+
name: string;
|
|
2414
|
+
description?: string | null;
|
|
2415
|
+
organizationId?: string | null;
|
|
2416
|
+
groupId: string;
|
|
2417
|
+
createdAt?: Date | null;
|
|
2418
|
+
updatedAt?: Date | null;
|
|
2419
|
+
};
|
|
2420
|
+
path?: never;
|
|
2421
|
+
query?: never;
|
|
2422
|
+
url: '/roles';
|
|
2423
|
+
};
|
|
2424
|
+
export type PostRolesErrors = {
|
|
2425
|
+
/**
|
|
2426
|
+
* Role already exists
|
|
2427
|
+
*/
|
|
2428
|
+
409: {
|
|
2429
|
+
data: {
|
|
2430
|
+
[key: string]: unknown;
|
|
2431
|
+
};
|
|
2432
|
+
message: string;
|
|
2433
|
+
success: boolean;
|
|
2434
|
+
error?: unknown;
|
|
2435
|
+
meta?: unknown;
|
|
2436
|
+
};
|
|
2437
|
+
};
|
|
2438
|
+
export type PostRolesError = PostRolesErrors[keyof PostRolesErrors];
|
|
2439
|
+
export type PostRolesResponses = {
|
|
2440
|
+
/**
|
|
2441
|
+
* Item
|
|
2442
|
+
*/
|
|
2443
|
+
200: {
|
|
2444
|
+
data: {
|
|
2445
|
+
id: string;
|
|
2446
|
+
name: string;
|
|
2447
|
+
description: string | null;
|
|
2448
|
+
organizationId: string | null;
|
|
2449
|
+
groupId: string;
|
|
2450
|
+
projectId: string;
|
|
2451
|
+
createdAt: Date | null;
|
|
2452
|
+
updatedAt: Date | null;
|
|
2453
|
+
};
|
|
2454
|
+
message: string;
|
|
2455
|
+
success: boolean;
|
|
2456
|
+
error?: unknown;
|
|
2457
|
+
meta?: unknown;
|
|
2458
|
+
};
|
|
2459
|
+
};
|
|
2460
|
+
export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
|
|
2461
|
+
export type DeleteRolesByIdData = {
|
|
2462
|
+
body?: never;
|
|
2463
|
+
path: {
|
|
2464
|
+
id: string;
|
|
2465
|
+
};
|
|
2466
|
+
query?: never;
|
|
2467
|
+
url: '/roles/{id}';
|
|
2468
|
+
};
|
|
2469
|
+
export type DeleteRolesByIdResponses = {
|
|
2470
|
+
/**
|
|
2471
|
+
* Deleted Role
|
|
2472
|
+
*/
|
|
2473
|
+
200: {
|
|
2474
|
+
data: {
|
|
2475
|
+
id: string;
|
|
2476
|
+
name: string;
|
|
2477
|
+
description: string | null;
|
|
2478
|
+
organizationId: string | null;
|
|
2479
|
+
groupId: string;
|
|
2480
|
+
projectId: string;
|
|
2481
|
+
createdAt: Date | null;
|
|
2482
|
+
updatedAt: Date | null;
|
|
2483
|
+
};
|
|
2484
|
+
message: string;
|
|
2485
|
+
success: boolean;
|
|
2486
|
+
error?: unknown;
|
|
2487
|
+
meta?: unknown;
|
|
2488
|
+
};
|
|
2489
|
+
};
|
|
2490
|
+
export type DeleteRolesByIdResponse = DeleteRolesByIdResponses[keyof DeleteRolesByIdResponses];
|
|
2491
|
+
export type GetRolesByIdData = {
|
|
2492
|
+
body?: never;
|
|
2493
|
+
path: {
|
|
2494
|
+
id: string;
|
|
2495
|
+
};
|
|
2496
|
+
query?: never;
|
|
2497
|
+
url: '/roles/{id}';
|
|
2498
|
+
};
|
|
2499
|
+
export type GetRolesByIdResponses = {
|
|
2500
|
+
/**
|
|
2501
|
+
* Item
|
|
2502
|
+
*/
|
|
2503
|
+
200: {
|
|
2504
|
+
data: {
|
|
2505
|
+
id: string;
|
|
2506
|
+
name: string;
|
|
2507
|
+
description: string | null;
|
|
2508
|
+
organizationId: string | null;
|
|
2509
|
+
groupId: string;
|
|
2510
|
+
projectId: string;
|
|
2511
|
+
createdAt: Date | null;
|
|
2512
|
+
updatedAt: Date | null;
|
|
2513
|
+
};
|
|
2514
|
+
message: string;
|
|
2515
|
+
success: boolean;
|
|
2516
|
+
error?: unknown;
|
|
2517
|
+
meta?: unknown;
|
|
2518
|
+
};
|
|
2519
|
+
};
|
|
2520
|
+
export type GetRolesByIdResponse = GetRolesByIdResponses[keyof GetRolesByIdResponses];
|
|
2521
|
+
export type PutRolesByIdData = {
|
|
2522
|
+
/**
|
|
2523
|
+
* Input
|
|
2524
|
+
*/
|
|
2525
|
+
body?: {
|
|
2526
|
+
id?: string;
|
|
2527
|
+
name?: string;
|
|
2528
|
+
description?: string | null;
|
|
2529
|
+
organizationId?: string | null;
|
|
2530
|
+
groupId?: string;
|
|
2531
|
+
projectId?: string;
|
|
2532
|
+
createdAt?: Date | null;
|
|
2533
|
+
updatedAt?: Date | null;
|
|
2534
|
+
};
|
|
2535
|
+
path: {
|
|
2536
|
+
id: string;
|
|
2537
|
+
};
|
|
2538
|
+
query?: never;
|
|
2539
|
+
url: '/roles/{id}';
|
|
2540
|
+
};
|
|
2541
|
+
export type PutRolesByIdResponses = {
|
|
2542
|
+
/**
|
|
2543
|
+
* Item
|
|
2544
|
+
*/
|
|
2545
|
+
200: {
|
|
2546
|
+
data: {
|
|
2547
|
+
id: string;
|
|
2548
|
+
name: string;
|
|
2549
|
+
description: string | null;
|
|
2550
|
+
organizationId: string | null;
|
|
2551
|
+
groupId: string;
|
|
2552
|
+
projectId: string;
|
|
2553
|
+
createdAt: Date | null;
|
|
2554
|
+
updatedAt: Date | null;
|
|
2555
|
+
};
|
|
2556
|
+
message: string;
|
|
2557
|
+
success: boolean;
|
|
2558
|
+
error?: unknown;
|
|
2559
|
+
meta?: unknown;
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
export type PutRolesByIdResponse = PutRolesByIdResponses[keyof PutRolesByIdResponses];
|
|
2563
|
+
export type PutRolesByIdChangeIdData = {
|
|
2564
|
+
/**
|
|
2565
|
+
* New Role ID payload
|
|
2566
|
+
*/
|
|
2567
|
+
body?: {
|
|
2568
|
+
newId: string;
|
|
2569
|
+
};
|
|
2570
|
+
path: {
|
|
2571
|
+
id: string;
|
|
2572
|
+
};
|
|
2573
|
+
query?: never;
|
|
2574
|
+
url: '/roles/{id}/change-id';
|
|
2575
|
+
};
|
|
2576
|
+
export type PutRolesByIdChangeIdResponses = {
|
|
2577
|
+
/**
|
|
2578
|
+
* Updated Role ID
|
|
2579
|
+
*/
|
|
2580
|
+
200: {
|
|
2581
|
+
data: {
|
|
2582
|
+
id: string;
|
|
2583
|
+
};
|
|
2584
|
+
message: string;
|
|
2585
|
+
success: boolean;
|
|
2586
|
+
error?: unknown;
|
|
2587
|
+
meta?: unknown;
|
|
2588
|
+
};
|
|
2589
|
+
};
|
|
2590
|
+
export type PutRolesByIdChangeIdResponse = PutRolesByIdChangeIdResponses[keyof PutRolesByIdChangeIdResponses];
|
|
2591
|
+
export type GetSecretKeysData = {
|
|
2592
|
+
body?: never;
|
|
2593
|
+
path?: never;
|
|
2594
|
+
query?: {
|
|
2595
|
+
id?: string;
|
|
2596
|
+
projectId?: string;
|
|
2597
|
+
secretHash?: string;
|
|
2598
|
+
expiresAt?: Date | null;
|
|
2599
|
+
createdAt?: Date | null;
|
|
2600
|
+
search?: string;
|
|
2601
|
+
ids?: Array<string>;
|
|
2602
|
+
orderBy?: string;
|
|
2603
|
+
sortOrder?: 'asc' | 'desc';
|
|
2604
|
+
page?: number;
|
|
2605
|
+
size?: number;
|
|
2606
|
+
};
|
|
2607
|
+
url: '/secret-keys';
|
|
2608
|
+
};
|
|
2609
|
+
export type GetSecretKeysResponses = {
|
|
2610
|
+
/**
|
|
2611
|
+
* SecretKey List
|
|
2612
|
+
*/
|
|
2613
|
+
200: {
|
|
2614
|
+
data: Array<{
|
|
2615
|
+
id: string;
|
|
2616
|
+
projectId: string;
|
|
2617
|
+
expiresAt: Date | null;
|
|
2618
|
+
createdAt: Date | null;
|
|
2619
|
+
}>;
|
|
2620
|
+
message: string;
|
|
2621
|
+
success: boolean;
|
|
2622
|
+
error?: unknown;
|
|
2623
|
+
meta?: unknown;
|
|
2624
|
+
pagination: {
|
|
2625
|
+
page: number;
|
|
2626
|
+
size: number;
|
|
2627
|
+
totalItems: number;
|
|
2628
|
+
totalPages: number;
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
export type GetSecretKeysResponse = GetSecretKeysResponses[keyof GetSecretKeysResponses];
|
|
2633
|
+
export type PostSecretKeysData = {
|
|
2634
|
+
/**
|
|
2635
|
+
* Input
|
|
2636
|
+
*/
|
|
2637
|
+
body?: {
|
|
2638
|
+
expiresAt?: Date | null;
|
|
2639
|
+
};
|
|
2640
|
+
path?: never;
|
|
2641
|
+
query?: never;
|
|
2642
|
+
url: '/secret-keys';
|
|
2643
|
+
};
|
|
2644
|
+
export type PostSecretKeysResponses = {
|
|
2645
|
+
/**
|
|
2646
|
+
* Item
|
|
2647
|
+
*/
|
|
2648
|
+
200: {
|
|
2649
|
+
data: {
|
|
2650
|
+
id: string;
|
|
2651
|
+
projectId: string;
|
|
2652
|
+
expiresAt: Date | null;
|
|
2653
|
+
createdAt: Date | null;
|
|
2654
|
+
secretKey: string;
|
|
2655
|
+
};
|
|
2656
|
+
message: string;
|
|
2657
|
+
success: boolean;
|
|
2658
|
+
error?: unknown;
|
|
2659
|
+
meta?: unknown;
|
|
2660
|
+
};
|
|
2661
|
+
};
|
|
2662
|
+
export type PostSecretKeysResponse = PostSecretKeysResponses[keyof PostSecretKeysResponses];
|
|
2663
|
+
export type DeleteSecretKeysByIdData = {
|
|
2664
|
+
body?: never;
|
|
2665
|
+
path: {
|
|
2666
|
+
id: string;
|
|
2667
|
+
};
|
|
2668
|
+
query?: never;
|
|
2669
|
+
url: '/secret-keys/{id}';
|
|
2670
|
+
};
|
|
2671
|
+
export type DeleteSecretKeysByIdResponses = {
|
|
2672
|
+
/**
|
|
2673
|
+
* Deleted SecretKey
|
|
2674
|
+
*/
|
|
2675
|
+
200: {
|
|
2676
|
+
data: {
|
|
2677
|
+
id: string;
|
|
2678
|
+
projectId: string;
|
|
2679
|
+
secretHash: string;
|
|
2680
|
+
expiresAt: Date | null;
|
|
2681
|
+
createdAt: Date | null;
|
|
2682
|
+
};
|
|
2683
|
+
message: string;
|
|
2684
|
+
success: boolean;
|
|
2685
|
+
error?: unknown;
|
|
2686
|
+
meta?: unknown;
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
export type DeleteSecretKeysByIdResponse = DeleteSecretKeysByIdResponses[keyof DeleteSecretKeysByIdResponses];
|
|
2690
|
+
export type GetSecretKeysByIdData = {
|
|
2691
|
+
body?: never;
|
|
2692
|
+
path: {
|
|
2693
|
+
id: string;
|
|
2694
|
+
};
|
|
2695
|
+
query?: never;
|
|
2696
|
+
url: '/secret-keys/{id}';
|
|
2697
|
+
};
|
|
2698
|
+
export type GetSecretKeysByIdResponses = {
|
|
2699
|
+
/**
|
|
2700
|
+
* Item
|
|
2701
|
+
*/
|
|
2702
|
+
200: {
|
|
2703
|
+
data: {
|
|
2704
|
+
id: string;
|
|
2705
|
+
projectId: string;
|
|
2706
|
+
expiresAt: Date | null;
|
|
2707
|
+
createdAt: Date | null;
|
|
2708
|
+
};
|
|
2709
|
+
message: string;
|
|
2710
|
+
success: boolean;
|
|
2711
|
+
error?: unknown;
|
|
2712
|
+
meta?: unknown;
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
export type GetSecretKeysByIdResponse = GetSecretKeysByIdResponses[keyof GetSecretKeysByIdResponses];
|
|
2716
|
+
export type PostUsersByIdIdentifierAddData = {
|
|
2717
|
+
/**
|
|
2718
|
+
* Identifier Data
|
|
2719
|
+
*/
|
|
2720
|
+
body: {
|
|
2721
|
+
identifierType: string;
|
|
2722
|
+
identifierValue: string;
|
|
2723
|
+
};
|
|
2724
|
+
path: {
|
|
2725
|
+
id: string;
|
|
2726
|
+
};
|
|
2727
|
+
query?: never;
|
|
2728
|
+
url: '/users/{id}/identifier/add';
|
|
2729
|
+
};
|
|
2730
|
+
export type PostUsersByIdIdentifierAddResponses = {
|
|
2731
|
+
/**
|
|
2732
|
+
* Created
|
|
2733
|
+
*/
|
|
2734
|
+
200: {
|
|
2735
|
+
data: {
|
|
2736
|
+
token: string;
|
|
2737
|
+
};
|
|
2738
|
+
message: string;
|
|
2739
|
+
success: boolean;
|
|
2740
|
+
error?: unknown;
|
|
2741
|
+
meta?: unknown;
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
export type PostUsersByIdIdentifierAddResponse = PostUsersByIdIdentifierAddResponses[keyof PostUsersByIdIdentifierAddResponses];
|
|
2745
|
+
export type PostUsersByIdIdentifierDeleteData = {
|
|
2746
|
+
/**
|
|
2747
|
+
* User Login Data
|
|
2748
|
+
*/
|
|
2749
|
+
body: {
|
|
2750
|
+
identifierType: string;
|
|
2751
|
+
identifierValue: string;
|
|
2752
|
+
};
|
|
2753
|
+
path: {
|
|
2754
|
+
id: string;
|
|
2755
|
+
};
|
|
2756
|
+
query?: never;
|
|
2757
|
+
url: '/users/{id}/identifier/delete';
|
|
2758
|
+
};
|
|
2759
|
+
export type PostUsersByIdIdentifierDeleteResponses = {
|
|
2760
|
+
/**
|
|
2761
|
+
* Deleted
|
|
2762
|
+
*/
|
|
2763
|
+
200: {
|
|
2764
|
+
data: {
|
|
2765
|
+
[key: string]: unknown;
|
|
2766
|
+
};
|
|
2767
|
+
message: string;
|
|
2768
|
+
success: boolean;
|
|
2769
|
+
error?: unknown;
|
|
2770
|
+
meta?: unknown;
|
|
2771
|
+
};
|
|
2772
|
+
};
|
|
2773
|
+
export type PostUsersByIdIdentifierDeleteResponse = PostUsersByIdIdentifierDeleteResponses[keyof PostUsersByIdIdentifierDeleteResponses];
|
|
2774
|
+
export type GetUsersByIdIdentifiersData = {
|
|
2775
|
+
body?: never;
|
|
2776
|
+
path: {
|
|
2777
|
+
id: string;
|
|
2778
|
+
};
|
|
2779
|
+
query?: {
|
|
2780
|
+
orderBy?: string;
|
|
2781
|
+
sortOrder?: 'asc' | 'desc';
|
|
2782
|
+
page?: number;
|
|
2783
|
+
size?: number;
|
|
2784
|
+
};
|
|
2785
|
+
url: '/users/{id}/identifiers';
|
|
2786
|
+
};
|
|
2787
|
+
export type GetUsersByIdIdentifiersResponses = {
|
|
2788
|
+
/**
|
|
2789
|
+
* List
|
|
2790
|
+
*/
|
|
2791
|
+
200: {
|
|
2792
|
+
data: Array<{
|
|
2793
|
+
id: string;
|
|
2794
|
+
userId: string;
|
|
2795
|
+
projectId: string;
|
|
2796
|
+
identifierType: string;
|
|
2797
|
+
identifierValue: string;
|
|
2798
|
+
verifiedAt: Date | null;
|
|
2799
|
+
createdAt: Date | null;
|
|
2800
|
+
updatedAt: Date | null;
|
|
2801
|
+
}>;
|
|
2802
|
+
message: string;
|
|
2803
|
+
success: boolean;
|
|
2804
|
+
error?: unknown;
|
|
2805
|
+
meta?: unknown;
|
|
2806
|
+
pagination: {
|
|
2807
|
+
page: number;
|
|
2808
|
+
size: number;
|
|
2809
|
+
totalItems: number;
|
|
2810
|
+
totalPages: number;
|
|
2811
|
+
};
|
|
2812
|
+
};
|
|
2813
|
+
};
|
|
2814
|
+
export type GetUsersByIdIdentifiersResponse = GetUsersByIdIdentifiersResponses[keyof GetUsersByIdIdentifiersResponses];
|
|
2815
|
+
export type PostUserPasswordsUpsertData = {
|
|
2816
|
+
/**
|
|
2817
|
+
* UserPassword Create Data
|
|
2818
|
+
*/
|
|
2819
|
+
body?: {
|
|
2820
|
+
userId: string;
|
|
2821
|
+
password: string;
|
|
2822
|
+
isTemporary?: boolean | null;
|
|
2823
|
+
createdAt?: Date | null;
|
|
2824
|
+
updatedAt?: Date | null;
|
|
2825
|
+
};
|
|
2826
|
+
path?: never;
|
|
2827
|
+
query?: never;
|
|
2828
|
+
url: '/user-passwords/upsert';
|
|
2829
|
+
};
|
|
2830
|
+
export type PostUserPasswordsUpsertResponses = {
|
|
2831
|
+
/**
|
|
2832
|
+
* UserPassword created successfully
|
|
2833
|
+
*/
|
|
2834
|
+
201: {
|
|
2835
|
+
data: {
|
|
2836
|
+
userId: string;
|
|
2837
|
+
password: string;
|
|
2838
|
+
isTemporary?: boolean | null;
|
|
2839
|
+
createdAt: Date | null;
|
|
2840
|
+
updatedAt: Date | null;
|
|
2841
|
+
};
|
|
2842
|
+
message: string;
|
|
2843
|
+
success: boolean;
|
|
2844
|
+
error?: unknown;
|
|
2845
|
+
meta?: unknown;
|
|
2846
|
+
};
|
|
2847
|
+
};
|
|
2848
|
+
export type PostUserPasswordsUpsertResponse = PostUserPasswordsUpsertResponses[keyof PostUserPasswordsUpsertResponses];
|
|
2849
|
+
export type GetUserPasswordsData = {
|
|
2850
|
+
body?: never;
|
|
2851
|
+
path?: never;
|
|
2852
|
+
query: {
|
|
2853
|
+
ids: Array<string>;
|
|
2854
|
+
};
|
|
2855
|
+
url: '/user-passwords';
|
|
2856
|
+
};
|
|
2857
|
+
export type GetUserPasswordsResponses = {
|
|
2858
|
+
/**
|
|
2859
|
+
* user passwords by ids
|
|
2860
|
+
*/
|
|
2861
|
+
200: {
|
|
2862
|
+
data: Array<{
|
|
2863
|
+
userId: string;
|
|
2864
|
+
isTemporary?: boolean | null;
|
|
2865
|
+
}>;
|
|
2866
|
+
message: string;
|
|
2867
|
+
success: boolean;
|
|
2868
|
+
error?: unknown;
|
|
2869
|
+
meta?: unknown;
|
|
2870
|
+
};
|
|
2871
|
+
};
|
|
2872
|
+
export type GetUserPasswordsResponse = GetUserPasswordsResponses[keyof GetUserPasswordsResponses];
|
|
2873
|
+
export type PostUsersVerifyByTokenData = {
|
|
2874
|
+
body?: never;
|
|
2875
|
+
path: {
|
|
2876
|
+
token: string;
|
|
2877
|
+
};
|
|
2878
|
+
query?: never;
|
|
2879
|
+
url: '/users/verify/{token}';
|
|
2880
|
+
};
|
|
2881
|
+
export type PostUsersVerifyByTokenResponses = {
|
|
2882
|
+
/**
|
|
2883
|
+
* User verified successfully
|
|
2884
|
+
*/
|
|
2885
|
+
200: {
|
|
2886
|
+
data: {
|
|
2887
|
+
[key: string]: unknown;
|
|
2888
|
+
};
|
|
2889
|
+
message: string;
|
|
2890
|
+
success: boolean;
|
|
2891
|
+
error?: unknown;
|
|
2892
|
+
meta?: unknown;
|
|
2893
|
+
};
|
|
2894
|
+
};
|
|
2895
|
+
export type PostUsersVerifyByTokenResponse = PostUsersVerifyByTokenResponses[keyof PostUsersVerifyByTokenResponses];
|
|
2896
|
+
export type PostUsersByIdNewVerificationTokenData = {
|
|
2897
|
+
/**
|
|
2898
|
+
* Identifier
|
|
2899
|
+
*/
|
|
2900
|
+
body: {
|
|
2901
|
+
identifierType: string;
|
|
2902
|
+
identifierValue: string;
|
|
2903
|
+
};
|
|
2904
|
+
path: {
|
|
2905
|
+
id: string;
|
|
2906
|
+
};
|
|
2907
|
+
query?: never;
|
|
2908
|
+
url: '/users/{id}/new-verification-token';
|
|
2909
|
+
};
|
|
2910
|
+
export type PostUsersByIdNewVerificationTokenResponses = {
|
|
2911
|
+
/**
|
|
2912
|
+
* New token response
|
|
2913
|
+
*/
|
|
2914
|
+
200: {
|
|
2915
|
+
data: {
|
|
2916
|
+
verifyToken: string;
|
|
2917
|
+
};
|
|
2918
|
+
message: string;
|
|
2919
|
+
success: boolean;
|
|
2920
|
+
error?: unknown;
|
|
2921
|
+
meta?: unknown;
|
|
2922
|
+
};
|
|
2923
|
+
};
|
|
2924
|
+
export type PostUsersByIdNewVerificationTokenResponse = PostUsersByIdNewVerificationTokenResponses[keyof PostUsersByIdNewVerificationTokenResponses];
|
|
2925
|
+
export type DeleteUsersByIdMembershipsByMembershipIdData = {
|
|
2926
|
+
body?: never;
|
|
2927
|
+
path: {
|
|
2928
|
+
id: string;
|
|
2929
|
+
membershipId: string;
|
|
2930
|
+
};
|
|
2931
|
+
query?: never;
|
|
2932
|
+
url: '/users/{id}/memberships/{membershipId}';
|
|
2933
|
+
};
|
|
2934
|
+
export type DeleteUsersByIdMembershipsByMembershipIdResponses = {
|
|
2935
|
+
/**
|
|
2936
|
+
* User left membership successfully
|
|
2937
|
+
*/
|
|
2938
|
+
200: {
|
|
2939
|
+
data: {
|
|
2940
|
+
id: string;
|
|
2941
|
+
userId: string;
|
|
2942
|
+
roleId: string;
|
|
2943
|
+
organizationId: string;
|
|
2944
|
+
groupId: string;
|
|
2945
|
+
projectId: string;
|
|
2946
|
+
createdAt: Date | null;
|
|
2947
|
+
updatedAt: Date | null;
|
|
2948
|
+
};
|
|
2949
|
+
message: string;
|
|
2950
|
+
success: boolean;
|
|
2951
|
+
error?: unknown;
|
|
2952
|
+
meta?: unknown;
|
|
2953
|
+
};
|
|
2954
|
+
};
|
|
2955
|
+
export type DeleteUsersByIdMembershipsByMembershipIdResponse = DeleteUsersByIdMembershipsByMembershipIdResponses[keyof DeleteUsersByIdMembershipsByMembershipIdResponses];
|
|
2956
|
+
export type PostUsersPasswordForgotData = {
|
|
2957
|
+
/**
|
|
2958
|
+
* User Login Data
|
|
2959
|
+
*/
|
|
2960
|
+
body: {
|
|
2961
|
+
identifierType: string;
|
|
2962
|
+
identifierValue: string;
|
|
2963
|
+
};
|
|
2964
|
+
path?: never;
|
|
2965
|
+
query?: never;
|
|
2966
|
+
url: '/users/password/forgot';
|
|
2967
|
+
};
|
|
2968
|
+
export type PostUsersPasswordForgotResponses = {
|
|
2969
|
+
/**
|
|
2970
|
+
* Password reset token created
|
|
2971
|
+
*/
|
|
2972
|
+
200: {
|
|
2973
|
+
data: {
|
|
2974
|
+
token: string;
|
|
2975
|
+
};
|
|
2976
|
+
message: string;
|
|
2977
|
+
success: boolean;
|
|
2978
|
+
error?: unknown;
|
|
2979
|
+
meta?: unknown;
|
|
2980
|
+
};
|
|
2981
|
+
};
|
|
2982
|
+
export type PostUsersPasswordForgotResponse = PostUsersPasswordForgotResponses[keyof PostUsersPasswordForgotResponses];
|
|
2983
|
+
export type PostUsersPasswordResetByTokenData = {
|
|
2984
|
+
/**
|
|
2985
|
+
* Input
|
|
2986
|
+
*/
|
|
2987
|
+
body: {
|
|
2988
|
+
password: string;
|
|
2989
|
+
passwordConfirmation: string;
|
|
2990
|
+
};
|
|
2991
|
+
path: {
|
|
2992
|
+
token: string;
|
|
2993
|
+
};
|
|
2994
|
+
query?: never;
|
|
2995
|
+
url: '/users/password/reset/{token}';
|
|
2996
|
+
};
|
|
2997
|
+
export type PostUsersPasswordResetByTokenResponses = {
|
|
2998
|
+
/**
|
|
2999
|
+
* Password reset done
|
|
3000
|
+
*/
|
|
3001
|
+
200: {
|
|
3002
|
+
data: {
|
|
3003
|
+
user: {
|
|
3004
|
+
id: string;
|
|
3005
|
+
firstName: string;
|
|
3006
|
+
lastName: string;
|
|
3007
|
+
defaultMembershipId: string | null;
|
|
3008
|
+
lastLogin: Date | null;
|
|
3009
|
+
bannedAt: Date | null;
|
|
3010
|
+
verifiedAt: Date | null;
|
|
3011
|
+
projectId: string;
|
|
3012
|
+
createdAt: Date | null;
|
|
3013
|
+
updatedAt: Date | null;
|
|
3014
|
+
};
|
|
3015
|
+
userIdentifiers: Array<{
|
|
3016
|
+
id: string;
|
|
3017
|
+
userId: string;
|
|
3018
|
+
projectId: string;
|
|
3019
|
+
identifierType: string;
|
|
3020
|
+
identifierValue: string;
|
|
3021
|
+
verifiedAt: Date | null;
|
|
3022
|
+
createdAt: Date | null;
|
|
3023
|
+
updatedAt: Date | null;
|
|
3024
|
+
}>;
|
|
3025
|
+
role: {
|
|
3026
|
+
id: string;
|
|
3027
|
+
name: string;
|
|
3028
|
+
description: string | null;
|
|
3029
|
+
organizationId: string | null;
|
|
3030
|
+
groupId: string;
|
|
3031
|
+
projectId: string;
|
|
3032
|
+
createdAt: Date | null;
|
|
3033
|
+
updatedAt: Date | null;
|
|
3034
|
+
} | null;
|
|
3035
|
+
organization: {
|
|
3036
|
+
id: string;
|
|
3037
|
+
name: string;
|
|
3038
|
+
groupId: string;
|
|
3039
|
+
projectId: string;
|
|
3040
|
+
creatorId: string | null;
|
|
3041
|
+
createdAt: Date | null;
|
|
3042
|
+
updatedAt: Date | null;
|
|
3043
|
+
} | null;
|
|
3044
|
+
group: {
|
|
3045
|
+
id: string;
|
|
3046
|
+
name: string;
|
|
3047
|
+
description: string | null;
|
|
3048
|
+
projectId: string;
|
|
3049
|
+
createdAt: Date | null;
|
|
3050
|
+
updatedAt: Date | null;
|
|
3051
|
+
} | null;
|
|
3052
|
+
permissions: {
|
|
3053
|
+
enabled: Array<string>;
|
|
3054
|
+
disabled: Array<string>;
|
|
3055
|
+
};
|
|
3056
|
+
zones: Array<{
|
|
3057
|
+
id: string;
|
|
3058
|
+
name: string;
|
|
3059
|
+
}>;
|
|
3060
|
+
branches: Array<{
|
|
3061
|
+
id: string;
|
|
3062
|
+
name: string;
|
|
3063
|
+
}>;
|
|
3064
|
+
accessToken: string;
|
|
3065
|
+
refreshToken: string;
|
|
3066
|
+
lastLogin?: Date;
|
|
3067
|
+
};
|
|
3068
|
+
message: string;
|
|
3069
|
+
success: boolean;
|
|
3070
|
+
error?: unknown;
|
|
3071
|
+
meta?: unknown;
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
export type PostUsersPasswordResetByTokenResponse = PostUsersPasswordResetByTokenResponses[keyof PostUsersPasswordResetByTokenResponses];
|
|
3075
|
+
export type PostUsersByIdPasswordChangeData = {
|
|
3076
|
+
/**
|
|
3077
|
+
* Input
|
|
3078
|
+
*/
|
|
3079
|
+
body: {
|
|
3080
|
+
password: string;
|
|
3081
|
+
currentPassword: string;
|
|
3082
|
+
};
|
|
3083
|
+
path: {
|
|
3084
|
+
id: string;
|
|
3085
|
+
};
|
|
3086
|
+
query?: never;
|
|
3087
|
+
url: '/users/{id}/password/change';
|
|
3088
|
+
};
|
|
3089
|
+
export type PostUsersByIdPasswordChangeResponses = {
|
|
3090
|
+
/**
|
|
3091
|
+
* Password changed
|
|
3092
|
+
*/
|
|
3093
|
+
200: {
|
|
3094
|
+
data: {
|
|
3095
|
+
id: string;
|
|
3096
|
+
firstName: string;
|
|
3097
|
+
lastName: string;
|
|
3098
|
+
defaultMembershipId: string | null;
|
|
3099
|
+
lastLogin: Date | null;
|
|
3100
|
+
bannedAt: Date | null;
|
|
3101
|
+
verifiedAt: Date | null;
|
|
3102
|
+
projectId: string;
|
|
3103
|
+
createdAt: Date | null;
|
|
3104
|
+
updatedAt: Date | null;
|
|
3105
|
+
};
|
|
3106
|
+
message: string;
|
|
3107
|
+
success: boolean;
|
|
3108
|
+
error?: unknown;
|
|
3109
|
+
meta?: unknown;
|
|
3110
|
+
};
|
|
3111
|
+
};
|
|
3112
|
+
export type PostUsersByIdPasswordChangeResponse = PostUsersByIdPasswordChangeResponses[keyof PostUsersByIdPasswordChangeResponses];
|
|
3113
|
+
export type PostUsersLoginData = {
|
|
3114
|
+
/**
|
|
3115
|
+
* User Login Data
|
|
3116
|
+
*/
|
|
3117
|
+
body: {
|
|
3118
|
+
identifierValue: string;
|
|
3119
|
+
password: string;
|
|
3120
|
+
};
|
|
3121
|
+
path?: never;
|
|
3122
|
+
query?: {
|
|
3123
|
+
groupId?: string;
|
|
3124
|
+
organizationId?: string;
|
|
3125
|
+
roleId?: string;
|
|
3126
|
+
membershipId?: string;
|
|
3127
|
+
};
|
|
3128
|
+
url: '/users/login';
|
|
3129
|
+
};
|
|
3130
|
+
export type PostUsersLoginResponses = {
|
|
3131
|
+
/**
|
|
3132
|
+
* User logged in
|
|
3133
|
+
*/
|
|
3134
|
+
200: {
|
|
3135
|
+
data: {
|
|
3136
|
+
user: {
|
|
3137
|
+
id: string;
|
|
3138
|
+
firstName: string;
|
|
3139
|
+
lastName: string;
|
|
3140
|
+
defaultMembershipId: string | null;
|
|
3141
|
+
lastLogin: Date | null;
|
|
3142
|
+
bannedAt: Date | null;
|
|
3143
|
+
verifiedAt: Date | null;
|
|
3144
|
+
projectId: string;
|
|
3145
|
+
createdAt: Date | null;
|
|
3146
|
+
updatedAt: Date | null;
|
|
3147
|
+
};
|
|
3148
|
+
userIdentifiers: Array<{
|
|
3149
|
+
id: string;
|
|
3150
|
+
userId: string;
|
|
3151
|
+
projectId: string;
|
|
3152
|
+
identifierType: string;
|
|
3153
|
+
identifierValue: string;
|
|
3154
|
+
verifiedAt: Date | null;
|
|
3155
|
+
createdAt: Date | null;
|
|
3156
|
+
updatedAt: Date | null;
|
|
3157
|
+
}>;
|
|
3158
|
+
role: {
|
|
3159
|
+
id: string;
|
|
3160
|
+
name: string;
|
|
3161
|
+
description: string | null;
|
|
3162
|
+
organizationId: string | null;
|
|
3163
|
+
groupId: string;
|
|
3164
|
+
projectId: string;
|
|
3165
|
+
createdAt: Date | null;
|
|
3166
|
+
updatedAt: Date | null;
|
|
3167
|
+
} | null;
|
|
3168
|
+
organization: {
|
|
3169
|
+
id: string;
|
|
3170
|
+
name: string;
|
|
3171
|
+
groupId: string;
|
|
3172
|
+
projectId: string;
|
|
3173
|
+
creatorId: string | null;
|
|
3174
|
+
createdAt: Date | null;
|
|
3175
|
+
updatedAt: Date | null;
|
|
3176
|
+
} | null;
|
|
3177
|
+
group: {
|
|
3178
|
+
id: string;
|
|
3179
|
+
name: string;
|
|
3180
|
+
description: string | null;
|
|
3181
|
+
projectId: string;
|
|
3182
|
+
createdAt: Date | null;
|
|
3183
|
+
updatedAt: Date | null;
|
|
3184
|
+
} | null;
|
|
3185
|
+
permissions: {
|
|
3186
|
+
enabled: Array<string>;
|
|
3187
|
+
disabled: Array<string>;
|
|
3188
|
+
};
|
|
3189
|
+
zones: Array<{
|
|
3190
|
+
id: string;
|
|
3191
|
+
name: string;
|
|
3192
|
+
}>;
|
|
3193
|
+
branches: Array<{
|
|
3194
|
+
id: string;
|
|
3195
|
+
name: string;
|
|
3196
|
+
}>;
|
|
3197
|
+
accessToken: string;
|
|
3198
|
+
refreshToken: string;
|
|
3199
|
+
lastLogin?: Date;
|
|
3200
|
+
};
|
|
3201
|
+
message: string;
|
|
3202
|
+
success: boolean;
|
|
3203
|
+
error?: unknown;
|
|
3204
|
+
meta?: unknown;
|
|
3205
|
+
};
|
|
3206
|
+
};
|
|
3207
|
+
export type PostUsersLoginResponse = PostUsersLoginResponses[keyof PostUsersLoginResponses];
|
|
3208
|
+
export type PostUsersLoginSwitchData = {
|
|
3209
|
+
body?: never;
|
|
3210
|
+
path?: never;
|
|
3211
|
+
query?: {
|
|
3212
|
+
groupId?: string;
|
|
3213
|
+
organizationId?: string;
|
|
3214
|
+
roleId?: string;
|
|
3215
|
+
membershipId?: string;
|
|
3216
|
+
};
|
|
3217
|
+
url: '/users/login/switch';
|
|
3218
|
+
};
|
|
3219
|
+
export type PostUsersLoginSwitchResponses = {
|
|
3220
|
+
/**
|
|
3221
|
+
* User logged in
|
|
3222
|
+
*/
|
|
3223
|
+
200: {
|
|
3224
|
+
data: {
|
|
3225
|
+
user: {
|
|
3226
|
+
id: string;
|
|
3227
|
+
firstName: string;
|
|
3228
|
+
lastName: string;
|
|
3229
|
+
defaultMembershipId: string | null;
|
|
3230
|
+
lastLogin: Date | null;
|
|
3231
|
+
bannedAt: Date | null;
|
|
3232
|
+
verifiedAt: Date | null;
|
|
3233
|
+
projectId: string;
|
|
3234
|
+
createdAt: Date | null;
|
|
3235
|
+
updatedAt: Date | null;
|
|
3236
|
+
};
|
|
3237
|
+
userIdentifiers: Array<{
|
|
3238
|
+
id: string;
|
|
3239
|
+
userId: string;
|
|
3240
|
+
projectId: string;
|
|
3241
|
+
identifierType: string;
|
|
3242
|
+
identifierValue: string;
|
|
3243
|
+
verifiedAt: Date | null;
|
|
3244
|
+
createdAt: Date | null;
|
|
3245
|
+
updatedAt: Date | null;
|
|
3246
|
+
}>;
|
|
3247
|
+
role: {
|
|
3248
|
+
id: string;
|
|
3249
|
+
name: string;
|
|
3250
|
+
description: string | null;
|
|
3251
|
+
organizationId: string | null;
|
|
3252
|
+
groupId: string;
|
|
3253
|
+
projectId: string;
|
|
3254
|
+
createdAt: Date | null;
|
|
3255
|
+
updatedAt: Date | null;
|
|
3256
|
+
} | null;
|
|
3257
|
+
organization: {
|
|
3258
|
+
id: string;
|
|
3259
|
+
name: string;
|
|
3260
|
+
groupId: string;
|
|
3261
|
+
projectId: string;
|
|
3262
|
+
creatorId: string | null;
|
|
3263
|
+
createdAt: Date | null;
|
|
3264
|
+
updatedAt: Date | null;
|
|
3265
|
+
} | null;
|
|
3266
|
+
group: {
|
|
3267
|
+
id: string;
|
|
3268
|
+
name: string;
|
|
3269
|
+
description: string | null;
|
|
3270
|
+
projectId: string;
|
|
3271
|
+
createdAt: Date | null;
|
|
3272
|
+
updatedAt: Date | null;
|
|
3273
|
+
} | null;
|
|
3274
|
+
permissions: {
|
|
3275
|
+
enabled: Array<string>;
|
|
3276
|
+
disabled: Array<string>;
|
|
3277
|
+
};
|
|
3278
|
+
zones: Array<{
|
|
3279
|
+
id: string;
|
|
3280
|
+
name: string;
|
|
3281
|
+
}>;
|
|
3282
|
+
branches: Array<{
|
|
3283
|
+
id: string;
|
|
3284
|
+
name: string;
|
|
3285
|
+
}>;
|
|
3286
|
+
accessToken: string;
|
|
3287
|
+
refreshToken: string;
|
|
3288
|
+
lastLogin?: Date;
|
|
3289
|
+
};
|
|
3290
|
+
message: string;
|
|
3291
|
+
success: boolean;
|
|
3292
|
+
error?: unknown;
|
|
3293
|
+
meta?: unknown;
|
|
3294
|
+
};
|
|
3295
|
+
};
|
|
3296
|
+
export type PostUsersLoginSwitchResponse = PostUsersLoginSwitchResponses[keyof PostUsersLoginSwitchResponses];
|
|
3297
|
+
export type PostUsersRegisterData = {
|
|
3298
|
+
/**
|
|
3299
|
+
* User Register Data
|
|
3300
|
+
*/
|
|
3301
|
+
body: {
|
|
3302
|
+
id?: string;
|
|
3303
|
+
firstName: string;
|
|
3304
|
+
lastName: string;
|
|
3305
|
+
defaultMembershipId?: string | null;
|
|
3306
|
+
lastLogin?: Date | null;
|
|
3307
|
+
bannedAt?: Date | null;
|
|
3308
|
+
verifiedAt?: Date | null;
|
|
3309
|
+
projectId?: string;
|
|
3310
|
+
createdAt?: Date | null;
|
|
3311
|
+
updatedAt?: Date | null;
|
|
3312
|
+
organizationName?: string;
|
|
3313
|
+
identifierType: string;
|
|
3314
|
+
identifierValue: string;
|
|
3315
|
+
password: string;
|
|
3316
|
+
};
|
|
3317
|
+
path?: never;
|
|
3318
|
+
query?: {
|
|
3319
|
+
groupId?: string;
|
|
3320
|
+
organizationId?: string;
|
|
3321
|
+
roleId?: string;
|
|
3322
|
+
inviteToken?: string;
|
|
3323
|
+
};
|
|
3324
|
+
url: '/users/register';
|
|
3325
|
+
};
|
|
3326
|
+
export type PostUsersRegisterResponses = {
|
|
3327
|
+
/**
|
|
3328
|
+
* User registered
|
|
3329
|
+
*/
|
|
3330
|
+
200: {
|
|
3331
|
+
data: {
|
|
3332
|
+
id: string;
|
|
3333
|
+
firstName: string;
|
|
3334
|
+
lastName: string;
|
|
3335
|
+
defaultMembershipId: string | null;
|
|
3336
|
+
lastLogin: Date | null;
|
|
3337
|
+
bannedAt: Date | null;
|
|
3338
|
+
verifiedAt: Date | null;
|
|
3339
|
+
projectId: string;
|
|
3340
|
+
createdAt: Date | null;
|
|
3341
|
+
updatedAt: Date | null;
|
|
3342
|
+
verifyToken: string | null;
|
|
3343
|
+
group?: {
|
|
3344
|
+
id: string;
|
|
3345
|
+
name: string;
|
|
3346
|
+
};
|
|
3347
|
+
organization?: {
|
|
3348
|
+
id: string;
|
|
3349
|
+
name: string;
|
|
3350
|
+
};
|
|
3351
|
+
role?: {
|
|
3352
|
+
id: string;
|
|
3353
|
+
name: string;
|
|
3354
|
+
};
|
|
3355
|
+
};
|
|
3356
|
+
message: string;
|
|
3357
|
+
success: boolean;
|
|
3358
|
+
error?: unknown;
|
|
3359
|
+
meta?: unknown;
|
|
3360
|
+
};
|
|
3361
|
+
};
|
|
3362
|
+
export type PostUsersRegisterResponse = PostUsersRegisterResponses[keyof PostUsersRegisterResponses];
|
|
3363
|
+
export type PostUsersTokenData = {
|
|
3364
|
+
/**
|
|
3365
|
+
* Refresh token
|
|
3366
|
+
*/
|
|
3367
|
+
body: {
|
|
3368
|
+
refreshToken: string;
|
|
3369
|
+
};
|
|
3370
|
+
path?: never;
|
|
3371
|
+
query?: never;
|
|
3372
|
+
url: '/users/token';
|
|
3373
|
+
};
|
|
3374
|
+
export type PostUsersTokenResponses = {
|
|
3375
|
+
/**
|
|
3376
|
+
* New token response
|
|
3377
|
+
*/
|
|
3378
|
+
200: {
|
|
3379
|
+
data: {
|
|
3380
|
+
accessToken: string;
|
|
3381
|
+
refreshToken: string;
|
|
3382
|
+
};
|
|
3383
|
+
message: string;
|
|
3384
|
+
success: boolean;
|
|
3385
|
+
error?: unknown;
|
|
3386
|
+
meta?: unknown;
|
|
3387
|
+
};
|
|
3388
|
+
};
|
|
3389
|
+
export type PostUsersTokenResponse = PostUsersTokenResponses[keyof PostUsersTokenResponses];
|
|
3390
|
+
export type PostUsersLogoutData = {
|
|
3391
|
+
body?: never;
|
|
3392
|
+
path?: never;
|
|
3393
|
+
query?: never;
|
|
3394
|
+
url: '/users/logout';
|
|
3395
|
+
};
|
|
3396
|
+
export type PostUsersLogoutResponses = {
|
|
3397
|
+
/**
|
|
3398
|
+
* User logged out successfully
|
|
3399
|
+
*/
|
|
3400
|
+
200: {
|
|
3401
|
+
data: {
|
|
3402
|
+
[key: string]: unknown;
|
|
3403
|
+
};
|
|
3404
|
+
message: string;
|
|
3405
|
+
success: boolean;
|
|
3406
|
+
error?: unknown;
|
|
3407
|
+
meta?: unknown;
|
|
3408
|
+
};
|
|
3409
|
+
};
|
|
3410
|
+
export type PostUsersLogoutResponse = PostUsersLogoutResponses[keyof PostUsersLogoutResponses];
|
|
3411
|
+
export type GetUsersMeData = {
|
|
3412
|
+
body?: never;
|
|
3413
|
+
path?: never;
|
|
3414
|
+
query?: never;
|
|
3415
|
+
url: '/users/me';
|
|
3416
|
+
};
|
|
3417
|
+
export type GetUsersMeResponses = {
|
|
3418
|
+
/**
|
|
3419
|
+
* User details
|
|
3420
|
+
*/
|
|
3421
|
+
200: {
|
|
3422
|
+
data: {
|
|
3423
|
+
user: {
|
|
3424
|
+
id: string;
|
|
3425
|
+
firstName: string;
|
|
3426
|
+
lastName: string;
|
|
3427
|
+
defaultMembershipId: string | null;
|
|
3428
|
+
lastLogin: Date | null;
|
|
3429
|
+
bannedAt: Date | null;
|
|
3430
|
+
verifiedAt: Date | null;
|
|
3431
|
+
projectId: string;
|
|
3432
|
+
createdAt: Date | null;
|
|
3433
|
+
updatedAt: Date | null;
|
|
3434
|
+
};
|
|
3435
|
+
userIdentifiers: Array<{
|
|
3436
|
+
id: string;
|
|
3437
|
+
userId: string;
|
|
3438
|
+
projectId: string;
|
|
3439
|
+
identifierType: string;
|
|
3440
|
+
identifierValue: string;
|
|
3441
|
+
verifiedAt: Date | null;
|
|
3442
|
+
createdAt: Date | null;
|
|
3443
|
+
updatedAt: Date | null;
|
|
3444
|
+
}>;
|
|
3445
|
+
role: {
|
|
3446
|
+
id: string;
|
|
3447
|
+
name: string;
|
|
3448
|
+
description: string | null;
|
|
3449
|
+
organizationId: string | null;
|
|
3450
|
+
groupId: string;
|
|
3451
|
+
projectId: string;
|
|
3452
|
+
createdAt: Date | null;
|
|
3453
|
+
updatedAt: Date | null;
|
|
3454
|
+
} | null;
|
|
3455
|
+
organization: {
|
|
3456
|
+
id: string;
|
|
3457
|
+
name: string;
|
|
3458
|
+
groupId: string;
|
|
3459
|
+
projectId: string;
|
|
3460
|
+
creatorId: string | null;
|
|
3461
|
+
createdAt: Date | null;
|
|
3462
|
+
updatedAt: Date | null;
|
|
3463
|
+
} | null;
|
|
3464
|
+
group: {
|
|
3465
|
+
id: string;
|
|
3466
|
+
name: string;
|
|
3467
|
+
description: string | null;
|
|
3468
|
+
projectId: string;
|
|
3469
|
+
createdAt: Date | null;
|
|
3470
|
+
updatedAt: Date | null;
|
|
3471
|
+
} | null;
|
|
3472
|
+
permissions: {
|
|
3473
|
+
enabled: Array<string>;
|
|
3474
|
+
disabled: Array<string>;
|
|
3475
|
+
};
|
|
3476
|
+
zones: Array<{
|
|
3477
|
+
id: string;
|
|
3478
|
+
name: string;
|
|
3479
|
+
}>;
|
|
3480
|
+
branches: Array<{
|
|
3481
|
+
id: string;
|
|
3482
|
+
name: string;
|
|
3483
|
+
}>;
|
|
3484
|
+
};
|
|
3485
|
+
message: string;
|
|
3486
|
+
success: boolean;
|
|
3487
|
+
error?: unknown;
|
|
3488
|
+
meta?: unknown;
|
|
3489
|
+
};
|
|
3490
|
+
};
|
|
3491
|
+
export type GetUsersMeResponse = GetUsersMeResponses[keyof GetUsersMeResponses];
|
|
3492
|
+
export type GetUsersCustomActiveData = {
|
|
3493
|
+
body?: never;
|
|
3494
|
+
path?: never;
|
|
3495
|
+
query?: never;
|
|
3496
|
+
url: '/users/custom/active';
|
|
3497
|
+
};
|
|
3498
|
+
export type GetUsersCustomActiveResponses = {
|
|
3499
|
+
/**
|
|
3500
|
+
* Active users list
|
|
3501
|
+
*/
|
|
3502
|
+
200: {
|
|
3503
|
+
data: Array<{
|
|
3504
|
+
id: string;
|
|
3505
|
+
firstName: string;
|
|
3506
|
+
lastName: string;
|
|
3507
|
+
defaultMembershipId: string | null;
|
|
3508
|
+
lastLogin: Date | null;
|
|
3509
|
+
bannedAt: Date | null;
|
|
3510
|
+
verifiedAt: Date | null;
|
|
3511
|
+
projectId: string;
|
|
3512
|
+
createdAt: Date | null;
|
|
3513
|
+
updatedAt: Date | null;
|
|
3514
|
+
}>;
|
|
3515
|
+
message: string;
|
|
3516
|
+
success: boolean;
|
|
3517
|
+
error?: unknown;
|
|
3518
|
+
meta?: unknown;
|
|
3519
|
+
};
|
|
3520
|
+
};
|
|
3521
|
+
export type GetUsersCustomActiveResponse = GetUsersCustomActiveResponses[keyof GetUsersCustomActiveResponses];
|
|
3522
|
+
export type GetUsersCustomBannedData = {
|
|
3523
|
+
body?: never;
|
|
3524
|
+
path?: never;
|
|
3525
|
+
query?: never;
|
|
3526
|
+
url: '/users/custom/banned';
|
|
3527
|
+
};
|
|
3528
|
+
export type GetUsersCustomBannedResponses = {
|
|
3529
|
+
/**
|
|
3530
|
+
* Banned users list
|
|
3531
|
+
*/
|
|
3532
|
+
200: {
|
|
3533
|
+
data: Array<{
|
|
3534
|
+
id: string;
|
|
3535
|
+
firstName: string;
|
|
3536
|
+
lastName: string;
|
|
3537
|
+
defaultMembershipId: string | null;
|
|
3538
|
+
lastLogin: Date | null;
|
|
3539
|
+
bannedAt: Date | null;
|
|
3540
|
+
verifiedAt: Date | null;
|
|
3541
|
+
projectId: string;
|
|
3542
|
+
createdAt: Date | null;
|
|
3543
|
+
updatedAt: Date | null;
|
|
3544
|
+
}>;
|
|
3545
|
+
message: string;
|
|
3546
|
+
success: boolean;
|
|
3547
|
+
error?: unknown;
|
|
3548
|
+
meta?: unknown;
|
|
3549
|
+
};
|
|
3550
|
+
};
|
|
3551
|
+
export type GetUsersCustomBannedResponse = GetUsersCustomBannedResponses[keyof GetUsersCustomBannedResponses];
|
|
3552
|
+
export type GetUsersCustomUnverifiedData = {
|
|
3553
|
+
body?: never;
|
|
3554
|
+
path?: never;
|
|
3555
|
+
query?: never;
|
|
3556
|
+
url: '/users/custom/unverified';
|
|
3557
|
+
};
|
|
3558
|
+
export type GetUsersCustomUnverifiedResponses = {
|
|
3559
|
+
/**
|
|
3560
|
+
* Unverified users list
|
|
3561
|
+
*/
|
|
3562
|
+
200: {
|
|
3563
|
+
data: Array<{
|
|
3564
|
+
id: string;
|
|
3565
|
+
firstName: string;
|
|
3566
|
+
lastName: string;
|
|
3567
|
+
defaultMembershipId: string | null;
|
|
3568
|
+
lastLogin: Date | null;
|
|
3569
|
+
bannedAt: Date | null;
|
|
3570
|
+
verifiedAt: Date | null;
|
|
3571
|
+
projectId: string;
|
|
3572
|
+
createdAt: Date | null;
|
|
3573
|
+
updatedAt: Date | null;
|
|
3574
|
+
}>;
|
|
3575
|
+
message: string;
|
|
3576
|
+
success: boolean;
|
|
3577
|
+
error?: unknown;
|
|
3578
|
+
meta?: unknown;
|
|
3579
|
+
};
|
|
3580
|
+
};
|
|
3581
|
+
export type GetUsersCustomUnverifiedResponse = GetUsersCustomUnverifiedResponses[keyof GetUsersCustomUnverifiedResponses];
|
|
3582
|
+
export type GetUsersCustomInactiveData = {
|
|
3583
|
+
body?: never;
|
|
3584
|
+
path?: never;
|
|
3585
|
+
query: {
|
|
3586
|
+
minDays: number;
|
|
3587
|
+
maxDays?: number;
|
|
3588
|
+
verified?: string;
|
|
3589
|
+
page?: number;
|
|
3590
|
+
size?: number;
|
|
3591
|
+
};
|
|
3592
|
+
url: '/users/custom/inactive';
|
|
3593
|
+
};
|
|
3594
|
+
export type GetUsersCustomInactiveResponses = {
|
|
3595
|
+
/**
|
|
3596
|
+
* Inactive users list
|
|
3597
|
+
*/
|
|
3598
|
+
200: {
|
|
3599
|
+
data: Array<{
|
|
3600
|
+
id: string;
|
|
3601
|
+
firstName: string;
|
|
3602
|
+
lastName: string;
|
|
3603
|
+
defaultMembershipId: string | null;
|
|
3604
|
+
lastLogin: Date | null;
|
|
3605
|
+
bannedAt: Date | null;
|
|
3606
|
+
verifiedAt: Date | null;
|
|
3607
|
+
projectId: string;
|
|
3608
|
+
createdAt: Date | null;
|
|
3609
|
+
updatedAt: Date | null;
|
|
3610
|
+
}>;
|
|
3611
|
+
message: string;
|
|
3612
|
+
success: boolean;
|
|
3613
|
+
error?: unknown;
|
|
3614
|
+
meta?: unknown;
|
|
3615
|
+
};
|
|
3616
|
+
};
|
|
3617
|
+
export type GetUsersCustomInactiveResponse = GetUsersCustomInactiveResponses[keyof GetUsersCustomInactiveResponses];
|
|
3618
|
+
export type DeleteUsersData = {
|
|
3619
|
+
/**
|
|
3620
|
+
* User IDs to delete
|
|
3621
|
+
*/
|
|
3622
|
+
body?: {
|
|
3623
|
+
ids: Array<string>;
|
|
3624
|
+
};
|
|
3625
|
+
path?: never;
|
|
3626
|
+
query?: never;
|
|
3627
|
+
url: '/users';
|
|
3628
|
+
};
|
|
3629
|
+
export type DeleteUsersErrors = {
|
|
3630
|
+
/**
|
|
3631
|
+
* Invalid request
|
|
3632
|
+
*/
|
|
3633
|
+
400: {
|
|
3634
|
+
data: {
|
|
3635
|
+
[key: string]: unknown;
|
|
3636
|
+
};
|
|
3637
|
+
message: string;
|
|
3638
|
+
success: boolean;
|
|
3639
|
+
error?: unknown;
|
|
3640
|
+
meta?: unknown;
|
|
3641
|
+
};
|
|
3642
|
+
};
|
|
3643
|
+
export type DeleteUsersError = DeleteUsersErrors[keyof DeleteUsersErrors];
|
|
3644
|
+
export type DeleteUsersResponses = {
|
|
3645
|
+
/**
|
|
3646
|
+
* Users deleted successfully
|
|
3647
|
+
*/
|
|
3648
|
+
200: {
|
|
3649
|
+
data: {
|
|
3650
|
+
deletedCount: number;
|
|
3651
|
+
deletedIds: Array<string>;
|
|
3652
|
+
};
|
|
3653
|
+
message: string;
|
|
3654
|
+
success: boolean;
|
|
3655
|
+
error?: unknown;
|
|
3656
|
+
meta?: unknown;
|
|
3657
|
+
};
|
|
3658
|
+
};
|
|
3659
|
+
export type DeleteUsersResponse = DeleteUsersResponses[keyof DeleteUsersResponses];
|
|
3660
|
+
export type GetUsersData = {
|
|
3661
|
+
body?: never;
|
|
3662
|
+
path?: never;
|
|
3663
|
+
query?: {
|
|
3664
|
+
id?: string;
|
|
3665
|
+
firstName?: string;
|
|
3666
|
+
lastName?: string;
|
|
3667
|
+
defaultMembershipId?: string | null;
|
|
3668
|
+
lastLogin?: Date | null;
|
|
3669
|
+
bannedAt?: Date | null;
|
|
3670
|
+
verifiedAt?: Date | null;
|
|
3671
|
+
projectId?: string;
|
|
3672
|
+
createdAt?: Date | null;
|
|
3673
|
+
updatedAt?: Date | null;
|
|
3674
|
+
search?: string;
|
|
3675
|
+
ids?: Array<string>;
|
|
3676
|
+
orderBy?: string;
|
|
3677
|
+
sortOrder?: 'asc' | 'desc';
|
|
3678
|
+
page?: number;
|
|
3679
|
+
size?: number;
|
|
3680
|
+
};
|
|
3681
|
+
url: '/users';
|
|
3682
|
+
};
|
|
3683
|
+
export type GetUsersResponses = {
|
|
3684
|
+
/**
|
|
3685
|
+
* User List
|
|
3686
|
+
*/
|
|
3687
|
+
200: {
|
|
3688
|
+
data: Array<{
|
|
3689
|
+
id: string;
|
|
3690
|
+
firstName: string;
|
|
3691
|
+
lastName: string;
|
|
3692
|
+
defaultMembershipId: string | null;
|
|
3693
|
+
lastLogin: Date | null;
|
|
3694
|
+
bannedAt: Date | null;
|
|
3695
|
+
verifiedAt: Date | null;
|
|
3696
|
+
projectId: string;
|
|
3697
|
+
createdAt: Date | null;
|
|
3698
|
+
updatedAt: Date | null;
|
|
3699
|
+
}>;
|
|
3700
|
+
message: string;
|
|
3701
|
+
success: boolean;
|
|
3702
|
+
error?: unknown;
|
|
3703
|
+
meta?: unknown;
|
|
3704
|
+
pagination: {
|
|
3705
|
+
page: number;
|
|
3706
|
+
size: number;
|
|
3707
|
+
totalItems: number;
|
|
3708
|
+
totalPages: number;
|
|
3709
|
+
};
|
|
3710
|
+
};
|
|
3711
|
+
};
|
|
3712
|
+
export type GetUsersResponse = GetUsersResponses[keyof GetUsersResponses];
|
|
3713
|
+
export type PostUsersData = {
|
|
3714
|
+
/**
|
|
3715
|
+
* Input
|
|
3716
|
+
*/
|
|
3717
|
+
body?: {
|
|
3718
|
+
id?: string;
|
|
3719
|
+
firstName: string;
|
|
3720
|
+
lastName: string;
|
|
3721
|
+
defaultMembershipId?: string | null;
|
|
3722
|
+
lastLogin?: Date | null;
|
|
3723
|
+
bannedAt?: Date | null;
|
|
3724
|
+
verifiedAt?: Date | null;
|
|
3725
|
+
createdAt?: Date | null;
|
|
3726
|
+
updatedAt?: Date | null;
|
|
3727
|
+
};
|
|
3728
|
+
path?: never;
|
|
3729
|
+
query?: never;
|
|
3730
|
+
url: '/users';
|
|
3731
|
+
};
|
|
3732
|
+
export type PostUsersResponses = {
|
|
3733
|
+
/**
|
|
3734
|
+
* Item
|
|
3735
|
+
*/
|
|
3736
|
+
200: {
|
|
3737
|
+
data: {
|
|
3738
|
+
id: string;
|
|
3739
|
+
firstName: string;
|
|
3740
|
+
lastName: string;
|
|
3741
|
+
defaultMembershipId: string | null;
|
|
3742
|
+
lastLogin: Date | null;
|
|
3743
|
+
bannedAt: Date | null;
|
|
3744
|
+
verifiedAt: Date | null;
|
|
3745
|
+
projectId: string;
|
|
3746
|
+
createdAt: Date | null;
|
|
3747
|
+
updatedAt: Date | null;
|
|
3748
|
+
};
|
|
3749
|
+
message: string;
|
|
3750
|
+
success: boolean;
|
|
3751
|
+
error?: unknown;
|
|
3752
|
+
meta?: unknown;
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
export type PostUsersResponse = PostUsersResponses[keyof PostUsersResponses];
|
|
3756
|
+
export type DeleteUsersByIdData = {
|
|
3757
|
+
body?: never;
|
|
3758
|
+
path: {
|
|
3759
|
+
id: string;
|
|
3760
|
+
};
|
|
3761
|
+
query?: never;
|
|
3762
|
+
url: '/users/{id}';
|
|
3763
|
+
};
|
|
3764
|
+
export type DeleteUsersByIdResponses = {
|
|
3765
|
+
/**
|
|
3766
|
+
* Deleted User
|
|
3767
|
+
*/
|
|
3768
|
+
200: {
|
|
3769
|
+
data: {
|
|
3770
|
+
id: string;
|
|
3771
|
+
firstName: string;
|
|
3772
|
+
lastName: string;
|
|
3773
|
+
defaultMembershipId: string | null;
|
|
3774
|
+
lastLogin: Date | null;
|
|
3775
|
+
bannedAt: Date | null;
|
|
3776
|
+
verifiedAt: Date | null;
|
|
3777
|
+
projectId: string;
|
|
3778
|
+
createdAt: Date | null;
|
|
3779
|
+
updatedAt: Date | null;
|
|
3780
|
+
};
|
|
3781
|
+
message: string;
|
|
3782
|
+
success: boolean;
|
|
3783
|
+
error?: unknown;
|
|
3784
|
+
meta?: unknown;
|
|
3785
|
+
};
|
|
3786
|
+
};
|
|
3787
|
+
export type DeleteUsersByIdResponse = DeleteUsersByIdResponses[keyof DeleteUsersByIdResponses];
|
|
3788
|
+
export type GetUsersByIdData = {
|
|
3789
|
+
body?: never;
|
|
3790
|
+
path: {
|
|
3791
|
+
id: string;
|
|
3792
|
+
};
|
|
3793
|
+
query?: never;
|
|
3794
|
+
url: '/users/{id}';
|
|
3795
|
+
};
|
|
3796
|
+
export type GetUsersByIdResponses = {
|
|
3797
|
+
/**
|
|
3798
|
+
* Item
|
|
3799
|
+
*/
|
|
3800
|
+
200: {
|
|
3801
|
+
data: {
|
|
3802
|
+
id: string;
|
|
3803
|
+
firstName: string;
|
|
3804
|
+
lastName: string;
|
|
3805
|
+
defaultMembershipId: string | null;
|
|
3806
|
+
lastLogin: Date | null;
|
|
3807
|
+
bannedAt: Date | null;
|
|
3808
|
+
verifiedAt: Date | null;
|
|
3809
|
+
projectId: string;
|
|
3810
|
+
createdAt: Date | null;
|
|
3811
|
+
updatedAt: Date | null;
|
|
3812
|
+
};
|
|
3813
|
+
message: string;
|
|
3814
|
+
success: boolean;
|
|
3815
|
+
error?: unknown;
|
|
3816
|
+
meta?: unknown;
|
|
3817
|
+
};
|
|
3818
|
+
};
|
|
3819
|
+
export type GetUsersByIdResponse = GetUsersByIdResponses[keyof GetUsersByIdResponses];
|
|
3820
|
+
export type PutUsersByIdData = {
|
|
3821
|
+
/**
|
|
3822
|
+
* Input
|
|
3823
|
+
*/
|
|
3824
|
+
body?: {
|
|
3825
|
+
id?: string;
|
|
3826
|
+
firstName?: string;
|
|
3827
|
+
lastName?: string;
|
|
3828
|
+
defaultMembershipId?: string | null;
|
|
3829
|
+
lastLogin?: Date | null;
|
|
3830
|
+
bannedAt?: Date | null;
|
|
3831
|
+
verifiedAt?: Date | null;
|
|
3832
|
+
projectId?: string;
|
|
3833
|
+
createdAt?: Date | null;
|
|
3834
|
+
updatedAt?: Date | null;
|
|
3835
|
+
};
|
|
3836
|
+
path: {
|
|
3837
|
+
id: string;
|
|
3838
|
+
};
|
|
3839
|
+
query?: never;
|
|
3840
|
+
url: '/users/{id}';
|
|
3841
|
+
};
|
|
3842
|
+
export type PutUsersByIdResponses = {
|
|
3843
|
+
/**
|
|
3844
|
+
* Item
|
|
3845
|
+
*/
|
|
3846
|
+
200: {
|
|
3847
|
+
data: {
|
|
3848
|
+
id: string;
|
|
3849
|
+
firstName: string;
|
|
3850
|
+
lastName: string;
|
|
3851
|
+
defaultMembershipId: string | null;
|
|
3852
|
+
lastLogin: Date | null;
|
|
3853
|
+
bannedAt: Date | null;
|
|
3854
|
+
verifiedAt: Date | null;
|
|
3855
|
+
projectId: string;
|
|
3856
|
+
createdAt: Date | null;
|
|
3857
|
+
updatedAt: Date | null;
|
|
3858
|
+
};
|
|
3859
|
+
message: string;
|
|
3860
|
+
success: boolean;
|
|
3861
|
+
error?: unknown;
|
|
3862
|
+
meta?: unknown;
|
|
3863
|
+
};
|
|
3864
|
+
};
|
|
3865
|
+
export type PutUsersByIdResponse = PutUsersByIdResponses[keyof PutUsersByIdResponses];
|
|
3866
|
+
export type PutUsersByIdChangeIdData = {
|
|
3867
|
+
/**
|
|
3868
|
+
* New User ID payload
|
|
3869
|
+
*/
|
|
3870
|
+
body?: {
|
|
3871
|
+
newId: string;
|
|
3872
|
+
};
|
|
3873
|
+
path: {
|
|
3874
|
+
id: string;
|
|
3875
|
+
};
|
|
3876
|
+
query?: never;
|
|
3877
|
+
url: '/users/{id}/change-id';
|
|
3878
|
+
};
|
|
3879
|
+
export type PutUsersByIdChangeIdResponses = {
|
|
3880
|
+
/**
|
|
3881
|
+
* Updated User ID
|
|
3882
|
+
*/
|
|
3883
|
+
200: {
|
|
3884
|
+
data: {
|
|
3885
|
+
id: string;
|
|
3886
|
+
};
|
|
3887
|
+
message: string;
|
|
3888
|
+
success: boolean;
|
|
3889
|
+
error?: unknown;
|
|
3890
|
+
meta?: unknown;
|
|
3891
|
+
};
|
|
3892
|
+
};
|
|
3893
|
+
export type PutUsersByIdChangeIdResponse = PutUsersByIdChangeIdResponses[keyof PutUsersByIdChangeIdResponses];
|
|
3894
|
+
export type GetOrganizationsByOrganizationIdZonesMyData = {
|
|
3895
|
+
body?: never;
|
|
3896
|
+
path: {
|
|
3897
|
+
organizationId: string;
|
|
3898
|
+
};
|
|
3899
|
+
query?: {
|
|
3900
|
+
id?: string;
|
|
3901
|
+
name?: string;
|
|
3902
|
+
description?: string | null;
|
|
3903
|
+
organizationId?: string | null;
|
|
3904
|
+
createdAt?: Date | null;
|
|
3905
|
+
updatedAt?: Date | null;
|
|
3906
|
+
search?: string;
|
|
3907
|
+
ids?: Array<string>;
|
|
3908
|
+
orderBy?: string;
|
|
3909
|
+
sortOrder?: 'asc' | 'desc';
|
|
3910
|
+
page?: number;
|
|
3911
|
+
size?: number;
|
|
3912
|
+
};
|
|
3913
|
+
url: '/organizations/{organizationId}/zones/my';
|
|
3914
|
+
};
|
|
3915
|
+
export type GetOrganizationsByOrganizationIdZonesMyResponses = {
|
|
3916
|
+
/**
|
|
3917
|
+
* Zone List
|
|
3918
|
+
*/
|
|
3919
|
+
200: {
|
|
3920
|
+
data: Array<{
|
|
3921
|
+
id: string;
|
|
3922
|
+
name: string;
|
|
3923
|
+
description: string | null;
|
|
3924
|
+
organizationId: string | null;
|
|
3925
|
+
createdAt: Date | null;
|
|
3926
|
+
updatedAt: Date | null;
|
|
3927
|
+
}>;
|
|
3928
|
+
message: string;
|
|
3929
|
+
success: boolean;
|
|
3930
|
+
error?: unknown;
|
|
3931
|
+
meta?: unknown;
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3934
|
+
export type GetOrganizationsByOrganizationIdZonesMyResponse = GetOrganizationsByOrganizationIdZonesMyResponses[keyof GetOrganizationsByOrganizationIdZonesMyResponses];
|
|
3935
|
+
export type GetOrganizationsByOrganizationIdZonesData = {
|
|
3936
|
+
body?: never;
|
|
3937
|
+
path: {
|
|
3938
|
+
organizationId: string;
|
|
3939
|
+
};
|
|
3940
|
+
query?: {
|
|
3941
|
+
id?: string;
|
|
3942
|
+
name?: string;
|
|
3943
|
+
description?: string | null;
|
|
3944
|
+
organizationId?: string | null;
|
|
3945
|
+
createdAt?: Date | null;
|
|
3946
|
+
updatedAt?: Date | null;
|
|
3947
|
+
search?: string;
|
|
3948
|
+
ids?: Array<string>;
|
|
3949
|
+
orderBy?: string;
|
|
3950
|
+
sortOrder?: 'asc' | 'desc';
|
|
3951
|
+
page?: number;
|
|
3952
|
+
size?: number;
|
|
3953
|
+
};
|
|
3954
|
+
url: '/organizations/{organizationId}/zones';
|
|
3955
|
+
};
|
|
3956
|
+
export type GetOrganizationsByOrganizationIdZonesResponses = {
|
|
3957
|
+
/**
|
|
3958
|
+
* Zone List
|
|
3959
|
+
*/
|
|
3960
|
+
200: {
|
|
3961
|
+
data: Array<{
|
|
3962
|
+
id: string;
|
|
3963
|
+
name: string;
|
|
3964
|
+
description: string | null;
|
|
3965
|
+
organizationId: string | null;
|
|
3966
|
+
createdAt: Date | null;
|
|
3967
|
+
updatedAt: Date | null;
|
|
3968
|
+
}>;
|
|
3969
|
+
message: string;
|
|
3970
|
+
success: boolean;
|
|
3971
|
+
error?: unknown;
|
|
3972
|
+
meta?: unknown;
|
|
3973
|
+
};
|
|
3974
|
+
};
|
|
3975
|
+
export type GetOrganizationsByOrganizationIdZonesResponse = GetOrganizationsByOrganizationIdZonesResponses[keyof GetOrganizationsByOrganizationIdZonesResponses];
|
|
3976
|
+
export type PostOrganizationsByOrganizationIdZonesData = {
|
|
3977
|
+
/**
|
|
3978
|
+
* Input
|
|
3979
|
+
*/
|
|
3980
|
+
body?: {
|
|
3981
|
+
id?: string;
|
|
3982
|
+
name: string;
|
|
3983
|
+
description?: string | null;
|
|
3984
|
+
organizationId?: string | null;
|
|
3985
|
+
createdAt?: Date | null;
|
|
3986
|
+
updatedAt?: Date | null;
|
|
3987
|
+
};
|
|
3988
|
+
path: {
|
|
3989
|
+
organizationId: string;
|
|
3990
|
+
};
|
|
3991
|
+
query?: never;
|
|
3992
|
+
url: '/organizations/{organizationId}/zones';
|
|
3993
|
+
};
|
|
3994
|
+
export type PostOrganizationsByOrganizationIdZonesResponses = {
|
|
3995
|
+
/**
|
|
3996
|
+
* Item
|
|
3997
|
+
*/
|
|
3998
|
+
200: {
|
|
3999
|
+
data: {
|
|
4000
|
+
id: string;
|
|
4001
|
+
name: string;
|
|
4002
|
+
description: string | null;
|
|
4003
|
+
organizationId: string | null;
|
|
4004
|
+
createdAt: Date | null;
|
|
4005
|
+
updatedAt: Date | null;
|
|
4006
|
+
};
|
|
4007
|
+
message: string;
|
|
4008
|
+
success: boolean;
|
|
4009
|
+
error?: unknown;
|
|
4010
|
+
meta?: unknown;
|
|
4011
|
+
};
|
|
4012
|
+
};
|
|
4013
|
+
export type PostOrganizationsByOrganizationIdZonesResponse = PostOrganizationsByOrganizationIdZonesResponses[keyof PostOrganizationsByOrganizationIdZonesResponses];
|
|
4014
|
+
export type DeleteOrganizationsByOrganizationIdZonesByIdData = {
|
|
4015
|
+
body?: never;
|
|
4016
|
+
path: {
|
|
4017
|
+
id: string;
|
|
4018
|
+
organizationId: string;
|
|
4019
|
+
};
|
|
4020
|
+
query?: never;
|
|
4021
|
+
url: '/organizations/{organizationId}/zones/{id}';
|
|
4022
|
+
};
|
|
4023
|
+
export type DeleteOrganizationsByOrganizationIdZonesByIdResponses = {
|
|
4024
|
+
/**
|
|
4025
|
+
* Deleted Zone
|
|
4026
|
+
*/
|
|
4027
|
+
200: {
|
|
4028
|
+
data: {
|
|
4029
|
+
id: string;
|
|
4030
|
+
name: string;
|
|
4031
|
+
description: string | null;
|
|
4032
|
+
organizationId: string | null;
|
|
4033
|
+
createdAt: Date | null;
|
|
4034
|
+
updatedAt: Date | null;
|
|
4035
|
+
};
|
|
4036
|
+
message: string;
|
|
4037
|
+
success: boolean;
|
|
4038
|
+
error?: unknown;
|
|
4039
|
+
meta?: unknown;
|
|
4040
|
+
};
|
|
4041
|
+
};
|
|
4042
|
+
export type DeleteOrganizationsByOrganizationIdZonesByIdResponse = DeleteOrganizationsByOrganizationIdZonesByIdResponses[keyof DeleteOrganizationsByOrganizationIdZonesByIdResponses];
|
|
4043
|
+
export type GetOrganizationsByOrganizationIdZonesByIdData = {
|
|
4044
|
+
body?: never;
|
|
4045
|
+
path: {
|
|
4046
|
+
id: string;
|
|
4047
|
+
organizationId: string;
|
|
4048
|
+
};
|
|
4049
|
+
query?: never;
|
|
4050
|
+
url: '/organizations/{organizationId}/zones/{id}';
|
|
4051
|
+
};
|
|
4052
|
+
export type GetOrganizationsByOrganizationIdZonesByIdResponses = {
|
|
4053
|
+
/**
|
|
4054
|
+
* Item
|
|
4055
|
+
*/
|
|
4056
|
+
200: {
|
|
4057
|
+
data: {
|
|
4058
|
+
id: string;
|
|
4059
|
+
name: string;
|
|
4060
|
+
description: string | null;
|
|
4061
|
+
organizationId: string | null;
|
|
4062
|
+
createdAt: Date | null;
|
|
4063
|
+
updatedAt: Date | null;
|
|
4064
|
+
};
|
|
4065
|
+
message: string;
|
|
4066
|
+
success: boolean;
|
|
4067
|
+
error?: unknown;
|
|
4068
|
+
meta?: unknown;
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4071
|
+
export type GetOrganizationsByOrganizationIdZonesByIdResponse = GetOrganizationsByOrganizationIdZonesByIdResponses[keyof GetOrganizationsByOrganizationIdZonesByIdResponses];
|
|
4072
|
+
export type PutOrganizationsByOrganizationIdZonesByIdData = {
|
|
4073
|
+
/**
|
|
4074
|
+
* Input
|
|
4075
|
+
*/
|
|
4076
|
+
body?: {
|
|
4077
|
+
id?: string;
|
|
4078
|
+
name?: string;
|
|
4079
|
+
description?: string | null;
|
|
4080
|
+
organizationId?: string | null;
|
|
4081
|
+
createdAt?: Date | null;
|
|
4082
|
+
updatedAt?: Date | null;
|
|
4083
|
+
};
|
|
4084
|
+
path: {
|
|
4085
|
+
id: string;
|
|
4086
|
+
organizationId: string;
|
|
4087
|
+
};
|
|
4088
|
+
query?: never;
|
|
4089
|
+
url: '/organizations/{organizationId}/zones/{id}';
|
|
4090
|
+
};
|
|
4091
|
+
export type PutOrganizationsByOrganizationIdZonesByIdResponses = {
|
|
4092
|
+
/**
|
|
4093
|
+
* Item
|
|
4094
|
+
*/
|
|
4095
|
+
200: {
|
|
4096
|
+
data: {
|
|
4097
|
+
id: string;
|
|
4098
|
+
name: string;
|
|
4099
|
+
description: string | null;
|
|
4100
|
+
organizationId: string | null;
|
|
4101
|
+
createdAt: Date | null;
|
|
4102
|
+
updatedAt: Date | null;
|
|
4103
|
+
};
|
|
4104
|
+
message: string;
|
|
4105
|
+
success: boolean;
|
|
4106
|
+
error?: unknown;
|
|
4107
|
+
meta?: unknown;
|
|
4108
|
+
};
|
|
4109
|
+
};
|
|
4110
|
+
export type PutOrganizationsByOrganizationIdZonesByIdResponse = PutOrganizationsByOrganizationIdZonesByIdResponses[keyof PutOrganizationsByOrganizationIdZonesByIdResponses];
|
|
4111
|
+
export type PutOrganizationsByOrganizationIdZonesByIdChangeIdData = {
|
|
4112
|
+
/**
|
|
4113
|
+
* New Zone ID payload
|
|
4114
|
+
*/
|
|
4115
|
+
body?: {
|
|
4116
|
+
newId: string;
|
|
4117
|
+
};
|
|
4118
|
+
path: {
|
|
4119
|
+
id: string;
|
|
4120
|
+
organizationId: string;
|
|
4121
|
+
};
|
|
4122
|
+
query?: never;
|
|
4123
|
+
url: '/organizations/{organizationId}/zones/{id}/change-id';
|
|
4124
|
+
};
|
|
4125
|
+
export type PutOrganizationsByOrganizationIdZonesByIdChangeIdResponses = {
|
|
4126
|
+
/**
|
|
4127
|
+
* Updated Zone ID
|
|
4128
|
+
*/
|
|
4129
|
+
200: {
|
|
4130
|
+
data: {
|
|
4131
|
+
id: string;
|
|
4132
|
+
};
|
|
4133
|
+
message: string;
|
|
4134
|
+
success: boolean;
|
|
4135
|
+
error?: unknown;
|
|
4136
|
+
meta?: unknown;
|
|
4137
|
+
};
|
|
4138
|
+
};
|
|
4139
|
+
export type PutOrganizationsByOrganizationIdZonesByIdChangeIdResponse = PutOrganizationsByOrganizationIdZonesByIdChangeIdResponses[keyof PutOrganizationsByOrganizationIdZonesByIdChangeIdResponses];
|