@komune-io/im-user-domain 0.16.5 → 0.17.0-alpha.20c6ff6

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,25 +1,3 @@
1
- export declare namespace f2.dsl.fnc {
2
- interface F2Function<T, R> {
3
- invoke(cmd: Array<T>): Promise<Array<R>>;
4
-
5
- }
6
- interface F2Supplier<R> {
7
- invoke(): Promise<Array<R>>;
8
-
9
- }
10
- interface F2Consumer<T> {
11
- invoke(cmd: Array<T>): Promise<void>;
12
-
13
- }
14
- }
15
- export declare namespace f2.client {
16
- interface F2Client {
17
- supplier<RESPONSE>(route: string, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Supplier<RESPONSE>;
18
- function<QUERY, RESPONSE>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Function<QUERY, RESPONSE>;
19
- consumer<QUERY>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<QUERY>;
20
- readonly type: f2.client.F2ClientType;
21
- }
22
- }
23
1
  export declare namespace f2.dsl.cqrs {
24
2
  interface Command extends f2.dsl.cqrs.Message {
25
3
 
@@ -35,13 +13,37 @@ export declare namespace f2.dsl.cqrs {
35
13
 
36
14
  }
37
15
  }
16
+ export declare namespace f2.dsl.cqrs {
17
+ interface Problem extends f2.dsl.cqrs.Message {
18
+
19
+ }
20
+ }
38
21
  export declare namespace f2.dsl.cqrs {
39
22
  interface Query extends f2.dsl.cqrs.Message {
40
23
 
41
24
  }
42
25
  }
26
+ export declare namespace f2.dsl.cqrs.envelope {
27
+ interface EnvelopeDTO<T> /* extends f2.dsl.cqrs.envelope.WithEnvelopeId, f2.dsl.cqrs.envelope.WithEnvelopeData<T> */ {
28
+ readonly type: string;
29
+ readonly datacontenttype?: string;
30
+ readonly specversion?: string;
31
+ readonly source?: string;
32
+ readonly time?: string;
33
+
34
+ }
35
+ class Envelope<T> implements f2.dsl.cqrs.envelope.EnvelopeDTO<T> {
36
+ constructor(id: string, data: T, type: string, datacontenttype?: string, specversion?: string, source?: string, time?: string);
37
+ get type(): string;
38
+ get datacontenttype(): Nullable<string>;
39
+ get specversion(): Nullable<string>;
40
+ get source(): Nullable<string>;
41
+ get time(): Nullable<string>;
42
+
43
+ }
44
+ }
43
45
  export declare namespace f2.dsl.cqrs.error {
44
- interface F2ErrorDTO {
46
+ interface F2ErrorDTO extends f2.dsl.cqrs.Problem {
45
47
  readonly id?: string;
46
48
  readonly timestamp: string;
47
49
  readonly code: number;
@@ -149,6 +151,32 @@ export declare namespace f2.dsl.cqrs.page {
149
151
 
150
152
  }
151
153
  }
154
+ export declare namespace f2.dsl.fnc {
155
+ interface F2Function<T, R> {
156
+ invokePromise(cmds: Array<T>): Promise<Array<R>>;
157
+
158
+ }
159
+ interface F2Consumer<T> {
160
+ invokePromise(cmds: Array<T>): Promise<void>;
161
+
162
+ }
163
+ interface F2Supplier<R> {
164
+ invokePromise(): Promise<Array<R>>;
165
+
166
+ }
167
+ interface F2SupplierSingle<R> {
168
+ invokePromise(): Promise<R>;
169
+
170
+ }
171
+ }
172
+ export declare namespace f2.client {
173
+ interface F2Client {
174
+ supplier<RESPONSE>(route: string, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Supplier<RESPONSE>;
175
+ function<QUERY, RESPONSE>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Function<QUERY, RESPONSE>;
176
+ consumer<QUERY>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<QUERY>;
177
+ readonly type: f2.client.F2ClientType;
178
+ }
179
+ }
152
180
  export declare namespace f2.client.ktor.http.plugin.model {
153
181
  abstract class AuthRealm {
154
182
  protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string);
@@ -186,9 +214,25 @@ export declare namespace f2.client.ktor.http.plugin.model {
186
214
  }
187
215
  export declare namespace f2.client.ktor.http {
188
216
  class HttpClientBuilder {
189
- constructor(json?: kotlinx.serialization.json.Json);
190
- build(urlBase: string): f2.client.F2Client/* f2.client.ktor.http.HttpF2Client */;
191
- static httpClient$default($this: f2.client.ktor.http.HttpClientBuilder, json?: kotlinx.serialization.json.Json): io.ktor.client.HttpClient;
217
+ constructor(config?: Nullable<(p0: io.ktor.client.HttpClientConfig<io.ktor.client.engine.HttpClientEngineConfig>) => void>);
218
+ build(urlBase: string): f2.client.ktor.http.HttpF2Client;
219
+
220
+ }
221
+ }
222
+ export declare namespace f2.client.ktor.http {
223
+ function httpClientBuilderDefault(): f2.client.ktor.http.HttpClientBuilder;
224
+ function httpClientBuilderGenerics(config?: Nullable<(p0: any/* io.ktor.client.HttpClientConfig<UnknownType *> */) => void>): f2.client.ktor.http.HttpClientBuilder;
225
+ }
226
+ export declare namespace f2.client.ktor.http {
227
+ class HttpF2Client implements f2.client.F2Client {
228
+ constructor(httpClient: io.ktor.client.HttpClient, urlBase: string, json?: kotlinx.serialization.json.Json);
229
+ get httpClient(): io.ktor.client.HttpClient;
230
+ get urlBase(): string;
231
+ get json(): kotlinx.serialization.json.Json;
232
+ get type(): f2.client.F2ClientType;
233
+ supplier<RESPONSE>(route: string, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Supplier<RESPONSE>;
234
+ function<MSG, RESPONSE>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Function<MSG, RESPONSE>;
235
+ consumer<MSG>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<MSG>;
192
236
  }
193
237
  }
194
238
  export declare namespace f2.client.ktor.rsocket {
@@ -200,6 +244,20 @@ export declare namespace f2.client.ktor.rsocket {
200
244
  consumer<QUERY>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<QUERY>;
201
245
  }
202
246
  }
247
+ export declare namespace f2.client.ktor.rsocket.builder {
248
+ class RSocketF2ClientBuilder {
249
+ constructor(config?: Nullable<(p0: io.ktor.client.HttpClientConfig<io.ktor.client.engine.HttpClientEngineConfig>) => void>);
250
+ buildPromise(url: string, secure: boolean): Promise<f2.client.ktor.rsocket.RSocketF2Client>;
251
+ }
252
+ namespace RSocketF2ClientBuilder {
253
+ class $buildCOROUTINE$5 /* extends kotlin.coroutines.CoroutineImpl */ {
254
+ constructor(_this_: f2.client.ktor.rsocket.builder.RSocketF2ClientBuilder, url: string, secure: boolean, resultContinuation: kotlin.coroutines.Continuation<f2.client.ktor.rsocket.RSocketF2Client>);
255
+ }
256
+ class $rsocketClientCOROUTINE$6 /* extends kotlin.coroutines.CoroutineImpl */ {
257
+ constructor(_this_: f2.client.ktor.rsocket.builder.RSocketF2ClientBuilder, baseUrl: string, bearerJwt?: string, resultContinuation: kotlin.coroutines.Continuation<f2.client.ktor.rsocket.RSocketClient>);
258
+ }
259
+ }
260
+ }
203
261
  export declare namespace f2.client.ktor {
204
262
  abstract class Protocol {
205
263
  protected constructor();
@@ -267,6 +325,45 @@ export declare namespace io.komune.im.f2.privilege.domain {
267
325
  canDefine(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
268
326
  };
269
327
  }
328
+ export declare namespace io.komune.im.f2.privilege.domain.feature.command {
329
+ interface FeatureDefineCommandDTO {
330
+ readonly identifier: string;
331
+ readonly description: string;
332
+
333
+ }
334
+ interface FeatureDefinedEventDTO extends f2.dsl.cqrs.Event {
335
+ readonly identifier: string;
336
+
337
+ }
338
+ }
339
+ export declare namespace io.komune.im.f2.privilege.domain.feature.model {
340
+ interface FeatureDTO extends io.komune.im.f2.privilege.domain.model.PrivilegeDTO {
341
+ readonly id: string;
342
+ readonly type: string;
343
+ readonly identifier: string;
344
+ readonly description: string;
345
+
346
+ }
347
+ }
348
+ export declare namespace io.komune.im.f2.privilege.domain.feature.query {
349
+ interface FeatureGetQueryDTO {
350
+ readonly identifier: string;
351
+
352
+ }
353
+ interface FeatureGetResultDTO {
354
+ readonly item?: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO;
355
+
356
+ }
357
+ }
358
+ export declare namespace io.komune.im.f2.privilege.domain.feature.query {
359
+ interface FeatureListQueryDTO {
360
+
361
+ }
362
+ interface FeatureListResultDTO {
363
+ readonly items: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO[];
364
+
365
+ }
366
+ }
270
367
  export declare namespace io.komune.im.f2.privilege.domain.model {
271
368
  interface PrivilegeDTO {
272
369
  readonly id: string;
@@ -280,6 +377,7 @@ export declare namespace io.komune.im.f2.privilege.domain.permission.command {
280
377
  interface PermissionDefineCommandDTO {
281
378
  readonly identifier: string;
282
379
  readonly description: string;
380
+ readonly features?: string[][];
283
381
 
284
382
  }
285
383
  interface PermissionDefinedEventDTO extends f2.dsl.cqrs.Event {
@@ -293,6 +391,7 @@ export declare namespace io.komune.im.f2.privilege.domain.permission.model {
293
391
  readonly type: string;
294
392
  readonly identifier: string;
295
393
  readonly description: string;
394
+ readonly features?: string[][];
296
395
 
297
396
  }
298
397
  }