@komune-io/im-privilege-domain 0.24.0-alpha.f3d42d4 → 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,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<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, 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();
@@ -38,8 +28,8 @@ export declare abstract class ImPermission {
38
28
  get name(): "IM_USER_READ";
39
29
  get ordinal(): 1;
40
30
  };
41
- static get IM_USER_ROLE_READ(): ImPermission & {
42
- get name(): "IM_USER_ROLE_READ";
31
+ static get IM_USER_ROLE_WRITE(): ImPermission & {
32
+ get name(): "IM_USER_ROLE_WRITE";
43
33
  get ordinal(): 2;
44
34
  };
45
35
  static get IM_USER_WRITE(): ImPermission & {
@@ -90,11 +80,11 @@ export declare abstract class ImPermission {
90
80
  get name(): "IM_ROLE_WRITE";
91
81
  get ordinal(): 14;
92
82
  };
93
- 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";
83
+ static values(): [typeof ImPermission.IM_FORCE_MFA_OTP, typeof ImPermission.IM_USER_READ, typeof ImPermission.IM_USER_ROLE_WRITE, typeof ImPermission.IM_USER_WRITE, typeof ImPermission.IM_ORGANIZATION_READ, typeof ImPermission.IM_ORGANIZATION_WRITE, typeof ImPermission.IM_MY_ORGANIZATION_WRITE, typeof ImPermission.IM_ORGANIZATION_API_KEY_READ, typeof ImPermission.IM_ORGANIZATION_STATUS_WRITE, typeof ImPermission.IM_APIKEY_READ, typeof ImPermission.IM_APIKEY_WRITE, typeof ImPermission.IM_SPACE_READ, typeof ImPermission.IM_SPACE_WRITE, typeof ImPermission.IM_ROLE_READ, typeof ImPermission.IM_ROLE_WRITE];
84
+ static valueOf(value: string): ImPermission;
85
+ get name(): "IM_FORCE_MFA_OTP" | "IM_USER_READ" | "IM_USER_ROLE_WRITE" | "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";
94
86
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
95
87
  get identifier(): string;
96
- static values(): Array<ImPermission>;
97
- static valueOf(value: string): ImPermission;
98
88
  }
99
89
  export declare namespace ImPermission {
100
90
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -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
- export declare interface F2Function<T, R> {
135
- readonly __doNotUseOrImplementIt: {
136
- readonly "f2.dsl.fnc.F2Function": unique symbol;
137
- };
118
+ export declare interface F2Function<in T, out R> {
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,48 +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
- export declare interface EnvelopeDTO<T> extends Message/*, WithEnvelopeId, WithEnvelopeData<T> */ {
149
+ export declare interface EnvelopeDTO<T> extends WithEnvelopeId, WithEnvelopeData<T>, Message {
150
+ readonly id: string;
151
+ readonly data: T;
190
152
  readonly type: string;
191
- readonly datacontenttype: Nullable<string>;
192
- readonly specversion: Nullable<string>;
193
- readonly source: Nullable<string>;
194
- readonly time: Nullable<string>;
195
- readonly __doNotUseOrImplementIt: {
196
- readonly "f2.dsl.cqrs.envelope.EnvelopeDTO": unique symbol;
197
- } & Message["__doNotUseOrImplementIt"];
153
+ readonly datacontenttype?: string;
154
+ readonly specversion?: string;
155
+ readonly source?: string;
156
+ readonly time?: string;
198
157
  }
199
158
  export declare class Envelope<T> implements EnvelopeDTO<T> {
200
- 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);
160
+ get id(): string;
161
+ get data(): T;
201
162
  get type(): string;
202
- get datacontenttype(): Nullable<string>;
203
- get specversion(): Nullable<string>;
204
- get source(): Nullable<string>;
205
- get time(): Nullable<string>;
206
- readonly __doNotUseOrImplementIt: EnvelopeDTO<T>["__doNotUseOrImplementIt"];
163
+ get datacontenttype(): string | undefined;
164
+ get specversion(): string | undefined;
165
+ get source(): string | undefined;
166
+ get time(): string | undefined;
207
167
  }
208
168
  export declare namespace Envelope {
209
169
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -223,25 +183,27 @@ export declare namespace Envelope {
223
183
  }
224
184
  }
225
185
  }
186
+ export declare interface WithEnvelopeData<T> {
187
+ readonly data: T;
188
+ }
189
+ export declare interface WithEnvelopeId {
190
+ readonly id: string;
191
+ }
226
192
  export declare interface F2ErrorDTO extends Problem {
227
- readonly id: Nullable<string>;
193
+ readonly id?: string;
228
194
  readonly timestamp: string;
229
195
  readonly code: number;
230
- readonly requestId: Nullable<string>;
196
+ readonly requestId?: string;
231
197
  readonly message: string;
232
- readonly __doNotUseOrImplementIt: {
233
- readonly "f2.dsl.cqrs.error.F2ErrorDTO": unique symbol;
234
- } & Problem["__doNotUseOrImplementIt"];
235
198
  }
236
199
  export declare class F2Error implements F2ErrorDTO {
237
- 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);
238
201
  get message(): string;
239
- get id(): Nullable<string>;
202
+ get id(): string | undefined;
240
203
  get timestamp(): string;
241
204
  get code(): number;
242
- get requestId(): Nullable<string>;
205
+ get requestId(): string | undefined;
243
206
  toString(): string;
244
- readonly __doNotUseOrImplementIt: F2ErrorDTO["__doNotUseOrImplementIt"];
245
207
  }
246
208
  export declare namespace F2Error {
247
209
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -250,7 +212,7 @@ export declare namespace F2Error {
250
212
  }
251
213
  }
252
214
  export declare class F2Exception extends /* RuntimeException */ Error {
253
- constructor(error: F2ErrorDTO, cause?: Nullable<Error>);
215
+ constructor(error: F2ErrorDTO, cause?: Error);
254
216
  get error(): F2ErrorDTO;
255
217
  }
256
218
  export declare namespace F2Exception {
@@ -265,7 +227,7 @@ export declare namespace F2Exception {
265
227
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
266
228
  namespace $metadata$ {
267
229
  abstract class constructor {
268
- 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;
269
231
  private constructor();
270
232
  }
271
233
  }
@@ -273,34 +235,24 @@ export declare namespace F2Exception {
273
235
  }
274
236
  export declare interface Match<T> {
275
237
  readonly negative: boolean;
276
- map<R>(transform: (p0: T) => R): Match<R>;
238
+ map<R>(transform: (value: T) => R): Match<R>;
277
239
  not(): Match<T>;
278
240
  and(match: Match<T>): Match<T>;
279
241
  or(match: Match<T>): Match<T>;
280
- readonly __doNotUseOrImplementIt: {
281
- readonly "f2.dsl.cqrs.filter.Match": unique symbol;
282
- };
283
242
  }
284
243
  export declare interface SortDTO {
285
244
  readonly property: string;
286
245
  readonly ascending: boolean;
287
- readonly nullsFirst: Nullable<boolean>;
288
- readonly __doNotUseOrImplementIt: {
289
- readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
290
- };
246
+ readonly nullsFirst?: boolean;
291
247
  }
292
- export declare interface PageDTO<OBJECT> {
248
+ export declare interface PageDTO<out OBJECT> {
293
249
  readonly total: number;
294
- readonly items: KtList<OBJECT>;
295
- readonly __doNotUseOrImplementIt: {
296
- readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
297
- };
250
+ readonly items: OBJECT[];
298
251
  }
299
- export declare class Page<OBJECT> implements PageDTO<OBJECT> {
300
- constructor(total: number, items: KtList<OBJECT>);
252
+ export declare class Page<out OBJECT> implements PageDTO<OBJECT> {
253
+ constructor(total: number, items: OBJECT[]);
301
254
  get total(): number;
302
- get items(): KtList<OBJECT>;
303
- readonly __doNotUseOrImplementIt: PageDTO<OBJECT>["__doNotUseOrImplementIt"];
255
+ get items(): OBJECT[];
304
256
  }
305
257
  export declare namespace Page {
306
258
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -309,23 +261,16 @@ export declare namespace Page {
309
261
  }
310
262
  }
311
263
  export declare interface PageQueryDTO extends Query {
312
- readonly pagination: Nullable<OffsetPaginationDTO>;
313
- readonly __doNotUseOrImplementIt: {
314
- readonly "f2.dsl.cqrs.page.PageQueryDTO": unique symbol;
315
- } & Query["__doNotUseOrImplementIt"];
264
+ readonly pagination?: OffsetPaginationDTO;
316
265
  }
317
- export declare interface PageQueryResultDTO<OBJECT> extends Event, PageDTO<OBJECT> {
266
+ export declare interface PageQueryResultDTO<out OBJECT> extends Event, PageDTO<OBJECT> {
318
267
  readonly total: number;
319
- readonly items: KtList<OBJECT>;
320
- readonly pagination: Nullable<OffsetPaginationDTO>;
321
- readonly __doNotUseOrImplementIt: {
322
- readonly "f2.dsl.cqrs.page.PageQueryResultDTO": unique symbol;
323
- } & Event["__doNotUseOrImplementIt"] & PageDTO<OBJECT>["__doNotUseOrImplementIt"];
268
+ readonly items: OBJECT[];
269
+ readonly pagination?: OffsetPaginationDTO;
324
270
  }
325
271
  export declare class PageQuery implements PageQueryDTO {
326
- constructor(pagination: Nullable<OffsetPaginationDTO>);
327
- get pagination(): Nullable<OffsetPaginationDTO>;
328
- readonly __doNotUseOrImplementIt: PageQueryDTO["__doNotUseOrImplementIt"];
272
+ constructor(pagination?: OffsetPaginationDTO);
273
+ get pagination(): OffsetPaginationDTO | undefined;
329
274
  }
330
275
  export declare namespace PageQuery {
331
276
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -333,12 +278,11 @@ export declare namespace PageQuery {
333
278
  const constructor: abstract new () => PageQuery;
334
279
  }
335
280
  }
336
- export declare class PageQueryResult<OBJECT> implements PageQueryResultDTO<OBJECT> {
337
- constructor(pagination: Nullable<OffsetPagination>, total: number, items: KtList<OBJECT>);
338
- get pagination(): Nullable<OffsetPagination>;
281
+ export declare class PageQueryResult<out OBJECT> implements PageQueryResultDTO<OBJECT> {
282
+ constructor(pagination?: OffsetPagination, total: number, items: OBJECT[]);
283
+ get pagination(): OffsetPagination | undefined;
339
284
  get total(): number;
340
- get items(): KtList<OBJECT>;
341
- readonly __doNotUseOrImplementIt: PageQueryResultDTO<OBJECT>["__doNotUseOrImplementIt"];
285
+ get items(): OBJECT[];
342
286
  }
343
287
  export declare namespace PageQueryResult {
344
288
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -347,29 +291,19 @@ export declare namespace PageQueryResult {
347
291
  }
348
292
  }
349
293
  export declare interface Pagination {
350
- readonly __doNotUseOrImplementIt: {
351
- readonly "f2.dsl.cqrs.page.Pagination": unique symbol;
352
- };
353
294
  }
354
295
  export declare interface OffsetPaginationDTO extends Pagination {
355
296
  readonly offset: number;
356
297
  readonly limit: number;
357
- readonly __doNotUseOrImplementIt: {
358
- readonly "f2.dsl.cqrs.page.OffsetPaginationDTO": unique symbol;
359
- } & Pagination["__doNotUseOrImplementIt"];
360
298
  }
361
299
  export declare interface PagePaginationDTO extends Pagination {
362
- readonly page: Nullable<number>;
363
- readonly size: Nullable<number>;
364
- readonly __doNotUseOrImplementIt: {
365
- readonly "f2.dsl.cqrs.page.PagePaginationDTO": unique symbol;
366
- } & Pagination["__doNotUseOrImplementIt"];
300
+ readonly page?: number;
301
+ readonly size?: number;
367
302
  }
368
303
  export declare class OffsetPagination implements OffsetPaginationDTO {
369
304
  constructor(offset: number, limit: number);
370
305
  get offset(): number;
371
306
  get limit(): number;
372
- readonly __doNotUseOrImplementIt: OffsetPaginationDTO["__doNotUseOrImplementIt"];
373
307
  }
374
308
  export declare namespace OffsetPagination {
375
309
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -378,10 +312,9 @@ export declare namespace OffsetPagination {
378
312
  }
379
313
  }
380
314
  export declare class PagePagination implements PagePaginationDTO {
381
- constructor(page: Nullable<number>, size: Nullable<number>);
382
- get page(): Nullable<number>;
383
- get size(): Nullable<number>;
384
- readonly __doNotUseOrImplementIt: PagePaginationDTO["__doNotUseOrImplementIt"];
315
+ constructor(page?: number, size?: number);
316
+ get page(): number | undefined;
317
+ get size(): number | undefined;
385
318
  }
386
319
  export declare namespace PagePagination {
387
320
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -390,11 +323,11 @@ export declare namespace PagePagination {
390
323
  }
391
324
  }
392
325
  export declare abstract class AuthRealm {
393
- protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string>);
326
+ private constructor();
394
327
  get serverUrl(): string;
395
328
  get realmId(): string;
396
329
  get clientId(): string;
397
- get redirectUrl(): Nullable<string>;
330
+ get redirectUrl(): string | undefined;
398
331
  }
399
332
  export declare namespace AuthRealm {
400
333
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -413,7 +346,7 @@ export declare class AuthRealmPassword extends AuthRealm.$metadata$.constructor
413
346
  copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): AuthRealmPassword;
414
347
  toString(): string;
415
348
  hashCode(): number;
416
- equals(other: Nullable<any>): boolean;
349
+ equals(other?: any): boolean;
417
350
  }
418
351
  export declare namespace AuthRealmPassword {
419
352
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -422,17 +355,17 @@ export declare namespace AuthRealmPassword {
422
355
  }
423
356
  }
424
357
  export declare class AuthRealmClientSecret extends AuthRealm.$metadata$.constructor {
425
- 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);
426
359
  get serverUrl(): string;
427
360
  get realmId(): string;
428
361
  get clientId(): string;
429
- get redirectUrl(): Nullable<string>;
362
+ get redirectUrl(): string | undefined;
430
363
  get clientSecret(): string;
431
364
  get isPublic(): boolean;
432
- 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;
433
366
  toString(): string;
434
367
  hashCode(): number;
435
- equals(other: Nullable<any>): boolean;
368
+ equals(other?: any): boolean;
436
369
  }
437
370
  export declare namespace AuthRealmClientSecret {
438
371
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -440,6 +373,26 @@ export declare namespace AuthRealmClientSecret {
440
373
  const constructor: abstract new () => AuthRealmClientSecret;
441
374
  }
442
375
  }
376
+ export declare class TokenInfo {
377
+ constructor(accessToken: string, expiresIn: number, refreshExpiresIn?: number | undefined, tokenType: string, scope?: string, idToken?: string, refreshToken?: string);
378
+ get accessToken(): string;
379
+ get expiresIn(): number;
380
+ get refreshExpiresIn(): number | undefined;
381
+ get tokenType(): string;
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;
386
+ toString(): string;
387
+ hashCode(): number;
388
+ equals(other?: any): boolean;
389
+ }
390
+ export declare namespace TokenInfo {
391
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
392
+ namespace $metadata$ {
393
+ const constructor: abstract new () => TokenInfo;
394
+ }
395
+ }
443
396
  export declare abstract class PrivilegePolicies {
444
397
  static readonly getInstance: () => typeof PrivilegePolicies.$metadata$.type;
445
398
  private constructor();
@@ -461,133 +414,79 @@ export declare namespace PrivilegePolicies {
461
414
  export declare interface FeatureDefineCommandDTO {
462
415
  readonly identifier: string;
463
416
  readonly description: string;
464
- readonly __doNotUseOrImplementIt: {
465
- readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefineCommandDTO": unique symbol;
466
- };
467
417
  }
468
418
  export declare interface FeatureDefinedEventDTO extends Event {
469
419
  readonly identifier: string;
470
- readonly __doNotUseOrImplementIt: {
471
- readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefinedEventDTO": unique symbol;
472
- } & Event["__doNotUseOrImplementIt"];
473
420
  }
474
421
  export declare interface FeatureDTO extends PrivilegeDTO {
475
422
  readonly id: string;
476
423
  readonly type: string;
477
424
  readonly identifier: string;
478
425
  readonly description: string;
479
- readonly __doNotUseOrImplementIt: {
480
- readonly "io.komune.im.f2.privilege.domain.feature.model.FeatureDTO": unique symbol;
481
- } & PrivilegeDTO["__doNotUseOrImplementIt"];
482
426
  }
483
427
  export declare interface FeatureGetQueryDTO {
484
428
  readonly identifier: string;
485
- readonly __doNotUseOrImplementIt: {
486
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetQueryDTO": unique symbol;
487
- };
488
429
  }
489
430
  export declare interface FeatureGetResultDTO {
490
- readonly item: Nullable<FeatureDTO>;
491
- readonly __doNotUseOrImplementIt: {
492
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetResultDTO": unique symbol;
493
- };
431
+ readonly item?: FeatureDTO;
494
432
  }
495
433
  export declare interface FeatureListQueryDTO {
496
- readonly __doNotUseOrImplementIt: {
497
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListQueryDTO": unique symbol;
498
- };
499
434
  }
500
435
  export declare interface FeatureListResultDTO {
501
- readonly items: KtList<FeatureDTO>;
502
- readonly __doNotUseOrImplementIt: {
503
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListResultDTO": unique symbol;
504
- };
436
+ readonly items: FeatureDTO[];
505
437
  }
506
438
  export declare interface PrivilegeDTO {
507
439
  readonly id: string;
508
440
  readonly identifier: string;
509
441
  readonly description: string;
510
442
  readonly type: string;
511
- readonly __doNotUseOrImplementIt: {
512
- readonly "io.komune.im.f2.privilege.domain.model.PrivilegeDTO": unique symbol;
513
- };
514
443
  }
515
444
  export declare interface PermissionDefineCommandDTO {
516
445
  readonly identifier: string;
517
446
  readonly description: string;
518
- readonly features: Nullable<KtList<KtList<string>>>;
519
- readonly __doNotUseOrImplementIt: {
520
- readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefineCommandDTO": unique symbol;
521
- };
447
+ readonly features?: string[][];
522
448
  }
523
449
  export declare interface PermissionDefinedEventDTO extends Event {
524
450
  readonly identifier: string;
525
- readonly __doNotUseOrImplementIt: {
526
- readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefinedEventDTO": unique symbol;
527
- } & Event["__doNotUseOrImplementIt"];
528
451
  }
529
452
  export declare interface PermissionDTO extends PrivilegeDTO {
530
453
  readonly id: string;
531
454
  readonly type: string;
532
455
  readonly identifier: string;
533
456
  readonly description: string;
534
- readonly features: Nullable<KtList<KtList<string>>>;
535
- readonly __doNotUseOrImplementIt: {
536
- readonly "io.komune.im.f2.privilege.domain.permission.model.PermissionDTO": unique symbol;
537
- } & PrivilegeDTO["__doNotUseOrImplementIt"];
457
+ readonly features?: string[][];
538
458
  }
539
459
  export declare interface PermissionGetQueryDTO {
540
460
  readonly identifier: string;
541
- readonly __doNotUseOrImplementIt: {
542
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetQueryDTO": unique symbol;
543
- };
544
461
  }
545
462
  export declare interface PermissionGetResultDTO {
546
- readonly item: Nullable<PermissionDTO>;
547
- readonly __doNotUseOrImplementIt: {
548
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetResultDTO": unique symbol;
549
- };
463
+ readonly item?: PermissionDTO;
550
464
  }
551
465
  export declare interface PermissionListQueryDTO {
552
- readonly __doNotUseOrImplementIt: {
553
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListQueryDTO": unique symbol;
554
- };
555
466
  }
556
467
  export declare interface PermissionListResultDTO {
557
- readonly items: KtList<PermissionDTO>;
558
- readonly __doNotUseOrImplementIt: {
559
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListResultDTO": unique symbol;
560
- };
468
+ readonly items: PermissionDTO[];
561
469
  }
562
470
  export declare interface RoleDefineCommandDTO {
563
471
  readonly identifier: string;
564
472
  readonly description: string;
565
- readonly targets: KtList<string>;
566
- readonly locale: KtMap<string, string>;
567
- readonly bindings: Nullable<KtMap<string, KtList<string>>>;
568
- readonly permissions: Nullable<KtList<string>>;
569
- readonly __doNotUseOrImplementIt: {
570
- readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefineCommandDTO": unique symbol;
571
- };
473
+ readonly targets: string[];
474
+ readonly locale: Record<string, string>;
475
+ readonly bindings?: Record<string, string[]>;
476
+ readonly permissions?: string[];
572
477
  }
573
478
  export declare interface RoleDefinedEventDTO extends Event {
574
479
  readonly identifier: string;
575
- readonly __doNotUseOrImplementIt: {
576
- readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefinedEventDTO": unique symbol;
577
- } & Event["__doNotUseOrImplementIt"];
578
480
  }
579
481
  export declare interface RoleDTO extends PrivilegeDTO {
580
482
  readonly id: string;
581
483
  readonly type: string;
582
484
  readonly identifier: string;
583
485
  readonly description: string;
584
- readonly targets: KtList<string>;
585
- readonly locale: KtMap<string, string>;
586
- readonly bindings: KtMap<string, KtList<RoleDTO>>;
587
- readonly permissions: KtList<string>;
588
- readonly __doNotUseOrImplementIt: {
589
- readonly "io.komune.im.f2.privilege.domain.role.model.RoleDTO": unique symbol;
590
- } & PrivilegeDTO["__doNotUseOrImplementIt"];
486
+ readonly targets: string[];
487
+ readonly locale: Record<string, string>;
488
+ readonly bindings: Record<string, RoleDTO[]>;
489
+ readonly permissions: string[];
591
490
  }
592
491
  export declare abstract class RoleTargetValues {
593
492
  static readonly getInstance: () => typeof RoleTargetValues.$metadata$.type;
@@ -609,25 +508,13 @@ export declare namespace RoleTargetValues {
609
508
  }
610
509
  export declare interface RoleGetQueryDTO {
611
510
  readonly identifier: string;
612
- readonly __doNotUseOrImplementIt: {
613
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetQueryDTO": unique symbol;
614
- };
615
511
  }
616
512
  export declare interface RoleGetResultDTO {
617
- readonly item: Nullable<RoleDTO>;
618
- readonly __doNotUseOrImplementIt: {
619
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetResultDTO": unique symbol;
620
- };
513
+ readonly item?: RoleDTO;
621
514
  }
622
515
  export declare interface RoleListQueryDTO {
623
- readonly target: Nullable<string>;
624
- readonly __doNotUseOrImplementIt: {
625
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleListQueryDTO": unique symbol;
626
- };
516
+ readonly target?: string;
627
517
  }
628
518
  export declare interface RoleListResultDTO {
629
- readonly items: KtList<RoleDTO>;
630
- readonly __doNotUseOrImplementIt: {
631
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleListResultDTO": unique symbol;
632
- };
519
+ readonly items: RoleDTO[];
633
520
  }