@omujs/omu 0.9.47 → 0.9.49
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.
- package/dist/dts/api/asset/extension.d.ts +25 -0
- package/dist/dts/api/asset/index.d.ts +2 -0
- package/dist/dts/api/dashboard/extension.d.ts +183 -0
- package/{src/api/dashboard/handler.ts → dist/dts/api/dashboard/handler.d.ts} +0 -2
- package/dist/dts/api/dashboard/index.d.ts +3 -0
- package/dist/dts/api/dashboard/packets.d.ts +73 -0
- package/dist/dts/api/endpoint/endpoint.d.ts +21 -0
- package/dist/dts/api/endpoint/extension.d.ts +17 -0
- package/{src/api/endpoint/index.ts → dist/dts/api/endpoint/index.d.ts} +0 -1
- package/dist/dts/api/endpoint/packets.d.ts +51 -0
- package/dist/dts/api/extension-registry.d.ts +8 -0
- package/dist/dts/api/extension.d.ts +11 -0
- package/dist/dts/api/http/extension.d.ts +41 -0
- package/dist/dts/api/http/http.d.ts +36 -0
- package/{src/api/http/index.ts → dist/dts/api/http/index.d.ts} +0 -1
- package/dist/dts/api/http/websocket.d.ts +125 -0
- package/dist/dts/api/i18n/extension.d.ts +19 -0
- package/{src/api/i18n/index.ts → dist/dts/api/i18n/index.d.ts} +0 -1
- package/{src/api/index.ts → dist/dts/api/index.d.ts} +0 -1
- package/dist/dts/api/logger/extension.d.ts +25 -0
- package/dist/dts/api/logger/index.d.ts +1 -0
- package/dist/dts/api/logger/packets.d.ts +18 -0
- package/dist/dts/api/permission/extension.d.ts +19 -0
- package/{src/api/permission/index.ts → dist/dts/api/permission/index.d.ts} +0 -1
- package/dist/dts/api/permission/permission.d.ts +25 -0
- package/dist/dts/api/plugin/extension.d.ts +43 -0
- package/{src/api/plugin/index.ts → dist/dts/api/plugin/index.d.ts} +0 -1
- package/{src/api/plugin/package-info.ts → dist/dts/api/plugin/package-info.d.ts} +0 -7
- package/dist/dts/api/registry/extension.d.ts +23 -0
- package/{src/api/registry/index.ts → dist/dts/api/registry/index.d.ts} +0 -1
- package/dist/dts/api/registry/packets.d.ts +20 -0
- package/{src/api/registry/registry.ts → dist/dts/api/registry/registry.d.ts} +11 -53
- package/dist/dts/api/server/extension.d.ts +61 -0
- package/dist/dts/api/server/index.d.ts +1 -0
- package/dist/dts/api/session/extension.d.ts +52 -0
- package/dist/dts/api/session/index.d.ts +1 -0
- package/dist/dts/api/signal/extension.d.ts +19 -0
- package/dist/dts/api/signal/packets.d.ts +21 -0
- package/dist/dts/api/signal/signal.d.ts +33 -0
- package/dist/dts/api/table/extension.d.ts +26 -0
- package/{src/api/table/index.ts → dist/dts/api/table/index.d.ts} +0 -1
- package/dist/dts/api/table/packets.d.ts +65 -0
- package/dist/dts/api/table/table.d.ts +75 -0
- package/dist/dts/app.d.ts +49 -0
- package/dist/dts/const.d.ts +2 -0
- package/dist/dts/errors.d.ts +36 -0
- package/dist/dts/event/index.d.ts +6 -0
- package/dist/dts/helper.d.ts +10 -0
- package/dist/dts/identifier.d.ts +51 -0
- package/dist/dts/index.d.ts +36 -0
- package/{src/localization/index.ts → dist/dts/localization/index.d.ts} +0 -1
- package/dist/dts/localization/locale.d.ts +735 -0
- package/{src/localization/localization.ts → dist/dts/localization/localization.d.ts} +0 -2
- package/dist/dts/lock.d.ts +6 -0
- package/dist/dts/network/connection.d.ts +17 -0
- package/dist/dts/network/encryption.d.ts +38 -0
- package/dist/dts/network/frame-transport.d.ts +22 -0
- package/{src/network/index.ts → dist/dts/network/index.d.ts} +0 -1
- package/dist/dts/network/network.d.ts +59 -0
- package/{src/network/packet/index.ts → dist/dts/network/packet/index.d.ts} +0 -1
- package/dist/dts/network/packet/packet-types.d.ts +84 -0
- package/dist/dts/network/packet/packet.d.ts +25 -0
- package/dist/dts/network/websocket-transport.d.ts +24 -0
- package/dist/dts/omu.d.ts +61 -0
- package/dist/dts/result.d.ts +26 -0
- package/dist/dts/serialize/bytebuffer.d.ts +73 -0
- package/dist/dts/serialize/serializer.d.ts +26 -0
- package/dist/dts/token.d.ts +14 -0
- package/dist/dts/version.d.ts +2 -0
- package/dist/esm/address.js +4 -0
- package/dist/esm/api/asset/extension.js +911 -0
- package/dist/esm/api/asset/index.js +909 -0
- package/dist/esm/api/dashboard/extension.js +1362 -0
- package/dist/esm/api/dashboard/handler.js +4 -0
- package/dist/esm/api/dashboard/index.js +1361 -0
- package/dist/esm/api/dashboard/packets.js +419 -0
- package/dist/esm/api/endpoint/endpoint.js +383 -0
- package/dist/esm/api/endpoint/extension.js +1096 -0
- package/dist/esm/api/endpoint/index.js +383 -0
- package/dist/esm/api/endpoint/packets.js +799 -0
- package/dist/esm/api/extension-registry.js +23 -0
- package/dist/esm/api/extension.js +278 -0
- package/dist/esm/api/http/extension.js +1420 -0
- package/dist/esm/api/http/http.js +448 -0
- package/dist/esm/api/http/index.js +1419 -0
- package/dist/esm/api/http/websocket.js +220 -0
- package/dist/esm/api/i18n/extension.js +1339 -0
- package/dist/esm/api/i18n/index.js +1337 -0
- package/dist/esm/api/index.js +295 -0
- package/dist/esm/api/logger/extension.js +856 -0
- package/dist/esm/api/logger/index.js +852 -0
- package/dist/esm/api/logger/packets.js +673 -0
- package/dist/esm/api/permission/extension.js +535 -0
- package/dist/esm/api/permission/index.js +294 -0
- package/dist/esm/api/permission/permission.js +294 -0
- package/dist/esm/api/plugin/extension.js +531 -0
- package/dist/esm/api/plugin/index.js +529 -0
- package/dist/esm/api/plugin/package-info.js +4 -0
- package/dist/esm/api/registry/extension.js +1286 -0
- package/dist/esm/api/registry/index.js +1285 -0
- package/dist/esm/api/registry/packets.js +694 -0
- package/dist/esm/api/registry/registry.js +383 -0
- package/dist/esm/api/server/extension.js +2140 -0
- package/dist/esm/api/server/index.js +2118 -0
- package/dist/esm/api/session/extension.js +2235 -0
- package/dist/esm/api/session/index.js +2235 -0
- package/dist/esm/api/signal/extension.js +1031 -0
- package/dist/esm/api/signal/index.js +379 -0
- package/dist/esm/api/signal/packets.js +690 -0
- package/dist/esm/api/signal/signal.js +379 -0
- package/dist/esm/api/table/extension.js +1553 -0
- package/dist/esm/api/table/index.js +1552 -0
- package/dist/esm/api/table/packets.js +904 -0
- package/dist/esm/api/table/table.js +383 -0
- package/dist/esm/app.js +264 -0
- package/dist/esm/const.js +11 -0
- package/dist/esm/errors.js +548 -0
- package/dist/esm/event/index.js +22 -0
- package/dist/esm/helper.js +15 -0
- package/dist/esm/identifier.js +266 -0
- package/dist/esm/index.js +5186 -0
- package/dist/esm/localization/index.js +742 -0
- package/dist/esm/localization/locale.js +742 -0
- package/dist/esm/localization/localization.js +4 -0
- package/dist/esm/lock.js +46 -0
- package/dist/esm/network/connection.js +293 -0
- package/dist/esm/network/encryption.js +986 -0
- package/dist/esm/network/frame-transport.js +531 -0
- package/dist/esm/network/index.js +1627 -0
- package/dist/esm/network/network.js +1368 -0
- package/dist/esm/network/packet/index.js +485 -0
- package/dist/esm/network/packet/packet-types.js +486 -0
- package/dist/esm/network/packet/packet.js +126 -0
- package/dist/esm/network/websocket-transport.js +493 -0
- package/dist/esm/omu.js +4945 -0
- package/dist/esm/result.js +68 -0
- package/dist/esm/serialize/bytebuffer.js +384 -0
- package/dist/esm/serialize/index.js +471 -0
- package/dist/esm/serialize/serializer.js +97 -0
- package/dist/esm/token.js +42 -0
- package/dist/esm/version.js +11 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -1
- package/CHANGELOG.md +0 -1837
- package/src/api/asset/extension.ts +0 -193
- package/src/api/asset/index.ts +0 -5
- package/src/api/dashboard/extension.ts +0 -651
- package/src/api/dashboard/index.ts +0 -38
- package/src/api/dashboard/packets.ts +0 -126
- package/src/api/endpoint/endpoint.ts +0 -56
- package/src/api/endpoint/extension.ts +0 -133
- package/src/api/endpoint/packets.ts +0 -176
- package/src/api/extension-registry.ts +0 -17
- package/src/api/extension.ts +0 -19
- package/src/api/http/extension.ts +0 -401
- package/src/api/http/http.ts +0 -79
- package/src/api/http/websocket.ts +0 -283
- package/src/api/i18n/extension.ts +0 -65
- package/src/api/logger/extension.ts +0 -75
- package/src/api/logger/index.ts +0 -4
- package/src/api/logger/packets.ts +0 -38
- package/src/api/permission/extension.ts +0 -107
- package/src/api/permission/permission.ts +0 -53
- package/src/api/plugin/extension.ts +0 -100
- package/src/api/registry/extension.ts +0 -326
- package/src/api/registry/packets.ts +0 -64
- package/src/api/server/extension.ts +0 -155
- package/src/api/server/index.ts +0 -11
- package/src/api/session/extension.ts +0 -205
- package/src/api/session/index.ts +0 -7
- package/src/api/signal/extension.ts +0 -125
- package/src/api/signal/packets.ts +0 -61
- package/src/api/signal/signal.ts +0 -67
- package/src/api/table/extension.ts +0 -554
- package/src/api/table/packets.ts +0 -252
- package/src/api/table/table.ts +0 -113
- package/src/app.ts +0 -95
- package/src/const.ts +0 -2
- package/src/errors.ts +0 -70
- package/src/event/index.ts +0 -18
- package/src/helper.ts +0 -16
- package/src/identifier.ts +0 -256
- package/src/index.ts +0 -87
- package/src/localization/locale.ts +0 -737
- package/src/lock.ts +0 -43
- package/src/network/connection.ts +0 -45
- package/src/network/encryption.ts +0 -221
- package/src/network/frame-transport.ts +0 -186
- package/src/network/network.ts +0 -322
- package/src/network/packet/packet-types.ts +0 -164
- package/src/network/packet/packet.ts +0 -55
- package/src/network/websocket-transport.ts +0 -123
- package/src/omu.ts +0 -156
- package/src/result.ts +0 -78
- package/src/serialize/bytebuffer.ts +0 -432
- package/src/serialize/serializer.ts +0 -149
- package/src/token.ts +0 -39
- package/src/version.ts +0 -2
- package/tsconfig.json +0 -18
- /package/{src/address.ts → dist/dts/address.d.ts} +0 -0
- /package/{src/api/signal/index.ts → dist/dts/api/signal/index.d.ts} +0 -0
- /package/{src/serialize/index.ts → dist/dts/serialize/index.d.ts} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { EventEmitter, Unlisten } from '../../event';
|
|
2
|
+
import { Identifier, IntoId } from '../../identifier';
|
|
3
|
+
import type { JsonType, Serializable } from '../../serialize';
|
|
4
|
+
export type TableConfig = {
|
|
5
|
+
cache_size: number;
|
|
6
|
+
};
|
|
7
|
+
export interface Table<T> {
|
|
8
|
+
readonly cache: ReadonlyMap<string, T>;
|
|
9
|
+
readonly event: TableEvents<T>;
|
|
10
|
+
get(key: string): Promise<T | undefined>;
|
|
11
|
+
getMany(...keys: string[]): Promise<Map<string, T>>;
|
|
12
|
+
add(...item: T[]): Promise<void>;
|
|
13
|
+
update(...item: T[]): Promise<void>;
|
|
14
|
+
remove(...items: T[]): Promise<void>;
|
|
15
|
+
clear(): Promise<void>;
|
|
16
|
+
has(key: string): Promise<boolean>;
|
|
17
|
+
hasMany<T extends Record<string, unknown>>(...keys: (keyof T)[]): Promise<{
|
|
18
|
+
[key in keyof T]: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
hasAll(...keys: string[]): Promise<boolean>;
|
|
21
|
+
hasAny(...keys: string[]): Promise<boolean>;
|
|
22
|
+
fetchItems({ limit, backward, cursor, }: {
|
|
23
|
+
limit: number;
|
|
24
|
+
backward?: boolean;
|
|
25
|
+
cursor?: string;
|
|
26
|
+
}): Promise<Map<string, T>>;
|
|
27
|
+
fetchRange({ start, end }: {
|
|
28
|
+
start: string;
|
|
29
|
+
end: string;
|
|
30
|
+
}): Promise<Map<string, T>>;
|
|
31
|
+
fetchAll(): Promise<Map<string, T>>;
|
|
32
|
+
iterate({ backward, cursor }: {
|
|
33
|
+
backward?: boolean;
|
|
34
|
+
cursor?: string;
|
|
35
|
+
}): AsyncIterable<T>;
|
|
36
|
+
size(): Promise<number>;
|
|
37
|
+
proxy(proxy: (item: T) => T | undefined): Unlisten;
|
|
38
|
+
setCacheSize(size: number): void;
|
|
39
|
+
setConfig(config: TableConfig): void;
|
|
40
|
+
setPermissions(permissions: TablePermissions): void;
|
|
41
|
+
listen(listener?: (items: Map<string, T>) => void): Unlisten;
|
|
42
|
+
}
|
|
43
|
+
export type TableEvents<T> = {
|
|
44
|
+
add: EventEmitter<[Map<string, T>]>;
|
|
45
|
+
update: EventEmitter<[Map<string, T>]>;
|
|
46
|
+
remove: EventEmitter<[Map<string, T>]>;
|
|
47
|
+
clear: EventEmitter<[]>;
|
|
48
|
+
cacheUpdate: EventEmitter<[Map<string, T>]>;
|
|
49
|
+
};
|
|
50
|
+
export type TablePermissions = {
|
|
51
|
+
all?: Identifier;
|
|
52
|
+
read?: Identifier;
|
|
53
|
+
write?: Identifier;
|
|
54
|
+
remove?: Identifier;
|
|
55
|
+
proxy?: Identifier;
|
|
56
|
+
};
|
|
57
|
+
export declare class TableType<T> {
|
|
58
|
+
id: Identifier;
|
|
59
|
+
serializer: Serializable<T, Uint8Array>;
|
|
60
|
+
keyFunction: (item: T) => string;
|
|
61
|
+
permissions?: TablePermissions | undefined;
|
|
62
|
+
constructor(id: Identifier, serializer: Serializable<T, Uint8Array>, keyFunction: (item: T) => string, permissions?: TablePermissions | undefined);
|
|
63
|
+
static createJson<T, D extends JsonType = JsonType>(identifier: IntoId, { name, key, permissions, serializer, }: {
|
|
64
|
+
name: string;
|
|
65
|
+
key: (item: T) => string;
|
|
66
|
+
permissions?: TablePermissions;
|
|
67
|
+
serializer?: Serializable<T, D>;
|
|
68
|
+
}): TableType<T>;
|
|
69
|
+
static createSerialized<T>(identifier: IntoId, { name, key, permissions, serializer, }: {
|
|
70
|
+
name: string;
|
|
71
|
+
key: (item: T) => string;
|
|
72
|
+
permissions?: TablePermissions;
|
|
73
|
+
serializer: Serializable<T, Uint8Array>;
|
|
74
|
+
}): TableType<T>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Identifier, IntoId } from './identifier';
|
|
2
|
+
import type { Locale } from './localization/locale.js';
|
|
3
|
+
import type { LocalizedText } from './localization/localization.js';
|
|
4
|
+
export type AppMetadata = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
name?: LocalizedText;
|
|
7
|
+
icon?: LocalizedText;
|
|
8
|
+
description?: LocalizedText;
|
|
9
|
+
image?: LocalizedText;
|
|
10
|
+
site?: LocalizedText;
|
|
11
|
+
repository?: LocalizedText;
|
|
12
|
+
authors?: LocalizedText;
|
|
13
|
+
license?: LocalizedText;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
};
|
|
16
|
+
export type AppType = 'app' | 'service' | 'remote' | 'plugin' | 'dashboard';
|
|
17
|
+
export type DependencySpecifier = {
|
|
18
|
+
version: string;
|
|
19
|
+
index?: string;
|
|
20
|
+
};
|
|
21
|
+
export type AppJson = {
|
|
22
|
+
id: string;
|
|
23
|
+
type: AppType;
|
|
24
|
+
parent_id?: string;
|
|
25
|
+
version?: string;
|
|
26
|
+
url?: string;
|
|
27
|
+
metadata?: AppMetadata;
|
|
28
|
+
dependencies?: Record<string, DependencySpecifier | string>;
|
|
29
|
+
};
|
|
30
|
+
export declare class App {
|
|
31
|
+
readonly id: Identifier;
|
|
32
|
+
readonly type: AppType;
|
|
33
|
+
readonly parentId?: Identifier;
|
|
34
|
+
readonly version?: string;
|
|
35
|
+
readonly url?: string;
|
|
36
|
+
readonly metadata?: AppMetadata;
|
|
37
|
+
readonly dependencies: Record<string, DependencySpecifier | string>;
|
|
38
|
+
constructor(id: IntoId, options: {
|
|
39
|
+
type?: AppType;
|
|
40
|
+
parentId?: IntoId;
|
|
41
|
+
version?: string;
|
|
42
|
+
url?: string;
|
|
43
|
+
metadata?: AppMetadata;
|
|
44
|
+
dependencies?: Record<string, DependencySpecifier | string>;
|
|
45
|
+
});
|
|
46
|
+
static deserialize(info: AppJson): App;
|
|
47
|
+
static serialize(data: App): AppJson;
|
|
48
|
+
join(...paths: string[]): App;
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DisconnectType } from './network/packet/packet-types.js';
|
|
2
|
+
export declare class OmuError extends Error {
|
|
3
|
+
constructor(message: string | null);
|
|
4
|
+
}
|
|
5
|
+
export declare class DisconnectReason extends OmuError {
|
|
6
|
+
type: DisconnectType;
|
|
7
|
+
message: string;
|
|
8
|
+
constructor(type: DisconnectType, message?: string);
|
|
9
|
+
}
|
|
10
|
+
export declare class ServerRestart extends DisconnectReason {
|
|
11
|
+
constructor(message: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class AnotherConnection extends DisconnectReason {
|
|
14
|
+
constructor(message: string);
|
|
15
|
+
}
|
|
16
|
+
export declare class PermissionDenied extends DisconnectReason {
|
|
17
|
+
constructor(message: string);
|
|
18
|
+
}
|
|
19
|
+
export declare class AppRemoved extends DisconnectReason {
|
|
20
|
+
constructor(message: string);
|
|
21
|
+
}
|
|
22
|
+
export declare class InvalidToken extends DisconnectReason {
|
|
23
|
+
constructor(message: string);
|
|
24
|
+
}
|
|
25
|
+
export declare class InvalidOrigin extends DisconnectReason {
|
|
26
|
+
constructor(message: string);
|
|
27
|
+
}
|
|
28
|
+
export declare class InvalidVersion extends DisconnectReason {
|
|
29
|
+
constructor(message: string);
|
|
30
|
+
}
|
|
31
|
+
export declare class InvalidPacket extends DisconnectReason {
|
|
32
|
+
constructor(message: string);
|
|
33
|
+
}
|
|
34
|
+
export declare class InternalError extends DisconnectReason {
|
|
35
|
+
constructor(message: string);
|
|
36
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ExtensionType } from './api';
|
|
2
|
+
import { App } from './app';
|
|
3
|
+
export type IntoId = Identifier | string | ExtensionType | App;
|
|
4
|
+
export declare class Identifier {
|
|
5
|
+
readonly namespace: string;
|
|
6
|
+
readonly path: string[];
|
|
7
|
+
constructor(namespace: string, ...path: string[]);
|
|
8
|
+
static serialize(identifier: Identifier): string;
|
|
9
|
+
static deserialize(json: string): Identifier;
|
|
10
|
+
static from(id: IntoId): Identifier;
|
|
11
|
+
static fromOptional(id: IntoId | undefined | null): Identifier | undefined;
|
|
12
|
+
static validate(namespace: string, path: string[]): void;
|
|
13
|
+
static format(namespace: string, ...path: string[]): string;
|
|
14
|
+
static fromKey(key: string): Identifier;
|
|
15
|
+
static fromUrl(url: string | URL): Identifier;
|
|
16
|
+
static namespaceFromUrl(url: string | URL): string;
|
|
17
|
+
get base(): Identifier;
|
|
18
|
+
toJson(): string;
|
|
19
|
+
static fromJson(json: string): Identifier;
|
|
20
|
+
key(): string;
|
|
21
|
+
isEqual(other: Identifier): boolean;
|
|
22
|
+
isNamespaceEqual(other: Identifier): boolean;
|
|
23
|
+
isSubpathOf(other: Identifier): boolean;
|
|
24
|
+
join(...path: string[]): Identifier;
|
|
25
|
+
}
|
|
26
|
+
export declare class IdentifierMap<T> {
|
|
27
|
+
private readonly map;
|
|
28
|
+
constructor(entries?: Iterable<[Identifier, T]>);
|
|
29
|
+
get size(): number;
|
|
30
|
+
set(identifier: Identifier, value: T): void;
|
|
31
|
+
get(identifier: Identifier): T | undefined;
|
|
32
|
+
has(identifier: Identifier): boolean;
|
|
33
|
+
delete(identifier: Identifier): void;
|
|
34
|
+
clear(): void;
|
|
35
|
+
keys(): IterableIterator<Identifier>;
|
|
36
|
+
values(): IterableIterator<T>;
|
|
37
|
+
entries(): IterableIterator<[Identifier, T]>;
|
|
38
|
+
[Symbol.iterator](): IterableIterator<[Identifier, T]>;
|
|
39
|
+
}
|
|
40
|
+
export declare class IdentifierSet {
|
|
41
|
+
private readonly set;
|
|
42
|
+
get size(): number;
|
|
43
|
+
add(identifier: Identifier): void;
|
|
44
|
+
has(identifier: Identifier): boolean;
|
|
45
|
+
delete(identifier: Identifier): void;
|
|
46
|
+
clear(): void;
|
|
47
|
+
keys(): IterableIterator<Identifier>;
|
|
48
|
+
values(): IterableIterator<Identifier>;
|
|
49
|
+
entries(): IterableIterator<[Identifier, Identifier]>;
|
|
50
|
+
[Symbol.iterator](): IterableIterator<[Identifier, Identifier]>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { AppIndexRegistry, type AppIndexRegistryJSON } from './api/server';
|
|
2
|
+
export { App, AppMetadata } from './app.js';
|
|
3
|
+
export { DisconnectReason } from './errors.js';
|
|
4
|
+
export { Identifier, IdentifierMap, IdentifierSet, IntoId } from './identifier';
|
|
5
|
+
export * as network from './network';
|
|
6
|
+
export { Omu } from './omu.js';
|
|
7
|
+
export { Serializer } from './serialize';
|
|
8
|
+
export type { Serializable } from './serialize';
|
|
9
|
+
export { BrowserSession, type SessionParam, type SessioTokenProvider as TokenProvider } from './token';
|
|
10
|
+
import { Identifier } from './identifier';
|
|
11
|
+
export declare const OmuPermissions: {
|
|
12
|
+
readonly ASSET_PERMISSION_ID: Identifier;
|
|
13
|
+
readonly DASHBOARD_APP_INSTALL_PERMISSION_ID: Identifier;
|
|
14
|
+
readonly DAShBOARD_DRAG_DROP_PERMISSION_ID: Identifier;
|
|
15
|
+
readonly DASHBOARD_OPEN_APP_PERMISSION_ID: Identifier;
|
|
16
|
+
readonly DASHBOARD_SET_PERMISSION_ID: Identifier;
|
|
17
|
+
readonly DASHBOARD_SPEECH_RECOGNITION_PERMISSION_ID: Identifier;
|
|
18
|
+
readonly DASHBOARD_WEBVIEW_PERMISSION_ID: Identifier;
|
|
19
|
+
readonly DASHOBARD_APP_EDIT_PERMISSION_ID: Identifier;
|
|
20
|
+
readonly DASHOBARD_APP_READ_PERMISSION_ID: Identifier;
|
|
21
|
+
readonly HTTP_REQUEST_PERMISSION_ID: Identifier;
|
|
22
|
+
readonly I18N_GET_LOCALES_PERMISSION_ID: Identifier;
|
|
23
|
+
readonly I18N_SET_LOCALES_PERMISSION_ID: Identifier;
|
|
24
|
+
readonly LOGGER_LOG_PERMISSION_ID: Identifier;
|
|
25
|
+
readonly PLUGIN_MANAGE_PACKAGE_PERMISSION_ID: Identifier;
|
|
26
|
+
readonly PLUGIN_READ_PACKAGE_PERMISSION_ID: Identifier;
|
|
27
|
+
readonly REGISTRY_PERMISSION_ID: Identifier;
|
|
28
|
+
readonly SERVER_APPS_READ_PERMISSION_ID: Identifier;
|
|
29
|
+
readonly SERVER_SHUTDOWN_PERMISSION_ID: Identifier;
|
|
30
|
+
readonly TRUSTED_ORIGINS_GET_PERMISSION_ID: Identifier;
|
|
31
|
+
readonly TRUSTED_ORIGINS_SET_PERMISSION_ID: Identifier;
|
|
32
|
+
readonly GENERATE_TOKEN_PERMISSION_ID: Identifier;
|
|
33
|
+
readonly REMOTE_APP_REQUEST_PERMISSION_ID: Identifier;
|
|
34
|
+
readonly SESSIONS_READ_PERMISSION_ID: Identifier;
|
|
35
|
+
readonly TABLE_PERMISSION_ID: Identifier;
|
|
36
|
+
};
|