@komune-io/im-privilege-domain 0.22.0-alpha.fc04425 → 0.23.0-alpha.86ada5a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/connect-im-im-f2-privilege-im-privilege-domain.d.mts +633 -0
- package/connect-im-im-f2-privilege-im-privilege-domain.mjs +8463 -0
- package/connect-im-im-f2-privilege-im-privilege-domain.mjs.map +1 -0
- package/package.json +3 -5
- package/connect-im-im-f2-privilege-im-privilege-domain.d.ts +0 -396
- package/connect-im-im-f2-privilege-im-privilege-domain.js +0 -12514
- package/connect-im-im-f2-privilege-im-privilege-domain.js.map +0 -1
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare interface KtList<E> /* extends Collection<E> */ {
|
|
4
|
+
asJsReadonlyArrayView(): ReadonlyArray<E>;
|
|
5
|
+
readonly __doNotUseOrImplementIt: {
|
|
6
|
+
readonly "kotlin.collections.KtList": unique symbol;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare namespace KtList {
|
|
10
|
+
function fromJsArray<E>(array: ReadonlyArray<E>): KtList<E>;
|
|
11
|
+
}
|
|
12
|
+
export declare interface KtMap<K, V> {
|
|
13
|
+
asJsReadonlyMapView(): ReadonlyMap<K, V>;
|
|
14
|
+
readonly __doNotUseOrImplementIt: {
|
|
15
|
+
readonly "kotlin.collections.KtMap": unique symbol;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare namespace KtMap {
|
|
19
|
+
function fromJsMap<K, V>(map: ReadonlyMap<K, V>): KtMap<K, V>;
|
|
20
|
+
}
|
|
21
|
+
export declare interface AuthedUserDTO {
|
|
22
|
+
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
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export declare abstract class ImPermission {
|
|
32
|
+
private constructor();
|
|
33
|
+
static get IM_FORCE_MFA_OTP(): ImPermission & {
|
|
34
|
+
get name(): "IM_FORCE_MFA_OTP";
|
|
35
|
+
get ordinal(): 0;
|
|
36
|
+
};
|
|
37
|
+
static get IM_USER_READ(): ImPermission & {
|
|
38
|
+
get name(): "IM_USER_READ";
|
|
39
|
+
get ordinal(): 1;
|
|
40
|
+
};
|
|
41
|
+
static get IM_USER_ROLE_READ(): ImPermission & {
|
|
42
|
+
get name(): "IM_USER_ROLE_READ";
|
|
43
|
+
get ordinal(): 2;
|
|
44
|
+
};
|
|
45
|
+
static get IM_USER_WRITE(): ImPermission & {
|
|
46
|
+
get name(): "IM_USER_WRITE";
|
|
47
|
+
get ordinal(): 3;
|
|
48
|
+
};
|
|
49
|
+
static get IM_ORGANIZATION_READ(): ImPermission & {
|
|
50
|
+
get name(): "IM_ORGANIZATION_READ";
|
|
51
|
+
get ordinal(): 4;
|
|
52
|
+
};
|
|
53
|
+
static get IM_ORGANIZATION_WRITE(): ImPermission & {
|
|
54
|
+
get name(): "IM_ORGANIZATION_WRITE";
|
|
55
|
+
get ordinal(): 5;
|
|
56
|
+
};
|
|
57
|
+
static get IM_MY_ORGANIZATION_WRITE(): ImPermission & {
|
|
58
|
+
get name(): "IM_MY_ORGANIZATION_WRITE";
|
|
59
|
+
get ordinal(): 6;
|
|
60
|
+
};
|
|
61
|
+
static get IM_ORGANIZATION_API_KEY_READ(): ImPermission & {
|
|
62
|
+
get name(): "IM_ORGANIZATION_API_KEY_READ";
|
|
63
|
+
get ordinal(): 7;
|
|
64
|
+
};
|
|
65
|
+
static get IM_ORGANIZATION_STATUS_WRITE(): ImPermission & {
|
|
66
|
+
get name(): "IM_ORGANIZATION_STATUS_WRITE";
|
|
67
|
+
get ordinal(): 8;
|
|
68
|
+
};
|
|
69
|
+
static get IM_APIKEY_READ(): ImPermission & {
|
|
70
|
+
get name(): "IM_APIKEY_READ";
|
|
71
|
+
get ordinal(): 9;
|
|
72
|
+
};
|
|
73
|
+
static get IM_APIKEY_WRITE(): ImPermission & {
|
|
74
|
+
get name(): "IM_APIKEY_WRITE";
|
|
75
|
+
get ordinal(): 10;
|
|
76
|
+
};
|
|
77
|
+
static get IM_SPACE_READ(): ImPermission & {
|
|
78
|
+
get name(): "IM_SPACE_READ";
|
|
79
|
+
get ordinal(): 11;
|
|
80
|
+
};
|
|
81
|
+
static get IM_SPACE_WRITE(): ImPermission & {
|
|
82
|
+
get name(): "IM_SPACE_WRITE";
|
|
83
|
+
get ordinal(): 12;
|
|
84
|
+
};
|
|
85
|
+
static get IM_ROLE_READ(): ImPermission & {
|
|
86
|
+
get name(): "IM_ROLE_READ";
|
|
87
|
+
get ordinal(): 13;
|
|
88
|
+
};
|
|
89
|
+
static get IM_ROLE_WRITE(): ImPermission & {
|
|
90
|
+
get name(): "IM_ROLE_WRITE";
|
|
91
|
+
get ordinal(): 14;
|
|
92
|
+
};
|
|
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";
|
|
94
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
|
|
95
|
+
get identifier(): string;
|
|
96
|
+
static values(): Array<ImPermission>;
|
|
97
|
+
static valueOf(value: string): ImPermission;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace ImPermission {
|
|
100
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
101
|
+
namespace $metadata$ {
|
|
102
|
+
const constructor: abstract new () => ImPermission;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export declare abstract class ExceptionCodes {
|
|
106
|
+
static readonly getInstance: () => typeof ExceptionCodes.$metadata$.type;
|
|
107
|
+
private constructor();
|
|
108
|
+
}
|
|
109
|
+
export declare namespace ExceptionCodes {
|
|
110
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
111
|
+
namespace $metadata$ {
|
|
112
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
113
|
+
private constructor();
|
|
114
|
+
}
|
|
115
|
+
abstract class constructor {
|
|
116
|
+
privilegeWrongTarget(): number;
|
|
117
|
+
private constructor();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export declare interface AddressDTO {
|
|
122
|
+
readonly street: string;
|
|
123
|
+
readonly postalCode: string;
|
|
124
|
+
readonly city: string;
|
|
125
|
+
readonly __doNotUseOrImplementIt: {
|
|
126
|
+
readonly "io.komune.im.commons.model.AddressDTO": unique symbol;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export declare interface F2Consumer<T> {
|
|
130
|
+
readonly __doNotUseOrImplementIt: {
|
|
131
|
+
readonly "f2.dsl.fnc.F2Consumer": unique symbol;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
export declare interface F2Function<T, R> {
|
|
135
|
+
readonly __doNotUseOrImplementIt: {
|
|
136
|
+
readonly "f2.dsl.fnc.F2Function": unique symbol;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
export declare interface F2Supplier<R> {
|
|
140
|
+
readonly __doNotUseOrImplementIt: {
|
|
141
|
+
readonly "f2.dsl.fnc.F2Supplier": unique symbol;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
export declare interface F2SupplierSingle<R> {
|
|
145
|
+
readonly __doNotUseOrImplementIt: {
|
|
146
|
+
readonly "f2.dsl.fnc.F2SupplierSingle": unique symbol;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export declare class Batch {
|
|
150
|
+
constructor(size?: number, concurrency?: number);
|
|
151
|
+
get size(): number;
|
|
152
|
+
get concurrency(): number;
|
|
153
|
+
copy(size?: number, concurrency?: number): Batch;
|
|
154
|
+
toString(): string;
|
|
155
|
+
hashCode(): number;
|
|
156
|
+
equals(other: Nullable<any>): boolean;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace Batch {
|
|
159
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
160
|
+
namespace $metadata$ {
|
|
161
|
+
const constructor: abstract new () => Batch;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
export declare interface Command extends Message {
|
|
165
|
+
readonly __doNotUseOrImplementIt: {
|
|
166
|
+
readonly "f2.dsl.cqrs.Command": unique symbol;
|
|
167
|
+
} & Message["__doNotUseOrImplementIt"];
|
|
168
|
+
}
|
|
169
|
+
export declare interface Event extends Message {
|
|
170
|
+
readonly __doNotUseOrImplementIt: {
|
|
171
|
+
readonly "f2.dsl.cqrs.Event": unique symbol;
|
|
172
|
+
} & Message["__doNotUseOrImplementIt"];
|
|
173
|
+
}
|
|
174
|
+
export declare interface Message {
|
|
175
|
+
readonly __doNotUseOrImplementIt: {
|
|
176
|
+
readonly "f2.dsl.cqrs.Message": unique symbol;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
export declare interface Problem extends Message {
|
|
180
|
+
readonly __doNotUseOrImplementIt: {
|
|
181
|
+
readonly "f2.dsl.cqrs.Problem": unique symbol;
|
|
182
|
+
} & Message["__doNotUseOrImplementIt"];
|
|
183
|
+
}
|
|
184
|
+
export declare interface Query extends Message {
|
|
185
|
+
readonly __doNotUseOrImplementIt: {
|
|
186
|
+
readonly "f2.dsl.cqrs.Query": unique symbol;
|
|
187
|
+
} & Message["__doNotUseOrImplementIt"];
|
|
188
|
+
}
|
|
189
|
+
export declare interface EnvelopeDTO<T> extends Message/*, WithEnvelopeId, WithEnvelopeData<T> */ {
|
|
190
|
+
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"];
|
|
198
|
+
}
|
|
199
|
+
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>);
|
|
201
|
+
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"];
|
|
207
|
+
}
|
|
208
|
+
export declare namespace Envelope {
|
|
209
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
210
|
+
namespace $metadata$ {
|
|
211
|
+
const constructor: abstract new <T>() => Envelope<T>;
|
|
212
|
+
}
|
|
213
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
214
|
+
private constructor();
|
|
215
|
+
}
|
|
216
|
+
namespace Companion {
|
|
217
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
218
|
+
namespace $metadata$ {
|
|
219
|
+
abstract class constructor /* implements SerializerFactory */ {
|
|
220
|
+
get $cachedDescriptor(): any/* SerialDescriptor */;
|
|
221
|
+
private constructor();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
export declare interface F2ErrorDTO extends Problem {
|
|
227
|
+
readonly id: Nullable<string>;
|
|
228
|
+
readonly timestamp: string;
|
|
229
|
+
readonly code: number;
|
|
230
|
+
readonly requestId: Nullable<string>;
|
|
231
|
+
readonly message: string;
|
|
232
|
+
readonly __doNotUseOrImplementIt: {
|
|
233
|
+
readonly "f2.dsl.cqrs.error.F2ErrorDTO": unique symbol;
|
|
234
|
+
} & Problem["__doNotUseOrImplementIt"];
|
|
235
|
+
}
|
|
236
|
+
export declare class F2Error implements F2ErrorDTO {
|
|
237
|
+
constructor(message: string, id?: Nullable<string>, timestamp?: string, code?: number, requestId?: Nullable<string>);
|
|
238
|
+
get message(): string;
|
|
239
|
+
get id(): Nullable<string>;
|
|
240
|
+
get timestamp(): string;
|
|
241
|
+
get code(): number;
|
|
242
|
+
get requestId(): Nullable<string>;
|
|
243
|
+
toString(): string;
|
|
244
|
+
readonly __doNotUseOrImplementIt: F2ErrorDTO["__doNotUseOrImplementIt"];
|
|
245
|
+
}
|
|
246
|
+
export declare namespace F2Error {
|
|
247
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
248
|
+
namespace $metadata$ {
|
|
249
|
+
const constructor: abstract new () => F2Error;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
export declare class F2Exception extends /* RuntimeException */ Error {
|
|
253
|
+
constructor(error: F2ErrorDTO, cause?: Nullable<Error>);
|
|
254
|
+
get error(): F2ErrorDTO;
|
|
255
|
+
}
|
|
256
|
+
export declare namespace F2Exception {
|
|
257
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
258
|
+
namespace $metadata$ {
|
|
259
|
+
const constructor: abstract new () => F2Exception;
|
|
260
|
+
}
|
|
261
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
262
|
+
private constructor();
|
|
263
|
+
}
|
|
264
|
+
namespace Companion {
|
|
265
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
266
|
+
namespace $metadata$ {
|
|
267
|
+
abstract class constructor {
|
|
268
|
+
invoke(message: string, id?: string, requestId?: string, code?: number, cause?: Nullable<Error>): F2Exception;
|
|
269
|
+
private constructor();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
export declare interface Match<T> {
|
|
275
|
+
readonly negative: boolean;
|
|
276
|
+
map<R>(transform: (p0: T) => R): Match<R>;
|
|
277
|
+
not(): Match<T>;
|
|
278
|
+
and(match: Match<T>): Match<T>;
|
|
279
|
+
or(match: Match<T>): Match<T>;
|
|
280
|
+
readonly __doNotUseOrImplementIt: {
|
|
281
|
+
readonly "f2.dsl.cqrs.filter.Match": unique symbol;
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
export declare interface SortDTO {
|
|
285
|
+
readonly property: string;
|
|
286
|
+
readonly ascending: boolean;
|
|
287
|
+
readonly nullsFirst: Nullable<boolean>;
|
|
288
|
+
readonly __doNotUseOrImplementIt: {
|
|
289
|
+
readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
export declare interface PageDTO<OBJECT> {
|
|
293
|
+
readonly total: number;
|
|
294
|
+
readonly items: KtList<OBJECT>;
|
|
295
|
+
readonly __doNotUseOrImplementIt: {
|
|
296
|
+
readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
export declare class Page<OBJECT> implements PageDTO<OBJECT> {
|
|
300
|
+
constructor(total: number, items: KtList<OBJECT>);
|
|
301
|
+
get total(): number;
|
|
302
|
+
get items(): KtList<OBJECT>;
|
|
303
|
+
readonly __doNotUseOrImplementIt: PageDTO<OBJECT>["__doNotUseOrImplementIt"];
|
|
304
|
+
}
|
|
305
|
+
export declare namespace Page {
|
|
306
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
307
|
+
namespace $metadata$ {
|
|
308
|
+
const constructor: abstract new <OBJECT>() => Page<OBJECT>;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
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"];
|
|
316
|
+
}
|
|
317
|
+
export declare interface PageQueryResultDTO<OBJECT> extends Event, PageDTO<OBJECT> {
|
|
318
|
+
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"];
|
|
324
|
+
}
|
|
325
|
+
export declare class PageQuery implements PageQueryDTO {
|
|
326
|
+
constructor(pagination: Nullable<OffsetPaginationDTO>);
|
|
327
|
+
get pagination(): Nullable<OffsetPaginationDTO>;
|
|
328
|
+
readonly __doNotUseOrImplementIt: PageQueryDTO["__doNotUseOrImplementIt"];
|
|
329
|
+
}
|
|
330
|
+
export declare namespace PageQuery {
|
|
331
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
332
|
+
namespace $metadata$ {
|
|
333
|
+
const constructor: abstract new () => PageQuery;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
export declare class PageQueryResult<OBJECT> implements PageQueryResultDTO<OBJECT> {
|
|
337
|
+
constructor(pagination: Nullable<OffsetPagination>, total: number, items: KtList<OBJECT>);
|
|
338
|
+
get pagination(): Nullable<OffsetPagination>;
|
|
339
|
+
get total(): number;
|
|
340
|
+
get items(): KtList<OBJECT>;
|
|
341
|
+
readonly __doNotUseOrImplementIt: PageQueryResultDTO<OBJECT>["__doNotUseOrImplementIt"];
|
|
342
|
+
}
|
|
343
|
+
export declare namespace PageQueryResult {
|
|
344
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
345
|
+
namespace $metadata$ {
|
|
346
|
+
const constructor: abstract new <OBJECT>() => PageQueryResult<OBJECT>;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
export declare interface Pagination {
|
|
350
|
+
readonly __doNotUseOrImplementIt: {
|
|
351
|
+
readonly "f2.dsl.cqrs.page.Pagination": unique symbol;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
export declare interface OffsetPaginationDTO extends Pagination {
|
|
355
|
+
readonly offset: number;
|
|
356
|
+
readonly limit: number;
|
|
357
|
+
readonly __doNotUseOrImplementIt: {
|
|
358
|
+
readonly "f2.dsl.cqrs.page.OffsetPaginationDTO": unique symbol;
|
|
359
|
+
} & Pagination["__doNotUseOrImplementIt"];
|
|
360
|
+
}
|
|
361
|
+
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"];
|
|
367
|
+
}
|
|
368
|
+
export declare class OffsetPagination implements OffsetPaginationDTO {
|
|
369
|
+
constructor(offset: number, limit: number);
|
|
370
|
+
get offset(): number;
|
|
371
|
+
get limit(): number;
|
|
372
|
+
readonly __doNotUseOrImplementIt: OffsetPaginationDTO["__doNotUseOrImplementIt"];
|
|
373
|
+
}
|
|
374
|
+
export declare namespace OffsetPagination {
|
|
375
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
376
|
+
namespace $metadata$ {
|
|
377
|
+
const constructor: abstract new () => OffsetPagination;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
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"];
|
|
385
|
+
}
|
|
386
|
+
export declare namespace PagePagination {
|
|
387
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
388
|
+
namespace $metadata$ {
|
|
389
|
+
const constructor: abstract new () => PagePagination;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
export declare abstract class AuthRealm {
|
|
393
|
+
protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string>);
|
|
394
|
+
get serverUrl(): string;
|
|
395
|
+
get realmId(): string;
|
|
396
|
+
get clientId(): string;
|
|
397
|
+
get redirectUrl(): Nullable<string>;
|
|
398
|
+
}
|
|
399
|
+
export declare namespace AuthRealm {
|
|
400
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
401
|
+
namespace $metadata$ {
|
|
402
|
+
const constructor: abstract new () => AuthRealm;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
export declare class AuthRealmPassword extends AuthRealm.$metadata$.constructor {
|
|
406
|
+
constructor(serverUrl: string, realmId: string, redirectUrl: string, clientId: string, username: string, password: string);
|
|
407
|
+
get serverUrl(): string;
|
|
408
|
+
get realmId(): string;
|
|
409
|
+
get redirectUrl(): string;
|
|
410
|
+
get clientId(): string;
|
|
411
|
+
get username(): string;
|
|
412
|
+
get password(): string;
|
|
413
|
+
copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): AuthRealmPassword;
|
|
414
|
+
toString(): string;
|
|
415
|
+
hashCode(): number;
|
|
416
|
+
equals(other: Nullable<any>): boolean;
|
|
417
|
+
}
|
|
418
|
+
export declare namespace AuthRealmPassword {
|
|
419
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
420
|
+
namespace $metadata$ {
|
|
421
|
+
const constructor: abstract new () => AuthRealmPassword;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
export declare class AuthRealmClientSecret extends AuthRealm.$metadata$.constructor {
|
|
425
|
+
constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string> | undefined, clientSecret: string, isPublic?: boolean);
|
|
426
|
+
get serverUrl(): string;
|
|
427
|
+
get realmId(): string;
|
|
428
|
+
get clientId(): string;
|
|
429
|
+
get redirectUrl(): Nullable<string>;
|
|
430
|
+
get clientSecret(): string;
|
|
431
|
+
get isPublic(): boolean;
|
|
432
|
+
copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: Nullable<string>, clientSecret?: string, isPublic?: boolean): AuthRealmClientSecret;
|
|
433
|
+
toString(): string;
|
|
434
|
+
hashCode(): number;
|
|
435
|
+
equals(other: Nullable<any>): boolean;
|
|
436
|
+
}
|
|
437
|
+
export declare namespace AuthRealmClientSecret {
|
|
438
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
439
|
+
namespace $metadata$ {
|
|
440
|
+
const constructor: abstract new () => AuthRealmClientSecret;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
export declare abstract class PrivilegePolicies {
|
|
444
|
+
static readonly getInstance: () => typeof PrivilegePolicies.$metadata$.type;
|
|
445
|
+
private constructor();
|
|
446
|
+
}
|
|
447
|
+
export declare namespace PrivilegePolicies {
|
|
448
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
449
|
+
namespace $metadata$ {
|
|
450
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
451
|
+
private constructor();
|
|
452
|
+
}
|
|
453
|
+
abstract class constructor {
|
|
454
|
+
canGet(authedUser: AuthedUserDTO): boolean;
|
|
455
|
+
canList(authedUser: AuthedUserDTO): boolean;
|
|
456
|
+
canDefine(authedUser: AuthedUserDTO): boolean;
|
|
457
|
+
private constructor();
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
export declare interface FeatureDefineCommandDTO {
|
|
462
|
+
readonly identifier: string;
|
|
463
|
+
readonly description: string;
|
|
464
|
+
readonly __doNotUseOrImplementIt: {
|
|
465
|
+
readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefineCommandDTO": unique symbol;
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
export declare interface FeatureDefinedEventDTO extends Event {
|
|
469
|
+
readonly identifier: string;
|
|
470
|
+
readonly __doNotUseOrImplementIt: {
|
|
471
|
+
readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefinedEventDTO": unique symbol;
|
|
472
|
+
} & Event["__doNotUseOrImplementIt"];
|
|
473
|
+
}
|
|
474
|
+
export declare interface FeatureDTO extends PrivilegeDTO {
|
|
475
|
+
readonly id: string;
|
|
476
|
+
readonly type: string;
|
|
477
|
+
readonly identifier: string;
|
|
478
|
+
readonly description: string;
|
|
479
|
+
readonly __doNotUseOrImplementIt: {
|
|
480
|
+
readonly "io.komune.im.f2.privilege.domain.feature.model.FeatureDTO": unique symbol;
|
|
481
|
+
} & PrivilegeDTO["__doNotUseOrImplementIt"];
|
|
482
|
+
}
|
|
483
|
+
export declare interface FeatureGetQueryDTO {
|
|
484
|
+
readonly identifier: string;
|
|
485
|
+
readonly __doNotUseOrImplementIt: {
|
|
486
|
+
readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetQueryDTO": unique symbol;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
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
|
+
};
|
|
494
|
+
}
|
|
495
|
+
export declare interface FeatureListQueryDTO {
|
|
496
|
+
readonly __doNotUseOrImplementIt: {
|
|
497
|
+
readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListQueryDTO": unique symbol;
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
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
|
+
};
|
|
505
|
+
}
|
|
506
|
+
export declare interface PrivilegeDTO {
|
|
507
|
+
readonly id: string;
|
|
508
|
+
readonly identifier: string;
|
|
509
|
+
readonly description: string;
|
|
510
|
+
readonly type: string;
|
|
511
|
+
readonly __doNotUseOrImplementIt: {
|
|
512
|
+
readonly "io.komune.im.f2.privilege.domain.model.PrivilegeDTO": unique symbol;
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
export declare interface PermissionDefineCommandDTO {
|
|
516
|
+
readonly identifier: string;
|
|
517
|
+
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
|
+
};
|
|
522
|
+
}
|
|
523
|
+
export declare interface PermissionDefinedEventDTO extends Event {
|
|
524
|
+
readonly identifier: string;
|
|
525
|
+
readonly __doNotUseOrImplementIt: {
|
|
526
|
+
readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefinedEventDTO": unique symbol;
|
|
527
|
+
} & Event["__doNotUseOrImplementIt"];
|
|
528
|
+
}
|
|
529
|
+
export declare interface PermissionDTO extends PrivilegeDTO {
|
|
530
|
+
readonly id: string;
|
|
531
|
+
readonly type: string;
|
|
532
|
+
readonly identifier: string;
|
|
533
|
+
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"];
|
|
538
|
+
}
|
|
539
|
+
export declare interface PermissionGetQueryDTO {
|
|
540
|
+
readonly identifier: string;
|
|
541
|
+
readonly __doNotUseOrImplementIt: {
|
|
542
|
+
readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetQueryDTO": unique symbol;
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
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
|
+
};
|
|
550
|
+
}
|
|
551
|
+
export declare interface PermissionListQueryDTO {
|
|
552
|
+
readonly __doNotUseOrImplementIt: {
|
|
553
|
+
readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListQueryDTO": unique symbol;
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
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
|
+
};
|
|
561
|
+
}
|
|
562
|
+
export declare interface RoleDefineCommandDTO {
|
|
563
|
+
readonly identifier: string;
|
|
564
|
+
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
|
+
};
|
|
572
|
+
}
|
|
573
|
+
export declare interface RoleDefinedEventDTO extends Event {
|
|
574
|
+
readonly identifier: string;
|
|
575
|
+
readonly __doNotUseOrImplementIt: {
|
|
576
|
+
readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefinedEventDTO": unique symbol;
|
|
577
|
+
} & Event["__doNotUseOrImplementIt"];
|
|
578
|
+
}
|
|
579
|
+
export declare interface RoleDTO extends PrivilegeDTO {
|
|
580
|
+
readonly id: string;
|
|
581
|
+
readonly type: string;
|
|
582
|
+
readonly identifier: string;
|
|
583
|
+
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"];
|
|
591
|
+
}
|
|
592
|
+
export declare abstract class RoleTargetValues {
|
|
593
|
+
static readonly getInstance: () => typeof RoleTargetValues.$metadata$.type;
|
|
594
|
+
private constructor();
|
|
595
|
+
}
|
|
596
|
+
export declare namespace RoleTargetValues {
|
|
597
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
598
|
+
namespace $metadata$ {
|
|
599
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
600
|
+
private constructor();
|
|
601
|
+
}
|
|
602
|
+
abstract class constructor {
|
|
603
|
+
organization(): string;
|
|
604
|
+
user(): string;
|
|
605
|
+
apiKey(): string;
|
|
606
|
+
private constructor();
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
export declare interface RoleGetQueryDTO {
|
|
611
|
+
readonly identifier: string;
|
|
612
|
+
readonly __doNotUseOrImplementIt: {
|
|
613
|
+
readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetQueryDTO": unique symbol;
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
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
|
+
};
|
|
621
|
+
}
|
|
622
|
+
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
|
+
};
|
|
627
|
+
}
|
|
628
|
+
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
|
+
};
|
|
633
|
+
}
|