@omujs/omu 0.9.48 → 0.9.50

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.
Files changed (276) hide show
  1. package/dist/address.js +1 -0
  2. package/dist/address.js.map +7 -0
  3. package/dist/api/asset/extension.d.ts +25 -0
  4. package/dist/api/asset/extension.js +2 -0
  5. package/dist/api/asset/extension.js.map +7 -0
  6. package/dist/api/asset/index.d.ts +2 -0
  7. package/dist/api/asset/index.js +2 -0
  8. package/dist/api/asset/index.js.map +7 -0
  9. package/dist/api/dashboard/extension.d.ts +181 -0
  10. package/dist/api/dashboard/extension.js +2 -0
  11. package/dist/api/dashboard/extension.js.map +7 -0
  12. package/{src/api/dashboard/handler.ts → dist/api/dashboard/handler.d.ts} +3 -5
  13. package/dist/api/dashboard/handler.js +1 -0
  14. package/dist/api/dashboard/handler.js.map +7 -0
  15. package/dist/api/dashboard/index.d.ts +3 -0
  16. package/dist/api/dashboard/index.js +2 -0
  17. package/dist/api/dashboard/index.js.map +7 -0
  18. package/dist/api/dashboard/packets.d.ts +63 -0
  19. package/dist/api/dashboard/packets.js +2 -0
  20. package/dist/api/dashboard/packets.js.map +7 -0
  21. package/dist/api/endpoint/endpoint.d.ts +21 -0
  22. package/dist/api/endpoint/endpoint.js +2 -0
  23. package/dist/api/endpoint/endpoint.js.map +7 -0
  24. package/dist/api/endpoint/extension.d.ts +17 -0
  25. package/dist/api/endpoint/extension.js +2 -0
  26. package/dist/api/endpoint/extension.js.map +7 -0
  27. package/{src/api/endpoint/index.ts → dist/api/endpoint/index.d.ts} +0 -1
  28. package/dist/api/endpoint/index.js +2 -0
  29. package/dist/api/endpoint/index.js.map +7 -0
  30. package/dist/api/endpoint/packets.d.ts +51 -0
  31. package/dist/api/endpoint/packets.js +2 -0
  32. package/dist/api/endpoint/packets.js.map +7 -0
  33. package/dist/api/extension-registry.d.ts +8 -0
  34. package/dist/api/extension-registry.js +2 -0
  35. package/dist/api/extension-registry.js.map +7 -0
  36. package/dist/api/extension.d.ts +11 -0
  37. package/dist/api/extension.js +2 -0
  38. package/dist/api/extension.js.map +7 -0
  39. package/dist/api/http/extension.d.ts +41 -0
  40. package/dist/api/http/extension.js +2 -0
  41. package/dist/api/http/extension.js.map +7 -0
  42. package/dist/api/http/http.d.ts +36 -0
  43. package/dist/api/http/http.js +2 -0
  44. package/dist/api/http/http.js.map +7 -0
  45. package/{src/api/http/index.ts → dist/api/http/index.d.ts} +0 -1
  46. package/dist/api/http/index.js +2 -0
  47. package/dist/api/http/index.js.map +7 -0
  48. package/dist/api/http/websocket.d.ts +125 -0
  49. package/dist/api/http/websocket.js +2 -0
  50. package/dist/api/http/websocket.js.map +7 -0
  51. package/dist/api/i18n/extension.d.ts +19 -0
  52. package/dist/api/i18n/extension.js +2 -0
  53. package/dist/api/i18n/extension.js.map +7 -0
  54. package/{src/api/i18n/index.ts → dist/api/i18n/index.d.ts} +0 -1
  55. package/dist/api/i18n/index.js +2 -0
  56. package/dist/api/i18n/index.js.map +7 -0
  57. package/dist/api/index.d.ts +2 -0
  58. package/dist/api/index.js +2 -0
  59. package/dist/api/index.js.map +7 -0
  60. package/dist/api/logger/extension.d.ts +25 -0
  61. package/dist/api/logger/extension.js +2 -0
  62. package/dist/api/logger/extension.js.map +7 -0
  63. package/dist/api/logger/index.d.ts +1 -0
  64. package/dist/api/logger/index.js +2 -0
  65. package/dist/api/logger/index.js.map +7 -0
  66. package/dist/api/logger/packets.d.ts +18 -0
  67. package/dist/api/logger/packets.js +2 -0
  68. package/dist/api/logger/packets.js.map +7 -0
  69. package/dist/api/permission/extension.d.ts +19 -0
  70. package/dist/api/permission/extension.js +2 -0
  71. package/dist/api/permission/extension.js.map +7 -0
  72. package/{src/api/permission/index.ts → dist/api/permission/index.d.ts} +0 -1
  73. package/dist/api/permission/index.js +2 -0
  74. package/dist/api/permission/index.js.map +7 -0
  75. package/dist/api/permission/permission.d.ts +25 -0
  76. package/dist/api/permission/permission.js +2 -0
  77. package/dist/api/permission/permission.js.map +7 -0
  78. package/dist/api/plugin/extension.d.ts +43 -0
  79. package/dist/api/plugin/extension.js +2 -0
  80. package/dist/api/plugin/extension.js.map +7 -0
  81. package/{src/api/plugin/index.ts → dist/api/plugin/index.d.ts} +0 -1
  82. package/dist/api/plugin/index.js +2 -0
  83. package/dist/api/plugin/index.js.map +7 -0
  84. package/{src/api/plugin/package-info.ts → dist/api/plugin/package-info.d.ts} +0 -7
  85. package/dist/api/plugin/package-info.js +1 -0
  86. package/dist/api/plugin/package-info.js.map +7 -0
  87. package/dist/api/registry/extension.d.ts +23 -0
  88. package/dist/api/registry/extension.js +2 -0
  89. package/dist/api/registry/extension.js.map +7 -0
  90. package/{src/api/registry/index.ts → dist/api/registry/index.d.ts} +0 -1
  91. package/dist/api/registry/index.js +2 -0
  92. package/dist/api/registry/index.js.map +7 -0
  93. package/dist/api/registry/packets.d.ts +20 -0
  94. package/dist/api/registry/packets.js +2 -0
  95. package/dist/api/registry/packets.js.map +7 -0
  96. package/{src/api/registry/registry.ts → dist/api/registry/registry.d.ts} +11 -53
  97. package/dist/api/registry/registry.js +2 -0
  98. package/dist/api/registry/registry.js.map +7 -0
  99. package/dist/api/server/extension.d.ts +61 -0
  100. package/dist/api/server/extension.js +2 -0
  101. package/dist/api/server/extension.js.map +7 -0
  102. package/dist/api/server/index.d.ts +1 -0
  103. package/dist/api/server/index.js +2 -0
  104. package/dist/api/server/index.js.map +7 -0
  105. package/dist/api/session/extension.d.ts +52 -0
  106. package/dist/api/session/extension.js +2 -0
  107. package/dist/api/session/extension.js.map +7 -0
  108. package/dist/api/session/index.d.ts +1 -0
  109. package/dist/api/session/index.js +2 -0
  110. package/dist/api/session/index.js.map +7 -0
  111. package/dist/api/signal/extension.d.ts +19 -0
  112. package/dist/api/signal/extension.js +2 -0
  113. package/dist/api/signal/extension.js.map +7 -0
  114. package/dist/api/signal/index.d.ts +1 -0
  115. package/dist/api/signal/index.js +2 -0
  116. package/dist/api/signal/index.js.map +7 -0
  117. package/dist/api/signal/packets.d.ts +21 -0
  118. package/dist/api/signal/packets.js +2 -0
  119. package/dist/api/signal/packets.js.map +7 -0
  120. package/dist/api/signal/signal.d.ts +33 -0
  121. package/dist/api/signal/signal.js +2 -0
  122. package/dist/api/signal/signal.js.map +7 -0
  123. package/dist/api/table/extension.d.ts +26 -0
  124. package/dist/api/table/extension.js +2 -0
  125. package/dist/api/table/extension.js.map +7 -0
  126. package/{src/api/table/index.ts → dist/api/table/index.d.ts} +0 -1
  127. package/dist/api/table/index.js +2 -0
  128. package/dist/api/table/index.js.map +7 -0
  129. package/dist/api/table/packets.d.ts +65 -0
  130. package/dist/api/table/packets.js +2 -0
  131. package/dist/api/table/packets.js.map +7 -0
  132. package/dist/api/table/table.d.ts +75 -0
  133. package/dist/api/table/table.js +2 -0
  134. package/dist/api/table/table.js.map +7 -0
  135. package/dist/app.d.ts +49 -0
  136. package/dist/app.js +2 -0
  137. package/dist/app.js.map +7 -0
  138. package/dist/const.d.ts +2 -0
  139. package/dist/const.js +2 -0
  140. package/dist/const.js.map +7 -0
  141. package/dist/errors.d.ts +36 -0
  142. package/dist/errors.js +2 -0
  143. package/dist/errors.js.map +7 -0
  144. package/dist/event/index.d.ts +6 -0
  145. package/dist/event/index.js +2 -0
  146. package/dist/event/index.js.map +7 -0
  147. package/dist/helper.d.ts +10 -0
  148. package/dist/helper.js +2 -0
  149. package/dist/helper.js.map +7 -0
  150. package/dist/identifier.d.ts +51 -0
  151. package/dist/identifier.js +2 -0
  152. package/dist/identifier.js.map +7 -0
  153. package/dist/index.d.ts +36 -0
  154. package/dist/index.js +2 -0
  155. package/dist/index.js.map +7 -0
  156. package/{src/localization/index.ts → dist/localization/index.d.ts} +0 -1
  157. package/dist/localization/index.js +2 -0
  158. package/dist/localization/index.js.map +7 -0
  159. package/dist/localization/locale.d.ts +735 -0
  160. package/dist/localization/locale.js +2 -0
  161. package/dist/localization/locale.js.map +7 -0
  162. package/{src/localization/localization.ts → dist/localization/localization.d.ts} +0 -2
  163. package/dist/localization/localization.js +1 -0
  164. package/dist/localization/localization.js.map +7 -0
  165. package/dist/lock.d.ts +6 -0
  166. package/dist/lock.js +2 -0
  167. package/dist/lock.js.map +7 -0
  168. package/dist/network/connection.d.ts +17 -0
  169. package/dist/network/connection.js +2 -0
  170. package/dist/network/connection.js.map +7 -0
  171. package/dist/network/encryption.d.ts +38 -0
  172. package/dist/network/encryption.js +2 -0
  173. package/dist/network/encryption.js.map +7 -0
  174. package/dist/network/frame-transport.d.ts +22 -0
  175. package/dist/network/frame-transport.js +2 -0
  176. package/dist/network/frame-transport.js.map +7 -0
  177. package/{src/network/index.ts → dist/network/index.d.ts} +0 -1
  178. package/dist/network/index.js +2 -0
  179. package/dist/network/index.js.map +7 -0
  180. package/dist/network/network.d.ts +59 -0
  181. package/dist/network/network.js +2 -0
  182. package/dist/network/network.js.map +7 -0
  183. package/{src/network/packet/index.ts → dist/network/packet/index.d.ts} +0 -1
  184. package/dist/network/packet/index.js +2 -0
  185. package/dist/network/packet/index.js.map +7 -0
  186. package/dist/network/packet/packet-types.d.ts +84 -0
  187. package/dist/network/packet/packet-types.js +2 -0
  188. package/dist/network/packet/packet-types.js.map +7 -0
  189. package/dist/network/packet/packet.d.ts +25 -0
  190. package/dist/network/packet/packet.js +2 -0
  191. package/dist/network/packet/packet.js.map +7 -0
  192. package/dist/network/websocket-transport.d.ts +24 -0
  193. package/dist/network/websocket-transport.js +2 -0
  194. package/dist/network/websocket-transport.js.map +7 -0
  195. package/dist/omu.d.ts +61 -0
  196. package/dist/omu.js +2 -0
  197. package/dist/omu.js.map +7 -0
  198. package/dist/result.d.ts +26 -0
  199. package/dist/result.js +2 -0
  200. package/dist/result.js.map +7 -0
  201. package/dist/serialize/bytebuffer.d.ts +73 -0
  202. package/dist/serialize/bytebuffer.js +2 -0
  203. package/dist/serialize/bytebuffer.js.map +7 -0
  204. package/dist/serialize/index.d.ts +2 -0
  205. package/dist/serialize/index.js +2 -0
  206. package/dist/serialize/index.js.map +7 -0
  207. package/dist/serialize/serializer.d.ts +26 -0
  208. package/dist/serialize/serializer.js +2 -0
  209. package/dist/serialize/serializer.js.map +7 -0
  210. package/dist/token.d.ts +14 -0
  211. package/dist/token.js +2 -0
  212. package/dist/token.js.map +7 -0
  213. package/dist/version.d.ts +2 -0
  214. package/dist/version.js +2 -0
  215. package/dist/version.js.map +7 -0
  216. package/package.json +12 -9
  217. package/CHANGELOG.md +0 -1845
  218. package/src/api/asset/extension.ts +0 -193
  219. package/src/api/asset/index.ts +0 -5
  220. package/src/api/dashboard/extension.ts +0 -651
  221. package/src/api/dashboard/index.ts +0 -38
  222. package/src/api/dashboard/packets.ts +0 -126
  223. package/src/api/endpoint/endpoint.ts +0 -56
  224. package/src/api/endpoint/extension.ts +0 -133
  225. package/src/api/endpoint/packets.ts +0 -176
  226. package/src/api/extension-registry.ts +0 -17
  227. package/src/api/extension.ts +0 -19
  228. package/src/api/http/extension.ts +0 -401
  229. package/src/api/http/http.ts +0 -79
  230. package/src/api/http/websocket.ts +0 -283
  231. package/src/api/i18n/extension.ts +0 -65
  232. package/src/api/index.ts +0 -3
  233. package/src/api/logger/extension.ts +0 -75
  234. package/src/api/logger/index.ts +0 -4
  235. package/src/api/logger/packets.ts +0 -38
  236. package/src/api/permission/extension.ts +0 -107
  237. package/src/api/permission/permission.ts +0 -53
  238. package/src/api/plugin/extension.ts +0 -100
  239. package/src/api/registry/extension.ts +0 -326
  240. package/src/api/registry/packets.ts +0 -64
  241. package/src/api/server/extension.ts +0 -155
  242. package/src/api/server/index.ts +0 -11
  243. package/src/api/session/extension.ts +0 -205
  244. package/src/api/session/index.ts +0 -7
  245. package/src/api/signal/extension.ts +0 -125
  246. package/src/api/signal/index.ts +0 -1
  247. package/src/api/signal/packets.ts +0 -61
  248. package/src/api/signal/signal.ts +0 -67
  249. package/src/api/table/extension.ts +0 -554
  250. package/src/api/table/packets.ts +0 -252
  251. package/src/api/table/table.ts +0 -113
  252. package/src/app.ts +0 -95
  253. package/src/const.ts +0 -2
  254. package/src/errors.ts +0 -70
  255. package/src/event/index.ts +0 -18
  256. package/src/helper.ts +0 -16
  257. package/src/identifier.ts +0 -256
  258. package/src/index.ts +0 -87
  259. package/src/localization/locale.ts +0 -737
  260. package/src/lock.ts +0 -43
  261. package/src/network/connection.ts +0 -45
  262. package/src/network/encryption.ts +0 -221
  263. package/src/network/frame-transport.ts +0 -186
  264. package/src/network/network.ts +0 -322
  265. package/src/network/packet/packet-types.ts +0 -164
  266. package/src/network/packet/packet.ts +0 -55
  267. package/src/network/websocket-transport.ts +0 -123
  268. package/src/omu.ts +0 -156
  269. package/src/result.ts +0 -78
  270. package/src/serialize/bytebuffer.ts +0 -432
  271. package/src/serialize/index.ts +0 -2
  272. package/src/serialize/serializer.ts +0 -149
  273. package/src/token.ts +0 -39
  274. package/src/version.ts +0 -2
  275. package/tsconfig.json +0 -18
  276. /package/{src/address.ts → dist/address.d.ts} +0 -0
package/src/identifier.ts DELETED
@@ -1,256 +0,0 @@
1
- import type { ExtensionType } from './api';
2
- import { App } from './app';
3
-
4
- const NAMESPACE_REGEX = /^(\.[^/:.]|[\w-])+$/;
5
- const NAME_REGEX = /^[^/:]+$/;
6
-
7
- export type IntoId = Identifier | string | ExtensionType | App;
8
-
9
- export class Identifier {
10
- public readonly namespace: string;
11
- public readonly path: string[];
12
-
13
- constructor(
14
- namespace: string,
15
- ...path: string[]
16
- ) {
17
- Identifier.validate(namespace, path);
18
- this.namespace = namespace;
19
- this.path = path;
20
- }
21
-
22
- public static serialize(identifier: Identifier): string {
23
- return identifier.key();
24
- }
25
-
26
- public static deserialize(json: string): Identifier {
27
- return Identifier.fromJson(json);
28
- }
29
-
30
- public static from(id: IntoId): Identifier {
31
- if (id instanceof Identifier) {
32
- return id;
33
- } else if (id instanceof App) {
34
- return id.id;
35
- } else if (typeof id === 'string') {
36
- return Identifier.fromKey(id);
37
- } else {
38
- // Try to infer
39
- // Vite does not preserve class information when importing from different packages
40
- const idCasted = id as { namespace: string; path: string[] };
41
- if (
42
- typeof idCasted.namespace === 'string' &&
43
- Array.isArray(idCasted.path) &&
44
- idCasted.path.every((p) => typeof p === 'string')
45
- ) {
46
- return new Identifier(idCasted.namespace, ...idCasted.path);
47
- }
48
- const idWithId = id as { id: IntoId | undefined };
49
- if (typeof idWithId.id !== 'undefined') {
50
- return Identifier.from(idWithId.id);
51
- }
52
- throw new Error(`Cannot convert to Identifier: ${id}`);
53
- }
54
- }
55
-
56
- public static fromOptional(id: IntoId | undefined | null): Identifier | undefined {
57
- if (id === undefined || id === null) {
58
- return undefined;
59
- }
60
- return Identifier.from(id);
61
- }
62
-
63
- static validate(namespace: string, path: string[]): void {
64
- if (!namespace) {
65
- throw new Error('Invalid namespace: Namespace cannot be empty');
66
- }
67
- if (path.length === 0) {
68
- throw new Error('Invalid path: Path must have at least one name');
69
- }
70
- if (!NAMESPACE_REGEX.test(namespace)) {
71
- throw new Error(`Invalid namespace: Namespace must match ${NAMESPACE_REGEX}`);
72
- }
73
- for (const name of path) {
74
- if (!NAME_REGEX.test(name)) {
75
- throw new Error(`Invalid path: Name must match ${NAME_REGEX} but got ${name}`);
76
- }
77
- }
78
- }
79
-
80
- static format(namespace: string, ...path: string[]): string {
81
- Identifier.validate(namespace, path);
82
- return `${namespace}:${path.join('/')}`;
83
- }
84
-
85
- static fromKey(key: string): Identifier {
86
- const separator = key.indexOf(':');
87
- if (separator === -1) {
88
- throw new Error(`Invalid key: No separator found in ${key}`);
89
- }
90
- if (key.indexOf(':', separator + 1) !== -1) {
91
- throw new Error(`Invalid key: Multiple separators found in ${key}`);
92
- }
93
- const namespace = key.slice(0, separator);
94
- const path = key.slice(separator + 1);
95
- if (!namespace || !path) {
96
- throw new Error('Invalid key: Namespace and path cannot be empty');
97
- }
98
- return new Identifier(namespace, ...path.split('/'));
99
- }
100
-
101
- public static fromUrl(url: string | URL): Identifier {
102
- const parsedUrl = new URL(url);
103
- const namespace = Identifier.namespaceFromUrl(parsedUrl.href);
104
- const path = parsedUrl.pathname.slice(1).split('/');
105
- return new Identifier(namespace, ...path);
106
- }
107
-
108
- public static namespaceFromUrl(url: string | URL): string {
109
- const parsed = new URL(url);
110
- return parsed.hostname.split('.').reverse().join('.');
111
- }
112
-
113
- public get base(): Identifier {
114
- return new Identifier(this.namespace, this.path[0]);
115
- }
116
-
117
- public toJson(): string {
118
- return this.key();
119
- }
120
-
121
- static fromJson(json: string): Identifier {
122
- return Identifier.fromKey(json);
123
- }
124
-
125
- public key(): string {
126
- return Identifier.format(this.namespace, ...this.path);
127
- }
128
-
129
- public isEqual(other: Identifier): boolean {
130
- return this.key() === other.key();
131
- }
132
-
133
- public isNamespaceEqual(other: Identifier): boolean {
134
- return this.namespace === other.namespace;
135
- }
136
-
137
- public isSubpathOf(other: Identifier): boolean {
138
- if (this.namespace !== other.namespace) {
139
- return false;
140
- }
141
- if (this.path.length < other.path.length) {
142
- return false;
143
- }
144
- for (let i = 0; i < other.path.length; i++) {
145
- if (this.path[i] !== other.path[i]) {
146
- return false;
147
- }
148
- }
149
- return true;
150
- }
151
-
152
- public join(...path: string[]): Identifier {
153
- return new Identifier(this.namespace, ...this.path, ...path);
154
- }
155
- }
156
-
157
- export class IdentifierMap<T> {
158
- private readonly map: Map<string, T> = new Map();
159
- constructor(
160
- entries?: Iterable<[Identifier, T]>,
161
- ) {
162
- if (!entries) return;
163
- for (const [id, value] of entries) {
164
- this.map.set(id.key(), value);
165
- }
166
- }
167
-
168
- public get size(): number {
169
- return this.map.size;
170
- }
171
-
172
- public set(identifier: Identifier, value: T): void {
173
- this.map.set(identifier.key(), value);
174
- }
175
-
176
- public get(identifier: Identifier): T | undefined {
177
- return this.map.get(identifier.key());
178
- }
179
-
180
- public has(identifier: Identifier): boolean {
181
- return this.map.has(identifier.key());
182
- }
183
-
184
- public delete(identifier: Identifier): void {
185
- this.map.delete(identifier.key());
186
- }
187
-
188
- public clear(): void {
189
- this.map.clear();
190
- }
191
-
192
- public *keys(): IterableIterator<Identifier> {
193
- for (const key of this.map.keys()) {
194
- yield Identifier.fromKey(key);
195
- }
196
- }
197
-
198
- public values(): IterableIterator<T> {
199
- return this.map.values();
200
- }
201
-
202
- public *entries(): IterableIterator<[Identifier, T]> {
203
- for (const [key, value] of this.map.entries()) {
204
- yield [Identifier.fromKey(key), value];
205
- }
206
- }
207
-
208
- public [Symbol.iterator](): IterableIterator<[Identifier, T]> {
209
- return this.entries();
210
- }
211
- }
212
-
213
- export class IdentifierSet {
214
- private readonly set: Set<string> = new Set();
215
-
216
- public get size(): number {
217
- return this.set.size;
218
- }
219
-
220
- public add(identifier: Identifier): void {
221
- this.set.add(identifier.key());
222
- }
223
-
224
- public has(identifier: Identifier): boolean {
225
- return this.set.has(identifier.key());
226
- }
227
-
228
- public delete(identifier: Identifier): void {
229
- this.set.delete(identifier.key());
230
- }
231
-
232
- public clear(): void {
233
- this.set.clear();
234
- }
235
-
236
- public *keys(): IterableIterator<Identifier> {
237
- for (const key of this.set.keys()) {
238
- yield Identifier.fromKey(key);
239
- }
240
- }
241
-
242
- public values(): IterableIterator<Identifier> {
243
- return this.keys();
244
- }
245
-
246
- public *entries(): IterableIterator<[Identifier, Identifier]> {
247
- for (const key of this.set.keys()) {
248
- const identifier = Identifier.fromKey(key);
249
- yield [identifier, identifier];
250
- }
251
- }
252
-
253
- public [Symbol.iterator](): IterableIterator<[Identifier, Identifier]> {
254
- return this.entries();
255
- }
256
- }
package/src/index.ts DELETED
@@ -1,87 +0,0 @@
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 { ASSET_PERMISSION_ID } from './api/asset';
11
- import {
12
- DASHBOARD_APP_INSTALL_PERMISSION_ID,
13
- DAShBOARD_DRAG_DROP_PERMISSION_ID,
14
- DASHBOARD_OPEN_APP_PERMISSION_ID,
15
- DASHBOARD_SET_PERMISSION_ID,
16
- DASHBOARD_SPEECH_RECOGNITION_PERMISSION_ID,
17
- DASHBOARD_WEBVIEW_PERMISSION_ID,
18
- DASHOBARD_APP_EDIT_PERMISSION_ID,
19
- DASHOBARD_APP_READ_PERMISSION_ID,
20
- } from './api/dashboard';
21
- import { HTTP_REQUEST_PERMISSION_ID } from './api/http';
22
- import { I18N_GET_LOCALES_PERMISSION_ID, I18N_SET_LOCALES_PERMISSION_ID } from './api/i18n';
23
- import { LOGGER_LOG_PERMISSION_ID } from './api/logger';
24
- import { PLUGIN_MANAGE_PACKAGE_PERMISSION_ID, PLUGIN_READ_PACKAGE_PERMISSION_ID } from './api/plugin';
25
- import { REGISTRY_PERMISSION_ID } from './api/registry';
26
- import { SERVER_APPS_READ_PERMISSION_ID, SERVER_SHUTDOWN_PERMISSION_ID, TRUSTED_ORIGINS_GET_PERMISSION_ID, TRUSTED_ORIGINS_SET_PERMISSION_ID } from './api/server';
27
- import { GENERATE_TOKEN_PERMISSION_ID, REMOTE_APP_REQUEST_PERMISSION_ID, SESSIONS_READ_PERMISSION_ID } from './api/session';
28
- import { TABLE_PERMISSION_ID } from './api/table';
29
- import { Identifier } from './identifier';
30
-
31
- export const OmuPermissions: {
32
- // Asset API
33
- readonly ASSET_PERMISSION_ID: Identifier;
34
- // Dashboard API
35
- readonly DASHBOARD_APP_INSTALL_PERMISSION_ID: Identifier; readonly DAShBOARD_DRAG_DROP_PERMISSION_ID: Identifier; readonly DASHBOARD_OPEN_APP_PERMISSION_ID: Identifier; readonly DASHBOARD_SET_PERMISSION_ID: Identifier; readonly DASHBOARD_SPEECH_RECOGNITION_PERMISSION_ID: Identifier; readonly DASHBOARD_WEBVIEW_PERMISSION_ID: Identifier; readonly DASHOBARD_APP_EDIT_PERMISSION_ID: Identifier; readonly DASHOBARD_APP_READ_PERMISSION_ID: Identifier;
36
- // HTTP API
37
- readonly HTTP_REQUEST_PERMISSION_ID: Identifier;
38
- // I18n API
39
- readonly I18N_GET_LOCALES_PERMISSION_ID: Identifier; readonly I18N_SET_LOCALES_PERMISSION_ID: Identifier;
40
- // Logger API
41
- readonly LOGGER_LOG_PERMISSION_ID: Identifier;
42
- // Plugin API
43
- readonly PLUGIN_MANAGE_PACKAGE_PERMISSION_ID: Identifier; readonly PLUGIN_READ_PACKAGE_PERMISSION_ID: Identifier;
44
- // Registry API
45
- readonly REGISTRY_PERMISSION_ID: Identifier;
46
- // Server API
47
- readonly SERVER_APPS_READ_PERMISSION_ID: Identifier; readonly SERVER_SHUTDOWN_PERMISSION_ID: Identifier; readonly TRUSTED_ORIGINS_GET_PERMISSION_ID: Identifier; readonly TRUSTED_ORIGINS_SET_PERMISSION_ID: Identifier;
48
- // Session API
49
- readonly GENERATE_TOKEN_PERMISSION_ID: Identifier; readonly REMOTE_APP_REQUEST_PERMISSION_ID: Identifier; readonly SESSIONS_READ_PERMISSION_ID: Identifier;
50
- // Table API
51
- readonly TABLE_PERMISSION_ID: Identifier;
52
- } = {
53
- // Asset API
54
- ASSET_PERMISSION_ID: ASSET_PERMISSION_ID,
55
- // Dashboard API
56
- DASHBOARD_APP_INSTALL_PERMISSION_ID,
57
- DAShBOARD_DRAG_DROP_PERMISSION_ID,
58
- DASHBOARD_OPEN_APP_PERMISSION_ID,
59
- DASHBOARD_SET_PERMISSION_ID,
60
- DASHBOARD_SPEECH_RECOGNITION_PERMISSION_ID,
61
- DASHBOARD_WEBVIEW_PERMISSION_ID,
62
- DASHOBARD_APP_EDIT_PERMISSION_ID,
63
- DASHOBARD_APP_READ_PERMISSION_ID,
64
- // HTTP API
65
- HTTP_REQUEST_PERMISSION_ID,
66
- // I18n API
67
- I18N_GET_LOCALES_PERMISSION_ID,
68
- I18N_SET_LOCALES_PERMISSION_ID,
69
- // Logger API
70
- LOGGER_LOG_PERMISSION_ID,
71
- // Plugin API
72
- PLUGIN_MANAGE_PACKAGE_PERMISSION_ID,
73
- PLUGIN_READ_PACKAGE_PERMISSION_ID,
74
- // Registry API
75
- REGISTRY_PERMISSION_ID,
76
- // Server API
77
- SERVER_APPS_READ_PERMISSION_ID,
78
- SERVER_SHUTDOWN_PERMISSION_ID,
79
- TRUSTED_ORIGINS_GET_PERMISSION_ID,
80
- TRUSTED_ORIGINS_SET_PERMISSION_ID,
81
- // Session API
82
- GENERATE_TOKEN_PERMISSION_ID,
83
- REMOTE_APP_REQUEST_PERMISSION_ID,
84
- SESSIONS_READ_PERMISSION_ID,
85
- // Table API
86
- TABLE_PERMISSION_ID,
87
- } as const;