@komune-io/im-user-domain 0.26.0 → 0.27.0-alpha.16005bb

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