@komune-io/im-privilege-domain 0.17.0-alpha.cb65802 → 0.17.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.
|
@@ -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,7 +151,7 @@ export declare namespace f2.dsl.cqrs.page {
|
|
|
149
151
|
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
|
-
export declare namespace f2.client.
|
|
154
|
+
export declare namespace f2.client.domain {
|
|
153
155
|
abstract class AuthRealm {
|
|
154
156
|
protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string);
|
|
155
157
|
get serverUrl(): string;
|
|
@@ -157,7 +159,7 @@ export declare namespace f2.client.ktor.http.plugin.model {
|
|
|
157
159
|
get clientId(): string;
|
|
158
160
|
get redirectUrl(): Nullable<string>;
|
|
159
161
|
}
|
|
160
|
-
class AuthRealmPassword extends f2.client.
|
|
162
|
+
class AuthRealmPassword extends f2.client.domain.AuthRealm {
|
|
161
163
|
constructor(serverUrl: string, realmId: string, redirectUrl: string, clientId: string, username: string, password: string);
|
|
162
164
|
get serverUrl(): string;
|
|
163
165
|
get realmId(): string;
|
|
@@ -165,56 +167,25 @@ export declare namespace f2.client.ktor.http.plugin.model {
|
|
|
165
167
|
get clientId(): string;
|
|
166
168
|
get username(): string;
|
|
167
169
|
get password(): string;
|
|
168
|
-
copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): f2.client.
|
|
170
|
+
copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): f2.client.domain.AuthRealmPassword;
|
|
169
171
|
toString(): string;
|
|
170
172
|
hashCode(): number;
|
|
171
173
|
equals(other?: any): boolean;
|
|
172
174
|
}
|
|
173
|
-
class AuthRealmClientSecret extends f2.client.
|
|
174
|
-
constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string, clientSecret: string, isPublic?: boolean);
|
|
175
|
+
class AuthRealmClientSecret extends f2.client.domain.AuthRealm {
|
|
176
|
+
constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string | undefined, clientSecret: string, isPublic?: boolean);
|
|
175
177
|
get serverUrl(): string;
|
|
176
178
|
get realmId(): string;
|
|
177
179
|
get clientId(): string;
|
|
178
180
|
get redirectUrl(): Nullable<string>;
|
|
179
181
|
get clientSecret(): string;
|
|
180
182
|
get isPublic(): boolean;
|
|
181
|
-
copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: string, clientSecret?: string, isPublic?: boolean): f2.client.
|
|
183
|
+
copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: string, clientSecret?: string, isPublic?: boolean): f2.client.domain.AuthRealmClientSecret;
|
|
182
184
|
toString(): string;
|
|
183
185
|
hashCode(): number;
|
|
184
186
|
equals(other?: any): boolean;
|
|
185
187
|
}
|
|
186
188
|
}
|
|
187
|
-
export declare namespace f2.client.ktor.http {
|
|
188
|
-
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;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
export declare namespace f2.client.ktor.rsocket {
|
|
195
|
-
class RSocketF2Client implements f2.client.F2Client {
|
|
196
|
-
constructor(rSocketClient: f2.client.ktor.rsocket.RSocketClient);
|
|
197
|
-
get type(): f2.client.F2ClientType;
|
|
198
|
-
supplier<RESPONSE>(route: string, typeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Supplier<RESPONSE>;
|
|
199
|
-
function<QUERY, RESPONSE>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Function<QUERY, RESPONSE>;
|
|
200
|
-
consumer<QUERY>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<QUERY>;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
export declare namespace f2.client.ktor {
|
|
204
|
-
abstract class Protocol {
|
|
205
|
-
protected constructor();
|
|
206
|
-
}
|
|
207
|
-
const HTTP: {
|
|
208
|
-
} & f2.client.ktor.Protocol;
|
|
209
|
-
const HTTPS: {
|
|
210
|
-
} & f2.client.ktor.Protocol;
|
|
211
|
-
const WS: {
|
|
212
|
-
} & f2.client.ktor.Protocol;
|
|
213
|
-
const WSS: {
|
|
214
|
-
} & f2.client.ktor.Protocol;
|
|
215
|
-
const TCP: {
|
|
216
|
-
} & f2.client.ktor.Protocol;
|
|
217
|
-
}
|
|
218
189
|
export declare namespace io.komune.im.commons.auth {
|
|
219
190
|
interface AuthedUserDTO {
|
|
220
191
|
readonly id: string;
|
|
@@ -240,6 +211,24 @@ export declare namespace io.komune.im.commons.model {
|
|
|
240
211
|
|
|
241
212
|
}
|
|
242
213
|
}
|
|
214
|
+
export declare namespace f2.dsl.fnc {
|
|
215
|
+
interface F2Function<T, R> {
|
|
216
|
+
invokePromise(cmds: Array<T>): Promise<Array<R>>;
|
|
217
|
+
|
|
218
|
+
}
|
|
219
|
+
interface F2Consumer<T> {
|
|
220
|
+
invokePromise(cmds: Array<T>): Promise<void>;
|
|
221
|
+
|
|
222
|
+
}
|
|
223
|
+
interface F2Supplier<R> {
|
|
224
|
+
invokePromise(): Promise<Array<R>>;
|
|
225
|
+
|
|
226
|
+
}
|
|
227
|
+
interface F2SupplierSingle<R> {
|
|
228
|
+
invokePromise(): Promise<R>;
|
|
229
|
+
|
|
230
|
+
}
|
|
231
|
+
}
|
|
243
232
|
export declare namespace io.komune.im.f2.privilege.domain {
|
|
244
233
|
const PrivilegePolicies: {
|
|
245
234
|
canGet(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
|