@komune-io/im-space-domain 0.20.0 → 0.21.0-alpha.059f3a3

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.
@@ -24,7 +24,7 @@ export declare namespace f2.dsl.cqrs {
24
24
  }
25
25
  }
26
26
  export declare namespace f2.dsl.cqrs.envelope {
27
- interface EnvelopeDTO<T> /* extends f2.dsl.cqrs.envelope.WithEnvelopeId, f2.dsl.cqrs.envelope.WithEnvelopeData<T> */ {
27
+ interface EnvelopeDTO<T> extends f2.dsl.cqrs.Message/*, f2.dsl.cqrs.envelope.WithEnvelopeId, f2.dsl.cqrs.envelope.WithEnvelopeData<T> */ {
28
28
  readonly type: string;
29
29
  readonly datacontenttype?: string;
30
30
  readonly specversion?: string;
@@ -191,12 +191,13 @@ export declare namespace io.komune.im.commons.auth {
191
191
  readonly id: string;
192
192
  readonly identifier?: string;
193
193
  readonly memberOf?: string;
194
- readonly roles: Array<string>;
194
+ readonly roles?: Array<string>;
195
+ readonly acr?: string;
195
196
 
196
197
  }
197
198
  }
198
199
  export declare namespace io.komune.im.commons.auth {
199
- type ImRole = "ORCHESTRATOR" | "ORCHESTRATOR_ADMIN" | "ORCHESTRATOR_USER" | "IM_USER_READ" | "IM_USER_WRITE" | "IM_ORGANIZATION_READ" | "IM_ORGANIZATION_WRITE" | "IM_MY_ORGANIZATION_WRITE" | "IM_APIKEY_READ" | "IM_APIKEY_WRITE" | "IM_SPACE_READ" | "IM_SPACE_WRITE" | "IM_ROLE_READ" | "IM_ROLE_WRITE";
200
+ type ImPermission = "IM_FORCE_MFA_OTP" | "IM_USER_READ" | "IM_USER_ROLE_READ" | "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";
200
201
  }
201
202
  export declare namespace io.komune.im.commons.exception {
202
203
  const ExceptionCodes: {
@@ -211,6 +212,18 @@ export declare namespace io.komune.im.commons.model {
211
212
 
212
213
  }
213
214
  }
215
+ export declare namespace f2.dsl.fnc.operators {
216
+ class Batch {
217
+ constructor(size?: number, concurrency?: number);
218
+ get size(): number;
219
+ get concurrency(): number;
220
+ copy(size?: number, concurrency?: number): f2.dsl.fnc.operators.Batch;
221
+ toString(): string;
222
+ hashCode(): number;
223
+ equals(other?: any): boolean;
224
+
225
+ }
226
+ }
214
227
  export declare namespace f2.dsl.fnc {
215
228
  interface F2Function<T, R> {
216
229
  invokePromise(cmds: Array<T>): Promise<Array<R>>;
@@ -232,9 +245,19 @@ export declare namespace f2.dsl.fnc {
232
245
  export declare namespace io.komune.im.f2.space.domain.command {
233
246
  interface SpaceDefineCommandDTO extends f2.dsl.cqrs.Command {
234
247
  readonly identifier: string;
248
+ readonly displayName?: string;
235
249
  readonly theme?: string;
236
250
  readonly smtp?: Record<string, string>;
237
251
  readonly locales?: string[];
252
+ readonly settings?: io.komune.im.f2.space.domain.command.SpaceSettingsDTO;
253
+ readonly mfa?: string[];
254
+
255
+ }
256
+ interface SpaceSettingsDTO {
257
+ readonly registrationAllowed?: boolean;
258
+ readonly rememberMe?: boolean;
259
+ readonly resetPasswordAllowed?: boolean;
260
+ readonly registrationEmailAsUsername?: boolean;
238
261
 
239
262
  }
240
263
  interface SpaceDefinedEventDTO extends f2.dsl.cqrs.Event {
@@ -255,6 +278,7 @@ export declare namespace io.komune.im.f2.space.domain.command {
255
278
  export declare namespace io.komune.im.f2.space.domain.model {
256
279
  interface SpaceDTO {
257
280
  readonly identifier?: string;
281
+ readonly displayName?: string;
258
282
  readonly smtp?: Record<string, string>;
259
283
  readonly theme?: string;
260
284
  readonly locales?: string[];