@komune-io/im-user-domain 0.22.0-alpha.fc04425 → 0.23.0-alpha.86ada5a

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.
@@ -0,0 +1,1144 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare interface KtList<E> /* extends Collection<E> */ {
4
+ asJsReadonlyArrayView(): ReadonlyArray<E>;
5
+ readonly __doNotUseOrImplementIt: {
6
+ readonly "kotlin.collections.KtList": unique symbol;
7
+ };
8
+ }
9
+ export declare namespace KtList {
10
+ function fromJsArray<E>(array: ReadonlyArray<E>): KtList<E>;
11
+ }
12
+ export declare interface KtMap<K, V> {
13
+ asJsReadonlyMapView(): ReadonlyMap<K, V>;
14
+ readonly __doNotUseOrImplementIt: {
15
+ readonly "kotlin.collections.KtMap": unique symbol;
16
+ };
17
+ }
18
+ export declare namespace KtMap {
19
+ function fromJsMap<K, V>(map: ReadonlyMap<K, V>): KtMap<K, V>;
20
+ }
21
+ export declare interface UserDeleteCommandDTO {
22
+ readonly id: string;
23
+ readonly __doNotUseOrImplementIt: {
24
+ readonly "io.komune.im.core.user.domain.command.UserDeleteCommandDTO": unique symbol;
25
+ };
26
+ }
27
+ export declare interface UserDeletedEventDTO {
28
+ readonly id: string;
29
+ readonly __doNotUseOrImplementIt: {
30
+ readonly "io.komune.im.core.user.domain.command.UserDeletedEventDTO": unique symbol;
31
+ };
32
+ }
33
+ export declare abstract class ImMfaPasswordOtpFlowAcr {
34
+ private constructor();
35
+ static get PASSWORD_ONLY(): ImMfaPasswordOtpFlowAcr & {
36
+ get name(): "PASSWORD_ONLY";
37
+ get ordinal(): 0;
38
+ };
39
+ static get PASSWORD_OTP(): ImMfaPasswordOtpFlowAcr & {
40
+ get name(): "PASSWORD_OTP";
41
+ get ordinal(): 1;
42
+ };
43
+ get name(): "PASSWORD_ONLY" | "PASSWORD_OTP";
44
+ get ordinal(): 0 | 1;
45
+ get key(): string;
46
+ get level(): number;
47
+ static values(): Array<ImMfaPasswordOtpFlowAcr>;
48
+ static valueOf(value: string): ImMfaPasswordOtpFlowAcr;
49
+ }
50
+ export declare namespace ImMfaPasswordOtpFlowAcr {
51
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
52
+ namespace $metadata$ {
53
+ const constructor: abstract new () => ImMfaPasswordOtpFlowAcr;
54
+ }
55
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
56
+ private constructor();
57
+ }
58
+ namespace Companion {
59
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
60
+ namespace $metadata$ {
61
+ abstract class constructor {
62
+ asKeycloakMap(): KtMap<string, string>;
63
+ private constructor();
64
+ }
65
+ }
66
+ }
67
+ }
68
+ export declare interface Command extends Message {
69
+ readonly __doNotUseOrImplementIt: {
70
+ readonly "f2.dsl.cqrs.Command": unique symbol;
71
+ } & Message["__doNotUseOrImplementIt"];
72
+ }
73
+ export declare interface Event extends Message {
74
+ readonly __doNotUseOrImplementIt: {
75
+ readonly "f2.dsl.cqrs.Event": unique symbol;
76
+ } & Message["__doNotUseOrImplementIt"];
77
+ }
78
+ export declare interface Message {
79
+ readonly __doNotUseOrImplementIt: {
80
+ readonly "f2.dsl.cqrs.Message": unique symbol;
81
+ };
82
+ }
83
+ export declare interface Problem extends Message {
84
+ readonly __doNotUseOrImplementIt: {
85
+ readonly "f2.dsl.cqrs.Problem": unique symbol;
86
+ } & Message["__doNotUseOrImplementIt"];
87
+ }
88
+ export declare interface Query extends Message {
89
+ readonly __doNotUseOrImplementIt: {
90
+ readonly "f2.dsl.cqrs.Query": unique symbol;
91
+ } & Message["__doNotUseOrImplementIt"];
92
+ }
93
+ export declare interface EnvelopeDTO<T> extends Message/*, WithEnvelopeId, WithEnvelopeData<T> */ {
94
+ readonly type: string;
95
+ readonly datacontenttype: Nullable<string>;
96
+ readonly specversion: Nullable<string>;
97
+ readonly source: Nullable<string>;
98
+ readonly time: Nullable<string>;
99
+ readonly __doNotUseOrImplementIt: {
100
+ readonly "f2.dsl.cqrs.envelope.EnvelopeDTO": unique symbol;
101
+ } & Message["__doNotUseOrImplementIt"];
102
+ }
103
+ export declare class Envelope<T> implements EnvelopeDTO<T> {
104
+ constructor(id: string, data: T, type: string, datacontenttype?: Nullable<string>, specversion?: Nullable<string>, source?: Nullable<string>, time?: Nullable<string>);
105
+ get type(): string;
106
+ get datacontenttype(): Nullable<string>;
107
+ get specversion(): Nullable<string>;
108
+ get source(): Nullable<string>;
109
+ get time(): Nullable<string>;
110
+ readonly __doNotUseOrImplementIt: EnvelopeDTO<T>["__doNotUseOrImplementIt"];
111
+ }
112
+ export declare namespace Envelope {
113
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
114
+ namespace $metadata$ {
115
+ const constructor: abstract new <T>() => Envelope<T>;
116
+ }
117
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
118
+ private constructor();
119
+ }
120
+ namespace Companion {
121
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
122
+ namespace $metadata$ {
123
+ abstract class constructor /* implements SerializerFactory */ {
124
+ get $cachedDescriptor(): any/* SerialDescriptor */;
125
+ private constructor();
126
+ }
127
+ }
128
+ }
129
+ }
130
+ export declare interface F2ErrorDTO extends Problem {
131
+ readonly id: Nullable<string>;
132
+ readonly timestamp: string;
133
+ readonly code: number;
134
+ readonly requestId: Nullable<string>;
135
+ readonly message: string;
136
+ readonly __doNotUseOrImplementIt: {
137
+ readonly "f2.dsl.cqrs.error.F2ErrorDTO": unique symbol;
138
+ } & Problem["__doNotUseOrImplementIt"];
139
+ }
140
+ export declare class F2Error implements F2ErrorDTO {
141
+ constructor(message: string, id?: Nullable<string>, timestamp?: string, code?: number, requestId?: Nullable<string>);
142
+ get message(): string;
143
+ get id(): Nullable<string>;
144
+ get timestamp(): string;
145
+ get code(): number;
146
+ get requestId(): Nullable<string>;
147
+ toString(): string;
148
+ readonly __doNotUseOrImplementIt: F2ErrorDTO["__doNotUseOrImplementIt"];
149
+ }
150
+ export declare namespace F2Error {
151
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
152
+ namespace $metadata$ {
153
+ const constructor: abstract new () => F2Error;
154
+ }
155
+ }
156
+ export declare class F2Exception extends /* RuntimeException */ Error {
157
+ constructor(error: F2ErrorDTO, cause?: Nullable<Error>);
158
+ get error(): F2ErrorDTO;
159
+ }
160
+ export declare namespace F2Exception {
161
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
162
+ namespace $metadata$ {
163
+ const constructor: abstract new () => F2Exception;
164
+ }
165
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
166
+ private constructor();
167
+ }
168
+ namespace Companion {
169
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
170
+ namespace $metadata$ {
171
+ abstract class constructor {
172
+ invoke(message: string, id?: string, requestId?: string, code?: number, cause?: Nullable<Error>): F2Exception;
173
+ private constructor();
174
+ }
175
+ }
176
+ }
177
+ }
178
+ export declare interface Match<T> {
179
+ readonly negative: boolean;
180
+ map<R>(transform: (p0: T) => R): Match<R>;
181
+ not(): Match<T>;
182
+ and(match: Match<T>): Match<T>;
183
+ or(match: Match<T>): Match<T>;
184
+ readonly __doNotUseOrImplementIt: {
185
+ readonly "f2.dsl.cqrs.filter.Match": unique symbol;
186
+ };
187
+ }
188
+ export declare interface SortDTO {
189
+ readonly property: string;
190
+ readonly ascending: boolean;
191
+ readonly nullsFirst: Nullable<boolean>;
192
+ readonly __doNotUseOrImplementIt: {
193
+ readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
194
+ };
195
+ }
196
+ export declare interface PageDTO<OBJECT> {
197
+ readonly total: number;
198
+ readonly items: KtList<OBJECT>;
199
+ readonly __doNotUseOrImplementIt: {
200
+ readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
201
+ };
202
+ }
203
+ export declare class Page<OBJECT> implements PageDTO<OBJECT> {
204
+ constructor(total: number, items: KtList<OBJECT>);
205
+ get total(): number;
206
+ get items(): KtList<OBJECT>;
207
+ readonly __doNotUseOrImplementIt: PageDTO<OBJECT>["__doNotUseOrImplementIt"];
208
+ }
209
+ export declare namespace Page {
210
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
211
+ namespace $metadata$ {
212
+ const constructor: abstract new <OBJECT>() => Page<OBJECT>;
213
+ }
214
+ }
215
+ export declare interface PageQueryDTO extends Query {
216
+ readonly pagination: Nullable<OffsetPaginationDTO>;
217
+ readonly __doNotUseOrImplementIt: {
218
+ readonly "f2.dsl.cqrs.page.PageQueryDTO": unique symbol;
219
+ } & Query["__doNotUseOrImplementIt"];
220
+ }
221
+ export declare interface PageQueryResultDTO<OBJECT> extends Event, PageDTO<OBJECT> {
222
+ readonly total: number;
223
+ readonly items: KtList<OBJECT>;
224
+ readonly pagination: Nullable<OffsetPaginationDTO>;
225
+ readonly __doNotUseOrImplementIt: {
226
+ readonly "f2.dsl.cqrs.page.PageQueryResultDTO": unique symbol;
227
+ } & Event["__doNotUseOrImplementIt"] & PageDTO<OBJECT>["__doNotUseOrImplementIt"];
228
+ }
229
+ export declare class PageQuery implements PageQueryDTO {
230
+ constructor(pagination: Nullable<OffsetPaginationDTO>);
231
+ get pagination(): Nullable<OffsetPaginationDTO>;
232
+ readonly __doNotUseOrImplementIt: PageQueryDTO["__doNotUseOrImplementIt"];
233
+ }
234
+ export declare namespace PageQuery {
235
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
236
+ namespace $metadata$ {
237
+ const constructor: abstract new () => PageQuery;
238
+ }
239
+ }
240
+ export declare class PageQueryResult<OBJECT> implements PageQueryResultDTO<OBJECT> {
241
+ constructor(pagination: Nullable<OffsetPagination>, total: number, items: KtList<OBJECT>);
242
+ get pagination(): Nullable<OffsetPagination>;
243
+ get total(): number;
244
+ get items(): KtList<OBJECT>;
245
+ readonly __doNotUseOrImplementIt: PageQueryResultDTO<OBJECT>["__doNotUseOrImplementIt"];
246
+ }
247
+ export declare namespace PageQueryResult {
248
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
249
+ namespace $metadata$ {
250
+ const constructor: abstract new <OBJECT>() => PageQueryResult<OBJECT>;
251
+ }
252
+ }
253
+ export declare interface Pagination {
254
+ readonly __doNotUseOrImplementIt: {
255
+ readonly "f2.dsl.cqrs.page.Pagination": unique symbol;
256
+ };
257
+ }
258
+ export declare interface OffsetPaginationDTO extends Pagination {
259
+ readonly offset: number;
260
+ readonly limit: number;
261
+ readonly __doNotUseOrImplementIt: {
262
+ readonly "f2.dsl.cqrs.page.OffsetPaginationDTO": unique symbol;
263
+ } & Pagination["__doNotUseOrImplementIt"];
264
+ }
265
+ export declare interface PagePaginationDTO extends Pagination {
266
+ readonly page: Nullable<number>;
267
+ readonly size: Nullable<number>;
268
+ readonly __doNotUseOrImplementIt: {
269
+ readonly "f2.dsl.cqrs.page.PagePaginationDTO": unique symbol;
270
+ } & Pagination["__doNotUseOrImplementIt"];
271
+ }
272
+ export declare class OffsetPagination implements OffsetPaginationDTO {
273
+ constructor(offset: number, limit: number);
274
+ get offset(): number;
275
+ get limit(): number;
276
+ readonly __doNotUseOrImplementIt: OffsetPaginationDTO["__doNotUseOrImplementIt"];
277
+ }
278
+ export declare namespace OffsetPagination {
279
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
280
+ namespace $metadata$ {
281
+ const constructor: abstract new () => OffsetPagination;
282
+ }
283
+ }
284
+ export declare class PagePagination implements PagePaginationDTO {
285
+ constructor(page: Nullable<number>, size: Nullable<number>);
286
+ get page(): Nullable<number>;
287
+ get size(): Nullable<number>;
288
+ readonly __doNotUseOrImplementIt: PagePaginationDTO["__doNotUseOrImplementIt"];
289
+ }
290
+ export declare namespace PagePagination {
291
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
292
+ namespace $metadata$ {
293
+ const constructor: abstract new () => PagePagination;
294
+ }
295
+ }
296
+ export declare interface AuthedUserDTO {
297
+ readonly id: string;
298
+ readonly identifier: Nullable<string>;
299
+ readonly memberOf: Nullable<string>;
300
+ readonly roles: Nullable<Array<string>>;
301
+ readonly acr: Nullable<string>;
302
+ readonly __doNotUseOrImplementIt: {
303
+ readonly "io.komune.im.commons.auth.AuthedUserDTO": unique symbol;
304
+ };
305
+ }
306
+ export declare abstract class ImPermission {
307
+ private constructor();
308
+ static get IM_FORCE_MFA_OTP(): ImPermission & {
309
+ get name(): "IM_FORCE_MFA_OTP";
310
+ get ordinal(): 0;
311
+ };
312
+ static get IM_USER_READ(): ImPermission & {
313
+ get name(): "IM_USER_READ";
314
+ get ordinal(): 1;
315
+ };
316
+ static get IM_USER_ROLE_READ(): ImPermission & {
317
+ get name(): "IM_USER_ROLE_READ";
318
+ get ordinal(): 2;
319
+ };
320
+ static get IM_USER_WRITE(): ImPermission & {
321
+ get name(): "IM_USER_WRITE";
322
+ get ordinal(): 3;
323
+ };
324
+ static get IM_ORGANIZATION_READ(): ImPermission & {
325
+ get name(): "IM_ORGANIZATION_READ";
326
+ get ordinal(): 4;
327
+ };
328
+ static get IM_ORGANIZATION_WRITE(): ImPermission & {
329
+ get name(): "IM_ORGANIZATION_WRITE";
330
+ get ordinal(): 5;
331
+ };
332
+ static get IM_MY_ORGANIZATION_WRITE(): ImPermission & {
333
+ get name(): "IM_MY_ORGANIZATION_WRITE";
334
+ get ordinal(): 6;
335
+ };
336
+ static get IM_ORGANIZATION_API_KEY_READ(): ImPermission & {
337
+ get name(): "IM_ORGANIZATION_API_KEY_READ";
338
+ get ordinal(): 7;
339
+ };
340
+ static get IM_ORGANIZATION_STATUS_WRITE(): ImPermission & {
341
+ get name(): "IM_ORGANIZATION_STATUS_WRITE";
342
+ get ordinal(): 8;
343
+ };
344
+ static get IM_APIKEY_READ(): ImPermission & {
345
+ get name(): "IM_APIKEY_READ";
346
+ get ordinal(): 9;
347
+ };
348
+ static get IM_APIKEY_WRITE(): ImPermission & {
349
+ get name(): "IM_APIKEY_WRITE";
350
+ get ordinal(): 10;
351
+ };
352
+ static get IM_SPACE_READ(): ImPermission & {
353
+ get name(): "IM_SPACE_READ";
354
+ get ordinal(): 11;
355
+ };
356
+ static get IM_SPACE_WRITE(): ImPermission & {
357
+ get name(): "IM_SPACE_WRITE";
358
+ get ordinal(): 12;
359
+ };
360
+ static get IM_ROLE_READ(): ImPermission & {
361
+ get name(): "IM_ROLE_READ";
362
+ get ordinal(): 13;
363
+ };
364
+ static get IM_ROLE_WRITE(): ImPermission & {
365
+ get name(): "IM_ROLE_WRITE";
366
+ get ordinal(): 14;
367
+ };
368
+ get name(): "IM_FORCE_MFA_OTP" | "IM_USER_READ" | "IM_USER_ROLE_READ" | "IM_USER_WRITE" | "IM_ORGANIZATION_READ" | "IM_ORGANIZATION_WRITE" | "IM_MY_ORGANIZATION_WRITE" | "IM_ORGANIZATION_API_KEY_READ" | "IM_ORGANIZATION_STATUS_WRITE" | "IM_APIKEY_READ" | "IM_APIKEY_WRITE" | "IM_SPACE_READ" | "IM_SPACE_WRITE" | "IM_ROLE_READ" | "IM_ROLE_WRITE";
369
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
370
+ get identifier(): string;
371
+ static values(): Array<ImPermission>;
372
+ static valueOf(value: string): ImPermission;
373
+ }
374
+ export declare namespace ImPermission {
375
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
376
+ namespace $metadata$ {
377
+ const constructor: abstract new () => ImPermission;
378
+ }
379
+ }
380
+ export declare abstract class ExceptionCodes {
381
+ static readonly getInstance: () => typeof ExceptionCodes.$metadata$.type;
382
+ private constructor();
383
+ }
384
+ export declare namespace ExceptionCodes {
385
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
386
+ namespace $metadata$ {
387
+ abstract class type extends KtSingleton<constructor>() {
388
+ private constructor();
389
+ }
390
+ abstract class constructor {
391
+ privilegeWrongTarget(): number;
392
+ private constructor();
393
+ }
394
+ }
395
+ }
396
+ export declare interface AddressDTO {
397
+ readonly street: string;
398
+ readonly postalCode: string;
399
+ readonly city: string;
400
+ readonly __doNotUseOrImplementIt: {
401
+ readonly "io.komune.im.commons.model.AddressDTO": unique symbol;
402
+ };
403
+ }
404
+ export declare interface OrganizationDeleteCommandDTO extends Command {
405
+ readonly id: string;
406
+ readonly __doNotUseOrImplementIt: {
407
+ readonly "io.komune.im.core.organization.domain.command.OrganizationDeleteCommandDTO": unique symbol;
408
+ } & Command["__doNotUseOrImplementIt"];
409
+ }
410
+ export declare interface OrganizationDeletedEventDTO extends Event {
411
+ readonly id: string;
412
+ readonly __doNotUseOrImplementIt: {
413
+ readonly "io.komune.im.core.organization.domain.command.OrganizationDeletedEventDTO": unique symbol;
414
+ } & Event["__doNotUseOrImplementIt"];
415
+ }
416
+ export declare abstract class PrivilegePolicies {
417
+ static readonly getInstance: () => typeof PrivilegePolicies.$metadata$.type;
418
+ private constructor();
419
+ }
420
+ export declare namespace PrivilegePolicies {
421
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
422
+ namespace $metadata$ {
423
+ abstract class type extends KtSingleton<constructor>() {
424
+ private constructor();
425
+ }
426
+ abstract class constructor {
427
+ canGet(authedUser: AuthedUserDTO): boolean;
428
+ canList(authedUser: AuthedUserDTO): boolean;
429
+ canDefine(authedUser: AuthedUserDTO): boolean;
430
+ private constructor();
431
+ }
432
+ }
433
+ }
434
+ export declare interface FeatureDefineCommandDTO {
435
+ readonly identifier: string;
436
+ readonly description: string;
437
+ readonly __doNotUseOrImplementIt: {
438
+ readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefineCommandDTO": unique symbol;
439
+ };
440
+ }
441
+ export declare interface FeatureDefinedEventDTO extends Event {
442
+ readonly identifier: string;
443
+ readonly __doNotUseOrImplementIt: {
444
+ readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefinedEventDTO": unique symbol;
445
+ } & Event["__doNotUseOrImplementIt"];
446
+ }
447
+ export declare interface FeatureDTO extends PrivilegeDTO {
448
+ readonly id: string;
449
+ readonly type: string;
450
+ readonly identifier: string;
451
+ readonly description: string;
452
+ readonly __doNotUseOrImplementIt: {
453
+ readonly "io.komune.im.f2.privilege.domain.feature.model.FeatureDTO": unique symbol;
454
+ } & PrivilegeDTO["__doNotUseOrImplementIt"];
455
+ }
456
+ export declare interface FeatureGetQueryDTO {
457
+ readonly identifier: string;
458
+ readonly __doNotUseOrImplementIt: {
459
+ readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetQueryDTO": unique symbol;
460
+ };
461
+ }
462
+ export declare interface FeatureGetResultDTO {
463
+ readonly item: Nullable<FeatureDTO>;
464
+ readonly __doNotUseOrImplementIt: {
465
+ readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetResultDTO": unique symbol;
466
+ };
467
+ }
468
+ export declare interface FeatureListQueryDTO {
469
+ readonly __doNotUseOrImplementIt: {
470
+ readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListQueryDTO": unique symbol;
471
+ };
472
+ }
473
+ export declare interface FeatureListResultDTO {
474
+ readonly items: KtList<FeatureDTO>;
475
+ readonly __doNotUseOrImplementIt: {
476
+ readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListResultDTO": unique symbol;
477
+ };
478
+ }
479
+ export declare interface PrivilegeDTO {
480
+ readonly id: string;
481
+ readonly identifier: string;
482
+ readonly description: string;
483
+ readonly type: string;
484
+ readonly __doNotUseOrImplementIt: {
485
+ readonly "io.komune.im.f2.privilege.domain.model.PrivilegeDTO": unique symbol;
486
+ };
487
+ }
488
+ export declare interface PermissionDefineCommandDTO {
489
+ readonly identifier: string;
490
+ readonly description: string;
491
+ readonly features: Nullable<KtList<KtList<string>>>;
492
+ readonly __doNotUseOrImplementIt: {
493
+ readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefineCommandDTO": unique symbol;
494
+ };
495
+ }
496
+ export declare interface PermissionDefinedEventDTO extends Event {
497
+ readonly identifier: string;
498
+ readonly __doNotUseOrImplementIt: {
499
+ readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefinedEventDTO": unique symbol;
500
+ } & Event["__doNotUseOrImplementIt"];
501
+ }
502
+ export declare interface PermissionDTO extends PrivilegeDTO {
503
+ readonly id: string;
504
+ readonly type: string;
505
+ readonly identifier: string;
506
+ readonly description: string;
507
+ readonly features: Nullable<KtList<KtList<string>>>;
508
+ readonly __doNotUseOrImplementIt: {
509
+ readonly "io.komune.im.f2.privilege.domain.permission.model.PermissionDTO": unique symbol;
510
+ } & PrivilegeDTO["__doNotUseOrImplementIt"];
511
+ }
512
+ export declare interface PermissionGetQueryDTO {
513
+ readonly identifier: string;
514
+ readonly __doNotUseOrImplementIt: {
515
+ readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetQueryDTO": unique symbol;
516
+ };
517
+ }
518
+ export declare interface PermissionGetResultDTO {
519
+ readonly item: Nullable<PermissionDTO>;
520
+ readonly __doNotUseOrImplementIt: {
521
+ readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetResultDTO": unique symbol;
522
+ };
523
+ }
524
+ export declare interface PermissionListQueryDTO {
525
+ readonly __doNotUseOrImplementIt: {
526
+ readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListQueryDTO": unique symbol;
527
+ };
528
+ }
529
+ export declare interface PermissionListResultDTO {
530
+ readonly items: KtList<PermissionDTO>;
531
+ readonly __doNotUseOrImplementIt: {
532
+ readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListResultDTO": unique symbol;
533
+ };
534
+ }
535
+ export declare interface RoleDefineCommandDTO {
536
+ readonly identifier: string;
537
+ readonly description: string;
538
+ readonly targets: KtList<string>;
539
+ readonly locale: KtMap<string, string>;
540
+ readonly bindings: Nullable<KtMap<string, KtList<string>>>;
541
+ readonly permissions: Nullable<KtList<string>>;
542
+ readonly __doNotUseOrImplementIt: {
543
+ readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefineCommandDTO": unique symbol;
544
+ };
545
+ }
546
+ export declare interface RoleDefinedEventDTO extends Event {
547
+ readonly identifier: string;
548
+ readonly __doNotUseOrImplementIt: {
549
+ readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefinedEventDTO": unique symbol;
550
+ } & Event["__doNotUseOrImplementIt"];
551
+ }
552
+ export declare interface RoleDTO extends PrivilegeDTO {
553
+ readonly id: string;
554
+ readonly type: string;
555
+ readonly identifier: string;
556
+ readonly description: string;
557
+ readonly targets: KtList<string>;
558
+ readonly locale: KtMap<string, string>;
559
+ readonly bindings: KtMap<string, KtList<RoleDTO>>;
560
+ readonly permissions: KtList<string>;
561
+ readonly __doNotUseOrImplementIt: {
562
+ readonly "io.komune.im.f2.privilege.domain.role.model.RoleDTO": unique symbol;
563
+ } & PrivilegeDTO["__doNotUseOrImplementIt"];
564
+ }
565
+ export declare abstract class RoleTargetValues {
566
+ static readonly getInstance: () => typeof RoleTargetValues.$metadata$.type;
567
+ private constructor();
568
+ }
569
+ export declare namespace RoleTargetValues {
570
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
571
+ namespace $metadata$ {
572
+ abstract class type extends KtSingleton<constructor>() {
573
+ private constructor();
574
+ }
575
+ abstract class constructor {
576
+ organization(): string;
577
+ user(): string;
578
+ apiKey(): string;
579
+ private constructor();
580
+ }
581
+ }
582
+ }
583
+ export declare interface RoleGetQueryDTO {
584
+ readonly identifier: string;
585
+ readonly __doNotUseOrImplementIt: {
586
+ readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetQueryDTO": unique symbol;
587
+ };
588
+ }
589
+ export declare interface RoleGetResultDTO {
590
+ readonly item: Nullable<RoleDTO>;
591
+ readonly __doNotUseOrImplementIt: {
592
+ readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetResultDTO": unique symbol;
593
+ };
594
+ }
595
+ export declare interface RoleListQueryDTO {
596
+ readonly target: Nullable<string>;
597
+ readonly __doNotUseOrImplementIt: {
598
+ readonly "io.komune.im.f2.privilege.domain.role.query.RoleListQueryDTO": unique symbol;
599
+ };
600
+ }
601
+ export declare interface RoleListResultDTO {
602
+ readonly items: KtList<RoleDTO>;
603
+ readonly __doNotUseOrImplementIt: {
604
+ readonly "io.komune.im.f2.privilege.domain.role.query.RoleListResultDTO": unique symbol;
605
+ };
606
+ }
607
+ export declare interface OrganizationCreateCommandDTO extends Command {
608
+ readonly siret: Nullable<string>;
609
+ readonly name: string;
610
+ readonly description: Nullable<string>;
611
+ readonly address: Nullable<AddressDTO>;
612
+ readonly website: Nullable<string>;
613
+ readonly roles: Nullable<KtList<string>>;
614
+ readonly parentOrganizationId: Nullable<string>;
615
+ readonly attributes: Nullable<KtMap<string, string>>;
616
+ readonly status: Nullable<string>;
617
+ readonly __doNotUseOrImplementIt: {
618
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationCreateCommandDTO": unique symbol;
619
+ } & Command["__doNotUseOrImplementIt"];
620
+ }
621
+ export declare interface OrganizationCreatedEventDTO extends Event {
622
+ readonly id: string;
623
+ readonly parentOrganization: Nullable<string>;
624
+ readonly __doNotUseOrImplementIt: {
625
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationCreatedEventDTO": unique symbol;
626
+ } & Event["__doNotUseOrImplementIt"];
627
+ }
628
+ export declare interface OrganizationDeleteCommandDTO extends OrganizationDeleteCommandDTO {
629
+ readonly __doNotUseOrImplementIt: {
630
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationDeleteCommandDTO": unique symbol;
631
+ } & OrganizationDeleteCommandDTO["__doNotUseOrImplementIt"];
632
+ }
633
+ export declare interface OrganizationDeletedEventDTO extends Event, OrganizationDeletedEventDTO {
634
+ readonly __doNotUseOrImplementIt: {
635
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationDeletedEventDTO": unique symbol;
636
+ } & Event["__doNotUseOrImplementIt"] & OrganizationDeletedEventDTO["__doNotUseOrImplementIt"];
637
+ }
638
+ export declare interface OrganizationDisableCommandDTO extends Command {
639
+ readonly id: string;
640
+ readonly disabledBy: Nullable<string>;
641
+ readonly anonymize: boolean;
642
+ readonly attributes: Nullable<KtMap<string, string>>;
643
+ readonly userAttributes: Nullable<KtMap<string, string>>;
644
+ readonly __doNotUseOrImplementIt: {
645
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationDisableCommandDTO": unique symbol;
646
+ } & Command["__doNotUseOrImplementIt"];
647
+ }
648
+ export declare interface OrganizationDisabledEventDTO extends Event {
649
+ readonly id: string;
650
+ readonly userIds: KtList<string>;
651
+ readonly __doNotUseOrImplementIt: {
652
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationDisabledEventDTO": unique symbol;
653
+ } & Event["__doNotUseOrImplementIt"];
654
+ }
655
+ export declare interface OrganizationUpdateCommandDTO extends Command {
656
+ readonly id: string;
657
+ readonly name: string;
658
+ readonly description: Nullable<string>;
659
+ readonly address: Nullable<AddressDTO>;
660
+ readonly website: Nullable<string>;
661
+ readonly roles: Nullable<KtList<string>>;
662
+ readonly attributes: Nullable<KtMap<string, string>>;
663
+ readonly status: Nullable<string>;
664
+ readonly __doNotUseOrImplementIt: {
665
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationUpdateCommandDTO": unique symbol;
666
+ } & Command["__doNotUseOrImplementIt"];
667
+ }
668
+ export declare interface OrganizationUpdatedResultDTO extends Event {
669
+ readonly id: string;
670
+ readonly __doNotUseOrImplementIt: {
671
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationUpdatedResultDTO": unique symbol;
672
+ } & Event["__doNotUseOrImplementIt"];
673
+ }
674
+ export declare interface OrganizationUploadLogoCommandDTO extends Command {
675
+ readonly id: string;
676
+ readonly __doNotUseOrImplementIt: {
677
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationUploadLogoCommandDTO": unique symbol;
678
+ } & Command["__doNotUseOrImplementIt"];
679
+ }
680
+ export declare interface OrganizationUploadedLogoEventDTO extends Event {
681
+ readonly id: string;
682
+ readonly url: string;
683
+ readonly __doNotUseOrImplementIt: {
684
+ readonly "io.komune.im.f2.organization.domain.command.OrganizationUploadedLogoEventDTO": unique symbol;
685
+ } & Event["__doNotUseOrImplementIt"];
686
+ }
687
+ export declare interface OrganizationDTO {
688
+ readonly id: string;
689
+ readonly siret: Nullable<string>;
690
+ readonly name: string;
691
+ readonly description: Nullable<string>;
692
+ readonly address: Nullable<AddressDTO>;
693
+ readonly website: Nullable<string>;
694
+ readonly attributes: KtMap<string, string>;
695
+ readonly roles: KtList<RoleDTO>;
696
+ readonly logo: Nullable<string>;
697
+ readonly enabled: boolean;
698
+ readonly status: string;
699
+ readonly disabledBy: Nullable<string>;
700
+ readonly creationDate: bigint;
701
+ readonly disabledDate: Nullable<bigint>;
702
+ readonly __doNotUseOrImplementIt: {
703
+ readonly "io.komune.im.f2.organization.domain.model.OrganizationDTO": unique symbol;
704
+ };
705
+ }
706
+ export declare interface OrganizationRefDTO {
707
+ readonly id: string;
708
+ readonly name: string;
709
+ readonly roles: KtList<string>;
710
+ readonly __doNotUseOrImplementIt: {
711
+ readonly "io.komune.im.f2.organization.domain.model.OrganizationRefDTO": unique symbol;
712
+ };
713
+ }
714
+ export declare abstract class OrganizationStatusValues {
715
+ static readonly getInstance: () => typeof OrganizationStatusValues.$metadata$.type;
716
+ private constructor();
717
+ }
718
+ export declare namespace OrganizationStatusValues {
719
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
720
+ namespace $metadata$ {
721
+ abstract class type extends KtSingleton<constructor>() {
722
+ private constructor();
723
+ }
724
+ abstract class constructor {
725
+ pending(): string;
726
+ validated(): string;
727
+ rejected(): string;
728
+ private constructor();
729
+ }
730
+ }
731
+ }
732
+ export declare abstract class OrganizationPolicies {
733
+ static readonly getInstance: () => typeof OrganizationPolicies.$metadata$.type;
734
+ private constructor();
735
+ }
736
+ export declare namespace OrganizationPolicies {
737
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
738
+ namespace $metadata$ {
739
+ abstract class type extends KtSingleton<constructor>() {
740
+ private constructor();
741
+ }
742
+ abstract class constructor {
743
+ canGet(authedUser: AuthedUserDTO, organizationId: string): boolean;
744
+ canList(authedUser: AuthedUserDTO): boolean;
745
+ checkRefList(authedUser: Nullable<AuthedUserDTO>): boolean;
746
+ canCreate(authedUser: AuthedUserDTO): boolean;
747
+ canUpdate(authedUser: AuthedUserDTO, organizationId: string): boolean;
748
+ canUpdateStatus(authedUser: AuthedUserDTO): boolean;
749
+ canDisable(authedUser: AuthedUserDTO): boolean;
750
+ canDelete(authedUser: AuthedUserDTO): boolean;
751
+ private constructor();
752
+ }
753
+ }
754
+ }
755
+ export declare interface OrganizationGetFromInseeQueryDTO extends Query {
756
+ readonly siret: string;
757
+ readonly __doNotUseOrImplementIt: {
758
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationGetFromInseeQueryDTO": unique symbol;
759
+ } & Query["__doNotUseOrImplementIt"];
760
+ }
761
+ export declare interface OrganizationGetFromInseeResultDTO extends Event {
762
+ readonly item: Nullable<OrganizationDTO>;
763
+ readonly __doNotUseOrImplementIt: {
764
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationGetFromInseeResultDTO": unique symbol;
765
+ } & Event["__doNotUseOrImplementIt"];
766
+ }
767
+ export declare interface OrganizationGetQueryDTO extends Query {
768
+ readonly id: string;
769
+ readonly __doNotUseOrImplementIt: {
770
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationGetQueryDTO": unique symbol;
771
+ } & Query["__doNotUseOrImplementIt"];
772
+ }
773
+ export declare interface OrganizationGetResultDTO extends Event {
774
+ readonly item: Nullable<OrganizationDTO>;
775
+ readonly __doNotUseOrImplementIt: {
776
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationGetResultDTO": unique symbol;
777
+ } & Event["__doNotUseOrImplementIt"];
778
+ }
779
+ export declare interface OrganizationPageQueryDTO extends Query {
780
+ readonly name: Nullable<string>;
781
+ readonly role: Nullable<string>;
782
+ readonly roles: Nullable<KtList<string>>;
783
+ readonly attributes: Nullable<KtMap<string, string>>;
784
+ readonly status: Nullable<KtList<string>>;
785
+ readonly withDisabled: Nullable<boolean>;
786
+ readonly offset: Nullable<number>;
787
+ readonly limit: Nullable<number>;
788
+ readonly __doNotUseOrImplementIt: {
789
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationPageQueryDTO": unique symbol;
790
+ } & Query["__doNotUseOrImplementIt"];
791
+ }
792
+ export declare interface OrganizationPageResultDTO extends PageDTO<OrganizationDTO> {
793
+ readonly items: KtList<OrganizationDTO>;
794
+ readonly total: number;
795
+ readonly __doNotUseOrImplementIt: {
796
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationPageResultDTO": unique symbol;
797
+ } & PageDTO<OrganizationDTO>["__doNotUseOrImplementIt"];
798
+ }
799
+ export declare interface OrganizationRefGetQueryDTO extends Query {
800
+ readonly id: string;
801
+ readonly __doNotUseOrImplementIt: {
802
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationRefGetQueryDTO": unique symbol;
803
+ } & Query["__doNotUseOrImplementIt"];
804
+ }
805
+ export declare interface OrganizationRefGetResultDTO extends Event {
806
+ readonly item: Nullable<OrganizationRefDTO>;
807
+ readonly __doNotUseOrImplementIt: {
808
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationRefGetResultDTO": unique symbol;
809
+ } & Event["__doNotUseOrImplementIt"];
810
+ }
811
+ export declare interface OrganizationRefListQueryDTO extends Query {
812
+ readonly withDisabled: boolean;
813
+ readonly __doNotUseOrImplementIt: {
814
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationRefListQueryDTO": unique symbol;
815
+ } & Query["__doNotUseOrImplementIt"];
816
+ }
817
+ export declare interface OrganizationRefListResultDTO extends Event {
818
+ readonly items: KtList<OrganizationRefDTO>;
819
+ readonly __doNotUseOrImplementIt: {
820
+ readonly "io.komune.im.f2.organization.domain.query.OrganizationRefListResultDTO": unique symbol;
821
+ } & Event["__doNotUseOrImplementIt"];
822
+ }
823
+ export declare interface F2Consumer<T> {
824
+ readonly __doNotUseOrImplementIt: {
825
+ readonly "f2.dsl.fnc.F2Consumer": unique symbol;
826
+ };
827
+ }
828
+ export declare interface F2Function<T, R> {
829
+ readonly __doNotUseOrImplementIt: {
830
+ readonly "f2.dsl.fnc.F2Function": unique symbol;
831
+ };
832
+ }
833
+ export declare interface F2Supplier<R> {
834
+ readonly __doNotUseOrImplementIt: {
835
+ readonly "f2.dsl.fnc.F2Supplier": unique symbol;
836
+ };
837
+ }
838
+ export declare interface F2SupplierSingle<R> {
839
+ readonly __doNotUseOrImplementIt: {
840
+ readonly "f2.dsl.fnc.F2SupplierSingle": unique symbol;
841
+ };
842
+ }
843
+ export declare class Batch {
844
+ constructor(size?: number, concurrency?: number);
845
+ get size(): number;
846
+ get concurrency(): number;
847
+ copy(size?: number, concurrency?: number): Batch;
848
+ toString(): string;
849
+ hashCode(): number;
850
+ equals(other: Nullable<any>): boolean;
851
+ }
852
+ export declare namespace Batch {
853
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
854
+ namespace $metadata$ {
855
+ const constructor: abstract new () => Batch;
856
+ }
857
+ }
858
+ export declare abstract class AuthRealm {
859
+ protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string>);
860
+ get serverUrl(): string;
861
+ get realmId(): string;
862
+ get clientId(): string;
863
+ get redirectUrl(): Nullable<string>;
864
+ }
865
+ export declare namespace AuthRealm {
866
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
867
+ namespace $metadata$ {
868
+ const constructor: abstract new () => AuthRealm;
869
+ }
870
+ }
871
+ export declare class AuthRealmPassword extends AuthRealm.$metadata$.constructor {
872
+ constructor(serverUrl: string, realmId: string, redirectUrl: string, clientId: string, username: string, password: string);
873
+ get serverUrl(): string;
874
+ get realmId(): string;
875
+ get redirectUrl(): string;
876
+ get clientId(): string;
877
+ get username(): string;
878
+ get password(): string;
879
+ copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): AuthRealmPassword;
880
+ toString(): string;
881
+ hashCode(): number;
882
+ equals(other: Nullable<any>): boolean;
883
+ }
884
+ export declare namespace AuthRealmPassword {
885
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
886
+ namespace $metadata$ {
887
+ const constructor: abstract new () => AuthRealmPassword;
888
+ }
889
+ }
890
+ export declare class AuthRealmClientSecret extends AuthRealm.$metadata$.constructor {
891
+ constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string> | undefined, clientSecret: string, isPublic?: boolean);
892
+ get serverUrl(): string;
893
+ get realmId(): string;
894
+ get clientId(): string;
895
+ get redirectUrl(): Nullable<string>;
896
+ get clientSecret(): string;
897
+ get isPublic(): boolean;
898
+ copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: Nullable<string>, clientSecret?: string, isPublic?: boolean): AuthRealmClientSecret;
899
+ toString(): string;
900
+ hashCode(): number;
901
+ equals(other: Nullable<any>): boolean;
902
+ }
903
+ export declare namespace AuthRealmClientSecret {
904
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
905
+ namespace $metadata$ {
906
+ const constructor: abstract new () => AuthRealmClientSecret;
907
+ }
908
+ }
909
+ export declare interface UserCreateCommandDTO extends Command {
910
+ readonly email: string;
911
+ readonly password: Nullable<string>;
912
+ readonly givenName: string;
913
+ readonly familyName: string;
914
+ readonly address: Nullable<AddressDTO>/* Nullable<Address> */;
915
+ readonly phone: Nullable<string>;
916
+ readonly roles: KtList<string>;
917
+ readonly memberOf: Nullable<string>;
918
+ readonly attributes: Nullable<KtMap<string, string>>;
919
+ readonly isEmailVerified: boolean;
920
+ readonly isPasswordTemporary: boolean;
921
+ readonly sendResetPassword: boolean;
922
+ readonly sendVerifyEmail: boolean;
923
+ readonly __doNotUseOrImplementIt: {
924
+ readonly "io.komune.im.f2.user.domain.command.UserCreateCommandDTO": unique symbol;
925
+ } & Command["__doNotUseOrImplementIt"];
926
+ }
927
+ export declare interface UserCreatedEventDTO extends Event {
928
+ readonly id: string;
929
+ readonly __doNotUseOrImplementIt: {
930
+ readonly "io.komune.im.f2.user.domain.command.UserCreatedEventDTO": unique symbol;
931
+ } & Event["__doNotUseOrImplementIt"];
932
+ }
933
+ export declare interface UserDeleteCommandDTO extends UserDeleteCommandDTO, Command {
934
+ readonly __doNotUseOrImplementIt: {
935
+ readonly "io.komune.im.f2.user.domain.command.UserDeleteCommandDTO": unique symbol;
936
+ } & UserDeleteCommandDTO["__doNotUseOrImplementIt"] & Command["__doNotUseOrImplementIt"];
937
+ }
938
+ export declare interface UserDeletedEventDTO extends UserDeletedEventDTO, Event {
939
+ readonly __doNotUseOrImplementIt: {
940
+ readonly "io.komune.im.f2.user.domain.command.UserDeletedEventDTO": unique symbol;
941
+ } & UserDeletedEventDTO["__doNotUseOrImplementIt"] & Event["__doNotUseOrImplementIt"];
942
+ }
943
+ export declare interface UserDisableCommandDTO extends Command {
944
+ readonly id: string;
945
+ readonly disabledBy: Nullable<string>;
946
+ readonly anonymize: boolean;
947
+ readonly attributes: Nullable<KtMap<string, string>>;
948
+ readonly __doNotUseOrImplementIt: {
949
+ readonly "io.komune.im.f2.user.domain.command.UserDisableCommandDTO": unique symbol;
950
+ } & Command["__doNotUseOrImplementIt"];
951
+ }
952
+ export declare interface UserDisabledEventDTO extends Event {
953
+ readonly id: string;
954
+ readonly __doNotUseOrImplementIt: {
955
+ readonly "io.komune.im.f2.user.domain.command.UserDisabledEventDTO": unique symbol;
956
+ } & Event["__doNotUseOrImplementIt"];
957
+ }
958
+ export declare interface UserDisableMfaCommandDTO extends Command {
959
+ readonly id: string;
960
+ readonly __doNotUseOrImplementIt: {
961
+ readonly "io.komune.im.f2.user.domain.command.UserDisableMfaCommandDTO": unique symbol;
962
+ } & Command["__doNotUseOrImplementIt"];
963
+ }
964
+ export declare interface UserDisabledMfaEventDTO extends Event {
965
+ readonly id: string;
966
+ readonly __doNotUseOrImplementIt: {
967
+ readonly "io.komune.im.f2.user.domain.command.UserDisabledMfaEventDTO": unique symbol;
968
+ } & Event["__doNotUseOrImplementIt"];
969
+ }
970
+ export declare interface UserEnableCommandDTO {
971
+ readonly id: string;
972
+ readonly __doNotUseOrImplementIt: {
973
+ readonly "io.komune.im.f2.user.domain.command.UserEnableCommandDTO": unique symbol;
974
+ };
975
+ }
976
+ export declare interface UserEnabledEventDTO extends Event {
977
+ readonly id: string;
978
+ readonly __doNotUseOrImplementIt: {
979
+ readonly "io.komune.im.f2.user.domain.command.UserEnabledEventDTO": unique symbol;
980
+ } & Event["__doNotUseOrImplementIt"];
981
+ }
982
+ export declare interface UserResetPasswordCommandDTO extends Command {
983
+ readonly id: string;
984
+ readonly __doNotUseOrImplementIt: {
985
+ readonly "io.komune.im.f2.user.domain.command.UserResetPasswordCommandDTO": unique symbol;
986
+ } & Command["__doNotUseOrImplementIt"];
987
+ }
988
+ export declare interface UserResetPasswordEventDTO extends Event {
989
+ readonly id: string;
990
+ readonly __doNotUseOrImplementIt: {
991
+ readonly "io.komune.im.f2.user.domain.command.UserResetPasswordEventDTO": unique symbol;
992
+ } & Event["__doNotUseOrImplementIt"];
993
+ }
994
+ export declare interface UserUpdateCommandDTO extends Command {
995
+ readonly id: string;
996
+ readonly givenName: string;
997
+ readonly familyName: string;
998
+ readonly address: Nullable<AddressDTO>;
999
+ readonly phone: Nullable<string>;
1000
+ readonly roles: KtList<string>;
1001
+ readonly memberOf: Nullable<string>;
1002
+ readonly attributes: Nullable<KtMap<string, string>>;
1003
+ readonly __doNotUseOrImplementIt: {
1004
+ readonly "io.komune.im.f2.user.domain.command.UserUpdateCommandDTO": unique symbol;
1005
+ } & Command["__doNotUseOrImplementIt"];
1006
+ }
1007
+ export declare interface UserUpdatedEventDTO extends Event {
1008
+ readonly id: string;
1009
+ readonly __doNotUseOrImplementIt: {
1010
+ readonly "io.komune.im.f2.user.domain.command.UserUpdatedEventDTO": unique symbol;
1011
+ } & Event["__doNotUseOrImplementIt"];
1012
+ }
1013
+ export declare interface UserUpdateEmailCommandDTO extends Command {
1014
+ readonly id: string;
1015
+ readonly email: string;
1016
+ readonly sendVerificationEmail: boolean;
1017
+ readonly __doNotUseOrImplementIt: {
1018
+ readonly "io.komune.im.f2.user.domain.command.UserUpdateEmailCommandDTO": unique symbol;
1019
+ } & Command["__doNotUseOrImplementIt"];
1020
+ }
1021
+ export declare interface UserUpdatedEmailEventDTO extends Event {
1022
+ readonly id: string;
1023
+ readonly __doNotUseOrImplementIt: {
1024
+ readonly "io.komune.im.f2.user.domain.command.UserUpdatedEmailEventDTO": unique symbol;
1025
+ } & Event["__doNotUseOrImplementIt"];
1026
+ }
1027
+ export declare interface UserUpdatePasswordCommandDTO extends Command {
1028
+ readonly id: string;
1029
+ readonly password: string;
1030
+ readonly __doNotUseOrImplementIt: {
1031
+ readonly "io.komune.im.f2.user.domain.command.UserUpdatePasswordCommandDTO": unique symbol;
1032
+ } & Command["__doNotUseOrImplementIt"];
1033
+ }
1034
+ export declare interface UserUpdatedPasswordEventDTO extends Event {
1035
+ readonly id: string;
1036
+ readonly __doNotUseOrImplementIt: {
1037
+ readonly "io.komune.im.f2.user.domain.command.UserUpdatedPasswordEventDTO": unique symbol;
1038
+ } & Event["__doNotUseOrImplementIt"];
1039
+ }
1040
+ export declare interface UserDTO {
1041
+ readonly id: string;
1042
+ readonly memberOf: Nullable<OrganizationRefDTO>;
1043
+ readonly email: string;
1044
+ readonly givenName: string;
1045
+ readonly familyName: string;
1046
+ readonly address: Nullable<AddressDTO>;
1047
+ readonly phone: Nullable<string>;
1048
+ readonly roles: KtList<RoleDTO>;
1049
+ readonly mfa: Nullable<KtList<string>>;
1050
+ readonly attributes: KtMap<string, string>;
1051
+ readonly enabled: boolean;
1052
+ readonly disabledBy: Nullable<string>;
1053
+ readonly creationDate: bigint;
1054
+ readonly disabledDate: Nullable<bigint>;
1055
+ readonly __doNotUseOrImplementIt: {
1056
+ readonly "io.komune.im.f2.user.domain.model.UserDTO": unique symbol;
1057
+ };
1058
+ }
1059
+ export declare abstract class UserPolicies {
1060
+ static readonly getInstance: () => typeof UserPolicies.$metadata$.type;
1061
+ private constructor();
1062
+ }
1063
+ export declare namespace UserPolicies {
1064
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
1065
+ namespace $metadata$ {
1066
+ abstract class type extends KtSingleton<constructor>() {
1067
+ private constructor();
1068
+ }
1069
+ abstract class constructor {
1070
+ canGet(authedUser: AuthedUserDTO, user: Nullable<UserDTO>): boolean;
1071
+ canPage(authedUser: AuthedUserDTO): boolean;
1072
+ checkRefList(authedUser: AuthedUserDTO): boolean;
1073
+ canCreate(authedUser: AuthedUserDTO, organizationId: Nullable<string>): boolean;
1074
+ canUpdate(authedUser: AuthedUserDTO, user: UserDTO): boolean;
1075
+ canConfigureMfa(authedUser: AuthedUserDTO, user: UserDTO): boolean;
1076
+ canDisableMfa(authedUser: AuthedUserDTO, user: UserDTO): boolean;
1077
+ canDisableMfaAcr(authedUser: AuthedUserDTO, user: UserDTO): boolean;
1078
+ canUpdateMemberOf(authedUser: AuthedUserDTO): boolean;
1079
+ canUpdateRole(authedUser: AuthedUserDTO): boolean;
1080
+ canDisable(authedUser: AuthedUserDTO, user: UserDTO): boolean;
1081
+ canEnable(authedUser: AuthedUserDTO, user: UserDTO): boolean;
1082
+ canDelete(authedUser: AuthedUserDTO, user: UserDTO): boolean;
1083
+ private constructor();
1084
+ }
1085
+ }
1086
+ }
1087
+ export declare interface UserExistsByEmailQueryDTO extends Query {
1088
+ readonly email: string;
1089
+ readonly __doNotUseOrImplementIt: {
1090
+ readonly "io.komune.im.f2.user.domain.query.UserExistsByEmailQueryDTO": unique symbol;
1091
+ } & Query["__doNotUseOrImplementIt"];
1092
+ }
1093
+ export declare interface UserExistsByEmailResultDTO extends Event {
1094
+ readonly item: boolean;
1095
+ readonly __doNotUseOrImplementIt: {
1096
+ readonly "io.komune.im.f2.user.domain.query.UserExistsByEmailResultDTO": unique symbol;
1097
+ } & Event["__doNotUseOrImplementIt"];
1098
+ }
1099
+ export declare interface UserGetByEmailQueryDTO extends Query {
1100
+ readonly email: string;
1101
+ readonly __doNotUseOrImplementIt: {
1102
+ readonly "io.komune.im.f2.user.domain.query.UserGetByEmailQueryDTO": unique symbol;
1103
+ } & Query["__doNotUseOrImplementIt"];
1104
+ }
1105
+ export declare interface UserGetByEmailResultDTO extends Event {
1106
+ readonly item: Nullable<UserDTO>;
1107
+ readonly __doNotUseOrImplementIt: {
1108
+ readonly "io.komune.im.f2.user.domain.query.UserGetByEmailResultDTO": unique symbol;
1109
+ } & Event["__doNotUseOrImplementIt"];
1110
+ }
1111
+ export declare interface UserGetQueryDTO extends Query {
1112
+ readonly id: string;
1113
+ readonly __doNotUseOrImplementIt: {
1114
+ readonly "io.komune.im.f2.user.domain.query.UserGetQueryDTO": unique symbol;
1115
+ } & Query["__doNotUseOrImplementIt"];
1116
+ }
1117
+ export declare interface UserGetResultDTO extends Event {
1118
+ readonly item: Nullable<UserDTO>;
1119
+ readonly __doNotUseOrImplementIt: {
1120
+ readonly "io.komune.im.f2.user.domain.query.UserGetResultDTO": unique symbol;
1121
+ } & Event["__doNotUseOrImplementIt"];
1122
+ }
1123
+ export declare interface UserPageQueryDTO extends Query {
1124
+ readonly organizationId: Nullable<string>;
1125
+ readonly organizationName: Nullable<string>;
1126
+ readonly name: Nullable<string>;
1127
+ readonly email: Nullable<string>;
1128
+ readonly role: Nullable<string>;
1129
+ readonly roles: Nullable<KtList<string>>;
1130
+ readonly attributes: Nullable<KtMap<string, string>>;
1131
+ readonly withDisabled: boolean;
1132
+ readonly offset: Nullable<number>;
1133
+ readonly limit: Nullable<number>;
1134
+ readonly __doNotUseOrImplementIt: {
1135
+ readonly "io.komune.im.f2.user.domain.query.UserPageQueryDTO": unique symbol;
1136
+ } & Query["__doNotUseOrImplementIt"];
1137
+ }
1138
+ export declare interface UserPageResultDTO extends PageDTO<UserDTO> {
1139
+ readonly items: KtList<UserDTO>;
1140
+ readonly total: number;
1141
+ readonly __doNotUseOrImplementIt: {
1142
+ readonly "io.komune.im.f2.user.domain.query.UserPageResultDTO": unique symbol;
1143
+ } & PageDTO<UserDTO>["__doNotUseOrImplementIt"];
1144
+ }