@komune-io/im-privilege-domain 0.24.0-alpha.f3d42d4 → 0.26.0
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 → im-0.26.0-im-f2-privilege-im-privilege-domain.d.mts} +56 -20
- package/{connect-im-im-f2-privilege-im-privilege-domain.mjs → im-0.26.0-im-f2-privilege-im-privilege-domain.mjs} +2474 -2366
- package/im-0.26.0-im-f2-privilege-im-privilege-domain.mjs.map +1 -0
- package/package.json +2 -2
- package/connect-im-im-f2-privilege-im-privilege-domain.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
-
export declare interface KtList<E> /* extends Collection<E> */ {
|
|
3
|
+
export declare interface KtList<out E> /* extends Collection<E> */ {
|
|
4
4
|
asJsReadonlyArrayView(): ReadonlyArray<E>;
|
|
5
5
|
readonly __doNotUseOrImplementIt: {
|
|
6
6
|
readonly "kotlin.collections.KtList": unique symbol;
|
|
@@ -9,7 +9,7 @@ export declare interface KtList<E> /* extends Collection<E> */ {
|
|
|
9
9
|
export declare namespace KtList {
|
|
10
10
|
function fromJsArray<E>(array: ReadonlyArray<E>): KtList<E>;
|
|
11
11
|
}
|
|
12
|
-
export declare interface KtMap<K, V> {
|
|
12
|
+
export declare interface KtMap<K, out V> {
|
|
13
13
|
asJsReadonlyMapView(): ReadonlyMap<K, V>;
|
|
14
14
|
readonly __doNotUseOrImplementIt: {
|
|
15
15
|
readonly "kotlin.collections.KtMap": unique symbol;
|
|
@@ -38,8 +38,8 @@ export declare abstract class ImPermission {
|
|
|
38
38
|
get name(): "IM_USER_READ";
|
|
39
39
|
get ordinal(): 1;
|
|
40
40
|
};
|
|
41
|
-
static get
|
|
42
|
-
get name(): "
|
|
41
|
+
static get IM_USER_ROLE_WRITE(): ImPermission & {
|
|
42
|
+
get name(): "IM_USER_ROLE_WRITE";
|
|
43
43
|
get ordinal(): 2;
|
|
44
44
|
};
|
|
45
45
|
static get IM_USER_WRITE(): ImPermission & {
|
|
@@ -90,11 +90,11 @@ export declare abstract class ImPermission {
|
|
|
90
90
|
get name(): "IM_ROLE_WRITE";
|
|
91
91
|
get ordinal(): 14;
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
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];
|
|
94
|
+
static valueOf(value: string): ImPermission;
|
|
95
|
+
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
96
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
|
|
95
97
|
get identifier(): string;
|
|
96
|
-
static values(): Array<ImPermission>;
|
|
97
|
-
static valueOf(value: string): ImPermission;
|
|
98
98
|
}
|
|
99
99
|
export declare namespace ImPermission {
|
|
100
100
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -131,7 +131,7 @@ export declare interface F2Consumer<T> {
|
|
|
131
131
|
readonly "f2.dsl.fnc.F2Consumer": unique symbol;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
export declare interface F2Function<T, R> {
|
|
134
|
+
export declare interface F2Function<in T, out R> {
|
|
135
135
|
readonly __doNotUseOrImplementIt: {
|
|
136
136
|
readonly "f2.dsl.fnc.F2Function": unique symbol;
|
|
137
137
|
};
|
|
@@ -186,7 +186,9 @@ export declare interface Query extends Message {
|
|
|
186
186
|
readonly "f2.dsl.cqrs.Query": unique symbol;
|
|
187
187
|
} & Message["__doNotUseOrImplementIt"];
|
|
188
188
|
}
|
|
189
|
-
export declare interface EnvelopeDTO<T> extends
|
|
189
|
+
export declare interface EnvelopeDTO<T> extends WithEnvelopeId, WithEnvelopeData<T>, Message {
|
|
190
|
+
readonly id: string;
|
|
191
|
+
readonly data: T;
|
|
190
192
|
readonly type: string;
|
|
191
193
|
readonly datacontenttype: Nullable<string>;
|
|
192
194
|
readonly specversion: Nullable<string>;
|
|
@@ -194,16 +196,18 @@ export declare interface EnvelopeDTO<T> extends Message/*, WithEnvelopeId, WithE
|
|
|
194
196
|
readonly time: Nullable<string>;
|
|
195
197
|
readonly __doNotUseOrImplementIt: {
|
|
196
198
|
readonly "f2.dsl.cqrs.envelope.EnvelopeDTO": unique symbol;
|
|
197
|
-
} & Message["__doNotUseOrImplementIt"];
|
|
199
|
+
} & Message["__doNotUseOrImplementIt"] & WithEnvelopeData<any>["__doNotUseOrImplementIt"] & WithEnvelopeId["__doNotUseOrImplementIt"];
|
|
198
200
|
}
|
|
199
201
|
export declare class Envelope<T> implements EnvelopeDTO<T> {
|
|
200
202
|
constructor(id: string, data: T, type: string, datacontenttype?: Nullable<string>, specversion?: Nullable<string>, source?: Nullable<string>, time?: Nullable<string>);
|
|
203
|
+
get id(): string;
|
|
204
|
+
get data(): T;
|
|
201
205
|
get type(): string;
|
|
202
206
|
get datacontenttype(): Nullable<string>;
|
|
203
207
|
get specversion(): Nullable<string>;
|
|
204
208
|
get source(): Nullable<string>;
|
|
205
209
|
get time(): Nullable<string>;
|
|
206
|
-
readonly __doNotUseOrImplementIt: EnvelopeDTO<
|
|
210
|
+
readonly __doNotUseOrImplementIt: EnvelopeDTO<any>["__doNotUseOrImplementIt"];
|
|
207
211
|
}
|
|
208
212
|
export declare namespace Envelope {
|
|
209
213
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -223,6 +227,18 @@ export declare namespace Envelope {
|
|
|
223
227
|
}
|
|
224
228
|
}
|
|
225
229
|
}
|
|
230
|
+
export declare interface WithEnvelopeData<T> {
|
|
231
|
+
readonly data: T;
|
|
232
|
+
readonly __doNotUseOrImplementIt: {
|
|
233
|
+
readonly "f2.dsl.cqrs.envelope.WithEnvelopeData": unique symbol;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export declare interface WithEnvelopeId {
|
|
237
|
+
readonly id: string;
|
|
238
|
+
readonly __doNotUseOrImplementIt: {
|
|
239
|
+
readonly "f2.dsl.cqrs.envelope.WithEnvelopeId": unique symbol;
|
|
240
|
+
};
|
|
241
|
+
}
|
|
226
242
|
export declare interface F2ErrorDTO extends Problem {
|
|
227
243
|
readonly id: Nullable<string>;
|
|
228
244
|
readonly timestamp: string;
|
|
@@ -273,7 +289,7 @@ export declare namespace F2Exception {
|
|
|
273
289
|
}
|
|
274
290
|
export declare interface Match<T> {
|
|
275
291
|
readonly negative: boolean;
|
|
276
|
-
map<R>(transform: (
|
|
292
|
+
map<R>(transform: (value: T) => R): Match<R>;
|
|
277
293
|
not(): Match<T>;
|
|
278
294
|
and(match: Match<T>): Match<T>;
|
|
279
295
|
or(match: Match<T>): Match<T>;
|
|
@@ -289,18 +305,18 @@ export declare interface SortDTO {
|
|
|
289
305
|
readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
|
|
290
306
|
};
|
|
291
307
|
}
|
|
292
|
-
export declare interface PageDTO<OBJECT> {
|
|
308
|
+
export declare interface PageDTO<out OBJECT> {
|
|
293
309
|
readonly total: number;
|
|
294
310
|
readonly items: KtList<OBJECT>;
|
|
295
311
|
readonly __doNotUseOrImplementIt: {
|
|
296
312
|
readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
|
|
297
313
|
};
|
|
298
314
|
}
|
|
299
|
-
export declare class Page<OBJECT> implements PageDTO<OBJECT> {
|
|
315
|
+
export declare class Page<out OBJECT> implements PageDTO<OBJECT> {
|
|
300
316
|
constructor(total: number, items: KtList<OBJECT>);
|
|
301
317
|
get total(): number;
|
|
302
318
|
get items(): KtList<OBJECT>;
|
|
303
|
-
readonly __doNotUseOrImplementIt: PageDTO<
|
|
319
|
+
readonly __doNotUseOrImplementIt: PageDTO<any>["__doNotUseOrImplementIt"];
|
|
304
320
|
}
|
|
305
321
|
export declare namespace Page {
|
|
306
322
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -314,13 +330,13 @@ export declare interface PageQueryDTO extends Query {
|
|
|
314
330
|
readonly "f2.dsl.cqrs.page.PageQueryDTO": unique symbol;
|
|
315
331
|
} & Query["__doNotUseOrImplementIt"];
|
|
316
332
|
}
|
|
317
|
-
export declare interface PageQueryResultDTO<OBJECT> extends Event, PageDTO<OBJECT> {
|
|
333
|
+
export declare interface PageQueryResultDTO<out OBJECT> extends Event, PageDTO<OBJECT> {
|
|
318
334
|
readonly total: number;
|
|
319
335
|
readonly items: KtList<OBJECT>;
|
|
320
336
|
readonly pagination: Nullable<OffsetPaginationDTO>;
|
|
321
337
|
readonly __doNotUseOrImplementIt: {
|
|
322
338
|
readonly "f2.dsl.cqrs.page.PageQueryResultDTO": unique symbol;
|
|
323
|
-
} &
|
|
339
|
+
} & PageDTO<any>["__doNotUseOrImplementIt"] & Event["__doNotUseOrImplementIt"];
|
|
324
340
|
}
|
|
325
341
|
export declare class PageQuery implements PageQueryDTO {
|
|
326
342
|
constructor(pagination: Nullable<OffsetPaginationDTO>);
|
|
@@ -333,12 +349,12 @@ export declare namespace PageQuery {
|
|
|
333
349
|
const constructor: abstract new () => PageQuery;
|
|
334
350
|
}
|
|
335
351
|
}
|
|
336
|
-
export declare class PageQueryResult<OBJECT> implements PageQueryResultDTO<OBJECT> {
|
|
352
|
+
export declare class PageQueryResult<out OBJECT> implements PageQueryResultDTO<OBJECT> {
|
|
337
353
|
constructor(pagination: Nullable<OffsetPagination>, total: number, items: KtList<OBJECT>);
|
|
338
354
|
get pagination(): Nullable<OffsetPagination>;
|
|
339
355
|
get total(): number;
|
|
340
356
|
get items(): KtList<OBJECT>;
|
|
341
|
-
readonly __doNotUseOrImplementIt: PageQueryResultDTO<
|
|
357
|
+
readonly __doNotUseOrImplementIt: PageQueryResultDTO<any>["__doNotUseOrImplementIt"];
|
|
342
358
|
}
|
|
343
359
|
export declare namespace PageQueryResult {
|
|
344
360
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -390,7 +406,7 @@ export declare namespace PagePagination {
|
|
|
390
406
|
}
|
|
391
407
|
}
|
|
392
408
|
export declare abstract class AuthRealm {
|
|
393
|
-
|
|
409
|
+
private constructor();
|
|
394
410
|
get serverUrl(): string;
|
|
395
411
|
get realmId(): string;
|
|
396
412
|
get clientId(): string;
|
|
@@ -440,6 +456,26 @@ export declare namespace AuthRealmClientSecret {
|
|
|
440
456
|
const constructor: abstract new () => AuthRealmClientSecret;
|
|
441
457
|
}
|
|
442
458
|
}
|
|
459
|
+
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>);
|
|
461
|
+
get accessToken(): string;
|
|
462
|
+
get expiresIn(): number;
|
|
463
|
+
get refreshExpiresIn(): Nullable<number>;
|
|
464
|
+
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;
|
|
469
|
+
toString(): string;
|
|
470
|
+
hashCode(): number;
|
|
471
|
+
equals(other: Nullable<any>): boolean;
|
|
472
|
+
}
|
|
473
|
+
export declare namespace TokenInfo {
|
|
474
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
475
|
+
namespace $metadata$ {
|
|
476
|
+
const constructor: abstract new () => TokenInfo;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
443
479
|
export declare abstract class PrivilegePolicies {
|
|
444
480
|
static readonly getInstance: () => typeof PrivilegePolicies.$metadata$.type;
|
|
445
481
|
private constructor();
|