@komune-io/im-user-domain 0.15.0 → 0.16.0-alpha.122b93b
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.
|
@@ -165,6 +165,10 @@ export declare namespace f2.client.ktor.http.plugin.model {
|
|
|
165
165
|
get clientId(): string;
|
|
166
166
|
get username(): string;
|
|
167
167
|
get password(): string;
|
|
168
|
+
copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): f2.client.ktor.http.plugin.model.AuthRealmPassword;
|
|
169
|
+
toString(): string;
|
|
170
|
+
hashCode(): number;
|
|
171
|
+
equals(other?: any): boolean;
|
|
168
172
|
}
|
|
169
173
|
class AuthRealmClientSecret extends f2.client.ktor.http.plugin.model.AuthRealm {
|
|
170
174
|
constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string, clientSecret: string, isPublic?: boolean);
|
|
@@ -174,12 +178,16 @@ export declare namespace f2.client.ktor.http.plugin.model {
|
|
|
174
178
|
get redirectUrl(): Nullable<string>;
|
|
175
179
|
get clientSecret(): string;
|
|
176
180
|
get isPublic(): boolean;
|
|
181
|
+
copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: string, clientSecret?: string, isPublic?: boolean): f2.client.ktor.http.plugin.model.AuthRealmClientSecret;
|
|
182
|
+
toString(): string;
|
|
183
|
+
hashCode(): number;
|
|
184
|
+
equals(other?: any): boolean;
|
|
177
185
|
}
|
|
178
186
|
}
|
|
179
187
|
export declare namespace f2.client.ktor.http {
|
|
180
188
|
class HttpClientBuilder {
|
|
181
189
|
constructor(json?: kotlinx.serialization.json.Json);
|
|
182
|
-
build(urlBase: string):
|
|
190
|
+
build(urlBase: string): f2.client.F2Client/* f2.client.ktor.http.HttpF2Client */;
|
|
183
191
|
static httpClient$default($this: f2.client.ktor.http.HttpClientBuilder, json?: kotlinx.serialization.json.Json): io.ktor.client.HttpClient;
|
|
184
192
|
}
|
|
185
193
|
}
|
|
@@ -232,49 +240,6 @@ export declare namespace io.komune.im.commons.model {
|
|
|
232
240
|
|
|
233
241
|
}
|
|
234
242
|
}
|
|
235
|
-
export declare namespace io.komune.im.commons.model {
|
|
236
|
-
abstract class AuthRealm {
|
|
237
|
-
protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string, space: string);
|
|
238
|
-
get serverUrl(): string;
|
|
239
|
-
get realmId(): string;
|
|
240
|
-
get clientId(): string;
|
|
241
|
-
get redirectUrl(): Nullable<string>;
|
|
242
|
-
get space(): string;
|
|
243
|
-
}
|
|
244
|
-
class AuthRealmPassword extends io.komune.im.commons.model.AuthRealm {
|
|
245
|
-
constructor(serverUrl: string, realmId: string, redirectUrl: string, clientId: string, username: string, password: string, space: string);
|
|
246
|
-
get serverUrl(): string;
|
|
247
|
-
get realmId(): string;
|
|
248
|
-
get redirectUrl(): string;
|
|
249
|
-
get clientId(): string;
|
|
250
|
-
get username(): string;
|
|
251
|
-
get password(): string;
|
|
252
|
-
get space(): string;
|
|
253
|
-
copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string, space?: string): io.komune.im.commons.model.AuthRealmPassword;
|
|
254
|
-
toString(): string;
|
|
255
|
-
hashCode(): number;
|
|
256
|
-
equals(other?: any): boolean;
|
|
257
|
-
}
|
|
258
|
-
class AuthRealmClientSecret extends io.komune.im.commons.model.AuthRealm {
|
|
259
|
-
constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string, clientSecret: string, space: string);
|
|
260
|
-
get serverUrl(): string;
|
|
261
|
-
get realmId(): string;
|
|
262
|
-
get clientId(): string;
|
|
263
|
-
get redirectUrl(): Nullable<string>;
|
|
264
|
-
get clientSecret(): string;
|
|
265
|
-
get space(): string;
|
|
266
|
-
copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: string, clientSecret?: string, space?: string): io.komune.im.commons.model.AuthRealmClientSecret;
|
|
267
|
-
toString(): string;
|
|
268
|
-
hashCode(): number;
|
|
269
|
-
equals(other?: any): boolean;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
export declare namespace io.komune.im.commons.http {
|
|
273
|
-
class ClientJs {
|
|
274
|
-
constructor();
|
|
275
|
-
protected doCall<T>(fnc: any /*Suspend functions are not supported*/): Promise<T>;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
243
|
export declare namespace io.komune.im.core.user.domain.command {
|
|
279
244
|
interface UserDeleteCommandDTO {
|
|
280
245
|
readonly id: string;
|
|
@@ -356,8 +321,8 @@ export declare namespace io.komune.im.f2.privilege.domain.role.command {
|
|
|
356
321
|
readonly description: string;
|
|
357
322
|
readonly targets: string[];
|
|
358
323
|
readonly locale: Record<string, string>;
|
|
359
|
-
readonly bindings?:
|
|
360
|
-
readonly permissions?:
|
|
324
|
+
readonly bindings?: Record<string, string[]>;
|
|
325
|
+
readonly permissions?: string[];
|
|
361
326
|
|
|
362
327
|
}
|
|
363
328
|
interface RoleDefinedEventDTO extends f2.dsl.cqrs.Event {
|
|
@@ -412,9 +377,9 @@ export declare namespace io.komune.im.f2.organization.domain.command {
|
|
|
412
377
|
readonly description?: string;
|
|
413
378
|
readonly address?: io.komune.im.commons.model.AddressDTO;
|
|
414
379
|
readonly website?: string;
|
|
415
|
-
readonly roles?:
|
|
380
|
+
readonly roles?: string[];
|
|
416
381
|
readonly parentOrganizationId?: string;
|
|
417
|
-
readonly attributes?:
|
|
382
|
+
readonly attributes?: Record<string, string>;
|
|
418
383
|
readonly status?: string;
|
|
419
384
|
|
|
420
385
|
}
|
|
@@ -439,8 +404,8 @@ export declare namespace io.komune.im.f2.organization.domain.command {
|
|
|
439
404
|
readonly id: string;
|
|
440
405
|
readonly disabledBy?: string;
|
|
441
406
|
readonly anonymize: boolean;
|
|
442
|
-
readonly attributes?:
|
|
443
|
-
readonly userAttributes?:
|
|
407
|
+
readonly attributes?: Record<string, string>;
|
|
408
|
+
readonly userAttributes?: Record<string, string>;
|
|
444
409
|
|
|
445
410
|
}
|
|
446
411
|
interface OrganizationDisabledEventDTO extends f2.dsl.cqrs.Event {
|
|
@@ -456,8 +421,8 @@ export declare namespace io.komune.im.f2.organization.domain.command {
|
|
|
456
421
|
readonly description?: string;
|
|
457
422
|
readonly address?: io.komune.im.commons.model.AddressDTO;
|
|
458
423
|
readonly website?: string;
|
|
459
|
-
readonly roles?:
|
|
460
|
-
readonly attributes?:
|
|
424
|
+
readonly roles?: string[];
|
|
425
|
+
readonly attributes?: Record<string, string>;
|
|
461
426
|
readonly status?: string;
|
|
462
427
|
|
|
463
428
|
}
|
|
@@ -492,7 +457,7 @@ export declare namespace io.komune.im.f2.organization.domain.model {
|
|
|
492
457
|
readonly status: string;
|
|
493
458
|
readonly disabledBy?: string;
|
|
494
459
|
readonly creationDate: number;
|
|
495
|
-
readonly disabledDate?:
|
|
460
|
+
readonly disabledDate?: number;
|
|
496
461
|
|
|
497
462
|
}
|
|
498
463
|
}
|
|
@@ -547,9 +512,9 @@ export declare namespace io.komune.im.f2.organization.domain.query {
|
|
|
547
512
|
interface OrganizationPageQueryDTO extends f2.dsl.cqrs.Query {
|
|
548
513
|
readonly name?: string;
|
|
549
514
|
readonly role?: string;
|
|
550
|
-
readonly roles?:
|
|
551
|
-
readonly attributes?:
|
|
552
|
-
readonly status?:
|
|
515
|
+
readonly roles?: string[];
|
|
516
|
+
readonly attributes?: Record<string, string>;
|
|
517
|
+
readonly status?: string[];
|
|
553
518
|
readonly withDisabled?: boolean;
|
|
554
519
|
readonly offset?: number;
|
|
555
520
|
readonly limit?: number;
|
|
@@ -581,7 +546,7 @@ export declare namespace io.komune.im.f2.user.domain.command {
|
|
|
581
546
|
readonly phone?: string;
|
|
582
547
|
readonly roles: string[];
|
|
583
548
|
readonly memberOf?: string;
|
|
584
|
-
readonly attributes?:
|
|
549
|
+
readonly attributes?: Record<string, string>;
|
|
585
550
|
readonly isEmailVerified: boolean;
|
|
586
551
|
readonly isPasswordTemporary: boolean;
|
|
587
552
|
readonly sendResetPassword: boolean;
|
|
@@ -608,7 +573,7 @@ export declare namespace io.komune.im.f2.user.domain.command {
|
|
|
608
573
|
readonly id: string;
|
|
609
574
|
readonly disabledBy?: string;
|
|
610
575
|
readonly anonymize: boolean;
|
|
611
|
-
readonly attributes?:
|
|
576
|
+
readonly attributes?: Record<string, string>;
|
|
612
577
|
|
|
613
578
|
}
|
|
614
579
|
interface UserDisabledEventDTO extends f2.dsl.cqrs.Event {
|
|
@@ -634,7 +599,8 @@ export declare namespace io.komune.im.f2.user.domain.command {
|
|
|
634
599
|
readonly address?: io.komune.im.commons.model.AddressDTO;
|
|
635
600
|
readonly phone?: string;
|
|
636
601
|
readonly roles: string[];
|
|
637
|
-
readonly
|
|
602
|
+
readonly memberOf?: string;
|
|
603
|
+
readonly attributes?: Record<string, string>;
|
|
638
604
|
|
|
639
605
|
}
|
|
640
606
|
interface UserUpdatedEventDTO extends f2.dsl.cqrs.Event {
|
|
@@ -679,7 +645,7 @@ export declare namespace io.komune.im.f2.user.domain.model {
|
|
|
679
645
|
readonly enabled: boolean;
|
|
680
646
|
readonly disabledBy?: string;
|
|
681
647
|
readonly creationDate: number;
|
|
682
|
-
readonly disabledDate?:
|
|
648
|
+
readonly disabledDate?: number;
|
|
683
649
|
|
|
684
650
|
}
|
|
685
651
|
}
|
|
@@ -690,6 +656,7 @@ export declare namespace io.komune.im.f2.user.domain.policies {
|
|
|
690
656
|
checkRefList(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
|
|
691
657
|
canCreate(authedUser: io.komune.im.commons.auth.AuthedUserDTO, organizationId?: string): boolean;
|
|
692
658
|
canUpdate(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
|
|
659
|
+
canUpdateMemberOf(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
|
|
693
660
|
canDisable(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
|
|
694
661
|
canDelete(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
|
|
695
662
|
};
|
|
@@ -731,8 +698,8 @@ export declare namespace io.komune.im.f2.user.domain.query {
|
|
|
731
698
|
readonly name?: string;
|
|
732
699
|
readonly email?: string;
|
|
733
700
|
readonly role?: string;
|
|
734
|
-
readonly roles?:
|
|
735
|
-
readonly attributes?:
|
|
701
|
+
readonly roles?: string[];
|
|
702
|
+
readonly attributes?: Record<string, string>;
|
|
736
703
|
readonly withDisabled: boolean;
|
|
737
704
|
readonly offset?: number;
|
|
738
705
|
readonly limit?: number;
|