@komune-io/im-privilege-domain 0.26.0 → 0.27.0-alpha.6423aa5

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,32 +1,22 @@
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 AuthedUserDTO {
22
15
  readonly id: string;
23
- readonly identifier: Nullable<string>;
24
- readonly memberOf: Nullable<string>;
25
- readonly roles: Nullable<Array<string>>;
26
- readonly acr: Nullable<string>;
27
- readonly __doNotUseOrImplementIt: {
28
- readonly "io.komune.im.commons.auth.AuthedUserDTO": unique symbol;
29
- };
16
+ readonly identifier?: string;
17
+ readonly memberOf?: string;
18
+ readonly roles?: Array<string>;
19
+ readonly acr?: string;
30
20
  }
31
21
  export declare abstract class ImPermission {
32
22
  private constructor();
@@ -122,29 +112,14 @@ export declare interface AddressDTO {
122
112
  readonly street: string;
123
113
  readonly postalCode: string;
124
114
  readonly city: string;
125
- readonly __doNotUseOrImplementIt: {
126
- readonly "io.komune.im.commons.model.AddressDTO": unique symbol;
127
- };
128
115
  }
129
116
  export declare interface F2Consumer<T> {
130
- readonly __doNotUseOrImplementIt: {
131
- readonly "f2.dsl.fnc.F2Consumer": unique symbol;
132
- };
133
117
  }
134
118
  export declare interface F2Function<in T, out R> {
135
- readonly __doNotUseOrImplementIt: {
136
- readonly "f2.dsl.fnc.F2Function": unique symbol;
137
- };
138
119
  }
139
120
  export declare interface F2Supplier<R> {
140
- readonly __doNotUseOrImplementIt: {
141
- readonly "f2.dsl.fnc.F2Supplier": unique symbol;
142
- };
143
121
  }
144
122
  export declare interface F2SupplierSingle<R> {
145
- readonly __doNotUseOrImplementIt: {
146
- readonly "f2.dsl.fnc.F2SupplierSingle": unique symbol;
147
- };
148
123
  }
149
124
  export declare class Batch {
150
125
  constructor(size?: number, concurrency?: number);
@@ -153,7 +128,7 @@ export declare class Batch {
153
128
  copy(size?: number, concurrency?: number): Batch;
154
129
  toString(): string;
155
130
  hashCode(): number;
156
- equals(other: Nullable<any>): boolean;
131
+ equals(other?: any): boolean;
157
132
  }
158
133
  export declare namespace Batch {
159
134
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -162,52 +137,33 @@ export declare namespace Batch {
162
137
  }
163
138
  }
164
139
  export declare interface Command extends Message {
165
- readonly __doNotUseOrImplementIt: {
166
- readonly "f2.dsl.cqrs.Command": unique symbol;
167
- } & Message["__doNotUseOrImplementIt"];
168
140
  }
169
141
  export declare interface Event extends Message {
170
- readonly __doNotUseOrImplementIt: {
171
- readonly "f2.dsl.cqrs.Event": unique symbol;
172
- } & Message["__doNotUseOrImplementIt"];
173
142
  }
174
143
  export declare interface Message {
175
- readonly __doNotUseOrImplementIt: {
176
- readonly "f2.dsl.cqrs.Message": unique symbol;
177
- };
178
144
  }
179
145
  export declare interface Problem extends Message {
180
- readonly __doNotUseOrImplementIt: {
181
- readonly "f2.dsl.cqrs.Problem": unique symbol;
182
- } & Message["__doNotUseOrImplementIt"];
183
146
  }
184
147
  export declare interface Query extends Message {
185
- readonly __doNotUseOrImplementIt: {
186
- readonly "f2.dsl.cqrs.Query": unique symbol;
187
- } & Message["__doNotUseOrImplementIt"];
188
148
  }
189
149
  export declare interface EnvelopeDTO<T> extends WithEnvelopeId, WithEnvelopeData<T>, Message {
190
150
  readonly id: string;
191
151
  readonly data: T;
192
152
  readonly type: string;
193
- readonly datacontenttype: Nullable<string>;
194
- readonly specversion: Nullable<string>;
195
- readonly source: Nullable<string>;
196
- readonly time: Nullable<string>;
197
- readonly __doNotUseOrImplementIt: {
198
- readonly "f2.dsl.cqrs.envelope.EnvelopeDTO": unique symbol;
199
- } & Message["__doNotUseOrImplementIt"] & WithEnvelopeData<any>["__doNotUseOrImplementIt"] & WithEnvelopeId["__doNotUseOrImplementIt"];
153
+ readonly datacontenttype?: string;
154
+ readonly specversion?: string;
155
+ readonly source?: string;
156
+ readonly time?: string;
200
157
  }
201
158
  export declare class Envelope<T> implements EnvelopeDTO<T> {
202
- constructor(id: string, data: T, type: string, datacontenttype?: Nullable<string>, specversion?: Nullable<string>, source?: Nullable<string>, time?: Nullable<string>);
159
+ constructor(id: string, data: T, type: string, datacontenttype?: string, specversion?: string, source?: string, time?: string);
203
160
  get id(): string;
204
161
  get data(): T;
205
162
  get type(): string;
206
- get datacontenttype(): Nullable<string>;
207
- get specversion(): Nullable<string>;
208
- get source(): Nullable<string>;
209
- get time(): Nullable<string>;
210
- readonly __doNotUseOrImplementIt: EnvelopeDTO<any>["__doNotUseOrImplementIt"];
163
+ get datacontenttype(): string | undefined;
164
+ get specversion(): string | undefined;
165
+ get source(): string | undefined;
166
+ get time(): string | undefined;
211
167
  }
212
168
  export declare namespace Envelope {
213
169
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -229,35 +185,25 @@ export declare namespace Envelope {
229
185
  }
230
186
  export declare interface WithEnvelopeData<T> {
231
187
  readonly data: T;
232
- readonly __doNotUseOrImplementIt: {
233
- readonly "f2.dsl.cqrs.envelope.WithEnvelopeData": unique symbol;
234
- };
235
188
  }
236
189
  export declare interface WithEnvelopeId {
237
190
  readonly id: string;
238
- readonly __doNotUseOrImplementIt: {
239
- readonly "f2.dsl.cqrs.envelope.WithEnvelopeId": unique symbol;
240
- };
241
191
  }
242
192
  export declare interface F2ErrorDTO extends Problem {
243
- readonly id: Nullable<string>;
193
+ readonly id?: string;
244
194
  readonly timestamp: string;
245
195
  readonly code: number;
246
- readonly requestId: Nullable<string>;
196
+ readonly requestId?: string;
247
197
  readonly message: string;
248
- readonly __doNotUseOrImplementIt: {
249
- readonly "f2.dsl.cqrs.error.F2ErrorDTO": unique symbol;
250
- } & Problem["__doNotUseOrImplementIt"];
251
198
  }
252
199
  export declare class F2Error implements F2ErrorDTO {
253
- constructor(message: string, id?: Nullable<string>, timestamp?: string, code?: number, requestId?: Nullable<string>);
200
+ constructor(message: string, id?: string, timestamp?: string, code?: number, requestId?: string);
254
201
  get message(): string;
255
- get id(): Nullable<string>;
202
+ get id(): string | undefined;
256
203
  get timestamp(): string;
257
204
  get code(): number;
258
- get requestId(): Nullable<string>;
205
+ get requestId(): string | undefined;
259
206
  toString(): string;
260
- readonly __doNotUseOrImplementIt: F2ErrorDTO["__doNotUseOrImplementIt"];
261
207
  }
262
208
  export declare namespace F2Error {
263
209
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -266,7 +212,7 @@ export declare namespace F2Error {
266
212
  }
267
213
  }
268
214
  export declare class F2Exception extends /* RuntimeException */ Error {
269
- constructor(error: F2ErrorDTO, cause?: Nullable<Error>);
215
+ constructor(error: F2ErrorDTO, cause?: Error);
270
216
  get error(): F2ErrorDTO;
271
217
  }
272
218
  export declare namespace F2Exception {
@@ -281,7 +227,7 @@ export declare namespace F2Exception {
281
227
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
282
228
  namespace $metadata$ {
283
229
  abstract class constructor {
284
- invoke(message: string, id?: string, requestId?: string, code?: number, cause?: Nullable<Error>): F2Exception;
230
+ invoke(message: string, id?: string, requestId?: string, code?: number, cause?: Error): F2Exception;
285
231
  private constructor();
286
232
  }
287
233
  }
@@ -293,30 +239,20 @@ export declare interface Match<T> {
293
239
  not(): Match<T>;
294
240
  and(match: Match<T>): Match<T>;
295
241
  or(match: Match<T>): Match<T>;
296
- readonly __doNotUseOrImplementIt: {
297
- readonly "f2.dsl.cqrs.filter.Match": unique symbol;
298
- };
299
242
  }
300
243
  export declare interface SortDTO {
301
244
  readonly property: string;
302
245
  readonly ascending: boolean;
303
- readonly nullsFirst: Nullable<boolean>;
304
- readonly __doNotUseOrImplementIt: {
305
- readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
306
- };
246
+ readonly nullsFirst?: boolean;
307
247
  }
308
248
  export declare interface PageDTO<out OBJECT> {
309
249
  readonly total: number;
310
- readonly items: KtList<OBJECT>;
311
- readonly __doNotUseOrImplementIt: {
312
- readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
313
- };
250
+ readonly items: OBJECT[];
314
251
  }
315
252
  export declare class Page<out OBJECT> implements PageDTO<OBJECT> {
316
- constructor(total: number, items: KtList<OBJECT>);
253
+ constructor(total: number, items: OBJECT[]);
317
254
  get total(): number;
318
- get items(): KtList<OBJECT>;
319
- readonly __doNotUseOrImplementIt: PageDTO<any>["__doNotUseOrImplementIt"];
255
+ get items(): OBJECT[];
320
256
  }
321
257
  export declare namespace Page {
322
258
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -325,23 +261,16 @@ export declare namespace Page {
325
261
  }
326
262
  }
327
263
  export declare interface PageQueryDTO extends Query {
328
- readonly pagination: Nullable<OffsetPaginationDTO>;
329
- readonly __doNotUseOrImplementIt: {
330
- readonly "f2.dsl.cqrs.page.PageQueryDTO": unique symbol;
331
- } & Query["__doNotUseOrImplementIt"];
264
+ readonly pagination?: OffsetPaginationDTO;
332
265
  }
333
266
  export declare interface PageQueryResultDTO<out OBJECT> extends Event, PageDTO<OBJECT> {
334
267
  readonly total: number;
335
- readonly items: KtList<OBJECT>;
336
- readonly pagination: Nullable<OffsetPaginationDTO>;
337
- readonly __doNotUseOrImplementIt: {
338
- readonly "f2.dsl.cqrs.page.PageQueryResultDTO": unique symbol;
339
- } & PageDTO<any>["__doNotUseOrImplementIt"] & Event["__doNotUseOrImplementIt"];
268
+ readonly items: OBJECT[];
269
+ readonly pagination?: OffsetPaginationDTO;
340
270
  }
341
271
  export declare class PageQuery implements PageQueryDTO {
342
- constructor(pagination: Nullable<OffsetPaginationDTO>);
343
- get pagination(): Nullable<OffsetPaginationDTO>;
344
- readonly __doNotUseOrImplementIt: PageQueryDTO["__doNotUseOrImplementIt"];
272
+ constructor(pagination?: OffsetPaginationDTO);
273
+ get pagination(): OffsetPaginationDTO | undefined;
345
274
  }
346
275
  export declare namespace PageQuery {
347
276
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -350,11 +279,10 @@ export declare namespace PageQuery {
350
279
  }
351
280
  }
352
281
  export declare class PageQueryResult<out OBJECT> implements PageQueryResultDTO<OBJECT> {
353
- constructor(pagination: Nullable<OffsetPagination>, total: number, items: KtList<OBJECT>);
354
- get pagination(): Nullable<OffsetPagination>;
282
+ constructor(pagination?: OffsetPagination, total: number, items: OBJECT[]);
283
+ get pagination(): OffsetPagination | undefined;
355
284
  get total(): number;
356
- get items(): KtList<OBJECT>;
357
- readonly __doNotUseOrImplementIt: PageQueryResultDTO<any>["__doNotUseOrImplementIt"];
285
+ get items(): OBJECT[];
358
286
  }
359
287
  export declare namespace PageQueryResult {
360
288
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -363,29 +291,19 @@ export declare namespace PageQueryResult {
363
291
  }
364
292
  }
365
293
  export declare interface Pagination {
366
- readonly __doNotUseOrImplementIt: {
367
- readonly "f2.dsl.cqrs.page.Pagination": unique symbol;
368
- };
369
294
  }
370
295
  export declare interface OffsetPaginationDTO extends Pagination {
371
296
  readonly offset: number;
372
297
  readonly limit: number;
373
- readonly __doNotUseOrImplementIt: {
374
- readonly "f2.dsl.cqrs.page.OffsetPaginationDTO": unique symbol;
375
- } & Pagination["__doNotUseOrImplementIt"];
376
298
  }
377
299
  export declare interface PagePaginationDTO extends Pagination {
378
- readonly page: Nullable<number>;
379
- readonly size: Nullable<number>;
380
- readonly __doNotUseOrImplementIt: {
381
- readonly "f2.dsl.cqrs.page.PagePaginationDTO": unique symbol;
382
- } & Pagination["__doNotUseOrImplementIt"];
300
+ readonly page?: number;
301
+ readonly size?: number;
383
302
  }
384
303
  export declare class OffsetPagination implements OffsetPaginationDTO {
385
304
  constructor(offset: number, limit: number);
386
305
  get offset(): number;
387
306
  get limit(): number;
388
- readonly __doNotUseOrImplementIt: OffsetPaginationDTO["__doNotUseOrImplementIt"];
389
307
  }
390
308
  export declare namespace OffsetPagination {
391
309
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -394,10 +312,9 @@ export declare namespace OffsetPagination {
394
312
  }
395
313
  }
396
314
  export declare class PagePagination implements PagePaginationDTO {
397
- constructor(page: Nullable<number>, size: Nullable<number>);
398
- get page(): Nullable<number>;
399
- get size(): Nullable<number>;
400
- readonly __doNotUseOrImplementIt: PagePaginationDTO["__doNotUseOrImplementIt"];
315
+ constructor(page?: number, size?: number);
316
+ get page(): number | undefined;
317
+ get size(): number | undefined;
401
318
  }
402
319
  export declare namespace PagePagination {
403
320
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -410,7 +327,7 @@ export declare abstract class AuthRealm {
410
327
  get serverUrl(): string;
411
328
  get realmId(): string;
412
329
  get clientId(): string;
413
- get redirectUrl(): Nullable<string>;
330
+ get redirectUrl(): string | undefined;
414
331
  }
415
332
  export declare namespace AuthRealm {
416
333
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -429,7 +346,7 @@ export declare class AuthRealmPassword extends AuthRealm.$metadata$.constructor
429
346
  copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): AuthRealmPassword;
430
347
  toString(): string;
431
348
  hashCode(): number;
432
- equals(other: Nullable<any>): boolean;
349
+ equals(other?: any): boolean;
433
350
  }
434
351
  export declare namespace AuthRealmPassword {
435
352
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -438,17 +355,17 @@ export declare namespace AuthRealmPassword {
438
355
  }
439
356
  }
440
357
  export declare class AuthRealmClientSecret extends AuthRealm.$metadata$.constructor {
441
- constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string> | undefined, clientSecret: string, isPublic?: boolean);
358
+ constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string | undefined, clientSecret: string, isPublic?: boolean);
442
359
  get serverUrl(): string;
443
360
  get realmId(): string;
444
361
  get clientId(): string;
445
- get redirectUrl(): Nullable<string>;
362
+ get redirectUrl(): string | undefined;
446
363
  get clientSecret(): string;
447
364
  get isPublic(): boolean;
448
- copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: Nullable<string>, clientSecret?: string, isPublic?: boolean): AuthRealmClientSecret;
365
+ copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: string, clientSecret?: string, isPublic?: boolean): AuthRealmClientSecret;
449
366
  toString(): string;
450
367
  hashCode(): number;
451
- equals(other: Nullable<any>): boolean;
368
+ equals(other?: any): boolean;
452
369
  }
453
370
  export declare namespace AuthRealmClientSecret {
454
371
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -457,18 +374,18 @@ export declare namespace AuthRealmClientSecret {
457
374
  }
458
375
  }
459
376
  export declare class TokenInfo {
460
- constructor(accessToken: string, expiresIn: number, refreshExpiresIn: Nullable<number> | undefined, tokenType: string, scope: Nullable<string>, idToken?: Nullable<string>, refreshToken?: Nullable<string>);
377
+ constructor(accessToken: string, expiresIn: number, refreshExpiresIn?: number | undefined, tokenType: string, scope?: string, idToken?: string, refreshToken?: string);
461
378
  get accessToken(): string;
462
379
  get expiresIn(): number;
463
- get refreshExpiresIn(): Nullable<number>;
380
+ get refreshExpiresIn(): number | undefined;
464
381
  get tokenType(): string;
465
- get scope(): Nullable<string>;
466
- get idToken(): Nullable<string>;
467
- get refreshToken(): Nullable<string>;
468
- copy(accessToken?: string, expiresIn?: number, refreshExpiresIn?: Nullable<number>, tokenType?: string, scope?: Nullable<string>, idToken?: Nullable<string>, refreshToken?: Nullable<string>): TokenInfo;
382
+ get scope(): string | undefined;
383
+ get idToken(): string | undefined;
384
+ get refreshToken(): string | undefined;
385
+ copy(accessToken?: string, expiresIn?: number, refreshExpiresIn?: number, tokenType?: string, scope?: string, idToken?: string, refreshToken?: string): TokenInfo;
469
386
  toString(): string;
470
387
  hashCode(): number;
471
- equals(other: Nullable<any>): boolean;
388
+ equals(other?: any): boolean;
472
389
  }
473
390
  export declare namespace TokenInfo {
474
391
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -497,133 +414,79 @@ export declare namespace PrivilegePolicies {
497
414
  export declare interface FeatureDefineCommandDTO {
498
415
  readonly identifier: string;
499
416
  readonly description: string;
500
- readonly __doNotUseOrImplementIt: {
501
- readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefineCommandDTO": unique symbol;
502
- };
503
417
  }
504
418
  export declare interface FeatureDefinedEventDTO extends Event {
505
419
  readonly identifier: string;
506
- readonly __doNotUseOrImplementIt: {
507
- readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefinedEventDTO": unique symbol;
508
- } & Event["__doNotUseOrImplementIt"];
509
420
  }
510
421
  export declare interface FeatureDTO extends PrivilegeDTO {
511
422
  readonly id: string;
512
423
  readonly type: string;
513
424
  readonly identifier: string;
514
425
  readonly description: string;
515
- readonly __doNotUseOrImplementIt: {
516
- readonly "io.komune.im.f2.privilege.domain.feature.model.FeatureDTO": unique symbol;
517
- } & PrivilegeDTO["__doNotUseOrImplementIt"];
518
426
  }
519
427
  export declare interface FeatureGetQueryDTO {
520
428
  readonly identifier: string;
521
- readonly __doNotUseOrImplementIt: {
522
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetQueryDTO": unique symbol;
523
- };
524
429
  }
525
430
  export declare interface FeatureGetResultDTO {
526
- readonly item: Nullable<FeatureDTO>;
527
- readonly __doNotUseOrImplementIt: {
528
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetResultDTO": unique symbol;
529
- };
431
+ readonly item?: FeatureDTO;
530
432
  }
531
433
  export declare interface FeatureListQueryDTO {
532
- readonly __doNotUseOrImplementIt: {
533
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListQueryDTO": unique symbol;
534
- };
535
434
  }
536
435
  export declare interface FeatureListResultDTO {
537
- readonly items: KtList<FeatureDTO>;
538
- readonly __doNotUseOrImplementIt: {
539
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListResultDTO": unique symbol;
540
- };
436
+ readonly items: FeatureDTO[];
541
437
  }
542
438
  export declare interface PrivilegeDTO {
543
439
  readonly id: string;
544
440
  readonly identifier: string;
545
441
  readonly description: string;
546
442
  readonly type: string;
547
- readonly __doNotUseOrImplementIt: {
548
- readonly "io.komune.im.f2.privilege.domain.model.PrivilegeDTO": unique symbol;
549
- };
550
443
  }
551
444
  export declare interface PermissionDefineCommandDTO {
552
445
  readonly identifier: string;
553
446
  readonly description: string;
554
- readonly features: Nullable<KtList<KtList<string>>>;
555
- readonly __doNotUseOrImplementIt: {
556
- readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefineCommandDTO": unique symbol;
557
- };
447
+ readonly features?: string[][];
558
448
  }
559
449
  export declare interface PermissionDefinedEventDTO extends Event {
560
450
  readonly identifier: string;
561
- readonly __doNotUseOrImplementIt: {
562
- readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefinedEventDTO": unique symbol;
563
- } & Event["__doNotUseOrImplementIt"];
564
451
  }
565
452
  export declare interface PermissionDTO extends PrivilegeDTO {
566
453
  readonly id: string;
567
454
  readonly type: string;
568
455
  readonly identifier: string;
569
456
  readonly description: string;
570
- readonly features: Nullable<KtList<KtList<string>>>;
571
- readonly __doNotUseOrImplementIt: {
572
- readonly "io.komune.im.f2.privilege.domain.permission.model.PermissionDTO": unique symbol;
573
- } & PrivilegeDTO["__doNotUseOrImplementIt"];
457
+ readonly features?: string[][];
574
458
  }
575
459
  export declare interface PermissionGetQueryDTO {
576
460
  readonly identifier: string;
577
- readonly __doNotUseOrImplementIt: {
578
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetQueryDTO": unique symbol;
579
- };
580
461
  }
581
462
  export declare interface PermissionGetResultDTO {
582
- readonly item: Nullable<PermissionDTO>;
583
- readonly __doNotUseOrImplementIt: {
584
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetResultDTO": unique symbol;
585
- };
463
+ readonly item?: PermissionDTO;
586
464
  }
587
465
  export declare interface PermissionListQueryDTO {
588
- readonly __doNotUseOrImplementIt: {
589
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListQueryDTO": unique symbol;
590
- };
591
466
  }
592
467
  export declare interface PermissionListResultDTO {
593
- readonly items: KtList<PermissionDTO>;
594
- readonly __doNotUseOrImplementIt: {
595
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListResultDTO": unique symbol;
596
- };
468
+ readonly items: PermissionDTO[];
597
469
  }
598
470
  export declare interface RoleDefineCommandDTO {
599
471
  readonly identifier: string;
600
472
  readonly description: string;
601
- readonly targets: KtList<string>;
602
- readonly locale: KtMap<string, string>;
603
- readonly bindings: Nullable<KtMap<string, KtList<string>>>;
604
- readonly permissions: Nullable<KtList<string>>;
605
- readonly __doNotUseOrImplementIt: {
606
- readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefineCommandDTO": unique symbol;
607
- };
473
+ readonly targets: string[];
474
+ readonly locale: Record<string, string>;
475
+ readonly bindings?: Record<string, string[]>;
476
+ readonly permissions?: string[];
608
477
  }
609
478
  export declare interface RoleDefinedEventDTO extends Event {
610
479
  readonly identifier: string;
611
- readonly __doNotUseOrImplementIt: {
612
- readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefinedEventDTO": unique symbol;
613
- } & Event["__doNotUseOrImplementIt"];
614
480
  }
615
481
  export declare interface RoleDTO extends PrivilegeDTO {
616
482
  readonly id: string;
617
483
  readonly type: string;
618
484
  readonly identifier: string;
619
485
  readonly description: string;
620
- readonly targets: KtList<string>;
621
- readonly locale: KtMap<string, string>;
622
- readonly bindings: KtMap<string, KtList<RoleDTO>>;
623
- readonly permissions: KtList<string>;
624
- readonly __doNotUseOrImplementIt: {
625
- readonly "io.komune.im.f2.privilege.domain.role.model.RoleDTO": unique symbol;
626
- } & PrivilegeDTO["__doNotUseOrImplementIt"];
486
+ readonly targets: string[];
487
+ readonly locale: Record<string, string>;
488
+ readonly bindings: Record<string, RoleDTO[]>;
489
+ readonly permissions: string[];
627
490
  }
628
491
  export declare abstract class RoleTargetValues {
629
492
  static readonly getInstance: () => typeof RoleTargetValues.$metadata$.type;
@@ -645,25 +508,13 @@ export declare namespace RoleTargetValues {
645
508
  }
646
509
  export declare interface RoleGetQueryDTO {
647
510
  readonly identifier: string;
648
- readonly __doNotUseOrImplementIt: {
649
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetQueryDTO": unique symbol;
650
- };
651
511
  }
652
512
  export declare interface RoleGetResultDTO {
653
- readonly item: Nullable<RoleDTO>;
654
- readonly __doNotUseOrImplementIt: {
655
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetResultDTO": unique symbol;
656
- };
513
+ readonly item?: RoleDTO;
657
514
  }
658
515
  export declare interface RoleListQueryDTO {
659
- readonly target: Nullable<string>;
660
- readonly __doNotUseOrImplementIt: {
661
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleListQueryDTO": unique symbol;
662
- };
516
+ readonly target?: string;
663
517
  }
664
518
  export declare interface RoleListResultDTO {
665
- readonly items: KtList<RoleDTO>;
666
- readonly __doNotUseOrImplementIt: {
667
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleListResultDTO": unique symbol;
668
- };
519
+ readonly items: RoleDTO[];
669
520
  }
@@ -8282,24 +8282,24 @@ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOI
8282
8282
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
8283
8283
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl');
8284
8284
  protoOf(AbstractMutableList).asJsReadonlyArrayView = asJsReadonlyArrayView;
8285
- initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, VOID, [KtList, Collection]);
8285
+ initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, VOID, [Collection, KtList]);
8286
8286
  initMetadataForClass(SubList, 'SubList');
8287
8287
  protoOf(AbstractMap).asJsReadonlyMapView = asJsReadonlyMapView;
8288
8288
  initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
8289
8289
  initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, VOID, [KtMap]);
8290
- initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, VOID, [KtSet, Collection]);
8290
+ initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, VOID, [Collection, KtSet]);
8291
8291
  initMetadataForCompanion(Companion_2);
8292
- initMetadataForClass(ArrayList, 'ArrayList', ArrayList.y4, VOID, [KtList, Collection]);
8292
+ initMetadataForClass(ArrayList, 'ArrayList', ArrayList.y4, VOID, [Collection, KtList]);
8293
8293
  initMetadataForClass(HashMap, 'HashMap', HashMap.h5, VOID, [KtMap]);
8294
- initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, VOID, [KtSet, Collection]);
8294
+ initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, VOID, [Collection, KtSet]);
8295
8295
  initMetadataForClass(HashMapValues, 'HashMapValues', VOID, VOID, [Collection]);
8296
- initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, VOID, [KtSet, Collection]);
8296
+ initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, VOID, [Collection, KtSet]);
8297
8297
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet');
8298
8298
  initMetadataForClass(HashMapKeysDefault$iterator$1);
8299
8299
  initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault');
8300
8300
  initMetadataForClass(HashMapValuesDefault$iterator$1);
8301
8301
  initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault');
8302
- initMetadataForClass(HashSet, 'HashSet', HashSet.t6, VOID, [KtSet, Collection]);
8302
+ initMetadataForClass(HashSet, 'HashSet', HashSet.t6, VOID, [Collection, KtSet]);
8303
8303
  initMetadataForCompanion(Companion_3);
8304
8304
  initMetadataForClass(Itr, 'Itr');
8305
8305
  initMetadataForClass(KeysItr, 'KeysItr');
@@ -8568,4 +8568,4 @@ export {
8568
8568
  };
8569
8569
  //endregion
8570
8570
 
8571
- //# sourceMappingURL=im-0.26.0-im-f2-privilege-im-privilege-domain.mjs.map
8571
+ //# sourceMappingURL=connect-im-im-f2-privilege-im-privilege-domain.mjs.map