@komune-io/im-privilege-domain 0.15.0 → 0.16.0-alpha.5987f90

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): Promise<f2.client.F2Client/* f2.client.ktor.http.HttpF2Client */>;
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.f2.privilege.domain {
279
244
  const PrivilegePolicies: {
280
245
  canGet(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
@@ -336,8 +301,8 @@ export declare namespace io.komune.im.f2.privilege.domain.role.command {
336
301
  readonly description: string;
337
302
  readonly targets: string[];
338
303
  readonly locale: Record<string, string>;
339
- readonly bindings?: any/* Nullable<Record<string, string[]>> */;
340
- readonly permissions?: any/* Nullable<string>[] */;
304
+ readonly bindings?: Record<string, string[]>;
305
+ readonly permissions?: string[];
341
306
 
342
307
  }
343
308
  interface RoleDefinedEventDTO extends f2.dsl.cqrs.Event {