@camstack/types 0.1.15 → 0.1.17
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/addon/base-addon.d.ts +12 -0
- package/dist/addon/base-addon.d.ts.map +1 -1
- package/dist/auth-records-BDg37fy9.mjs +8297 -0
- package/dist/auth-records-BDg37fy9.mjs.map +1 -0
- package/dist/auth-records-D5ZNaUos.js +8296 -0
- package/dist/auth-records-D5ZNaUos.js.map +1 -0
- package/dist/capabilities/addons.cap.d.ts +76 -0
- package/dist/capabilities/addons.cap.d.ts.map +1 -1
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/authentication.cap.d.ts +83 -0
- package/dist/capabilities/authentication.cap.d.ts.map +1 -0
- package/dist/capabilities/backup.cap.d.ts +224 -3
- package/dist/capabilities/backup.cap.d.ts.map +1 -1
- package/dist/capabilities/index.d.ts +16 -2
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/local-network.cap.d.ts +216 -0
- package/dist/capabilities/local-network.cap.d.ts.map +1 -0
- package/dist/capabilities/mesh-network.cap.d.ts +160 -0
- package/dist/capabilities/mesh-network.cap.d.ts.map +1 -0
- package/dist/capabilities/mesh-orchestrator.cap.d.ts +96 -0
- package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +1 -0
- package/dist/capabilities/platform-probe.cap.d.ts.map +1 -1
- package/dist/capabilities/remote-access.cap.d.ts +103 -0
- package/dist/capabilities/remote-access.cap.d.ts.map +1 -0
- package/dist/capabilities/storage-provider.cap.d.ts +432 -0
- package/dist/capabilities/storage-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/storage.cap.d.ts +287 -24
- package/dist/capabilities/storage.cap.d.ts.map +1 -1
- package/dist/capabilities/turn-orchestrator.cap.d.ts +74 -0
- package/dist/capabilities/turn-orchestrator.cap.d.ts.map +1 -0
- package/dist/device/base-device-provider.d.ts +8 -0
- package/dist/device/base-device-provider.d.ts.map +1 -1
- package/dist/disposer-chain.d.ts +32 -0
- package/dist/disposer-chain.d.ts.map +1 -0
- package/dist/enums/event-category.d.ts +34 -0
- package/dist/enums/event-category.d.ts.map +1 -1
- package/dist/generated/addon-api.d.ts +1433 -245
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/capability-router-map.d.ts +25 -4
- package/dist/generated/capability-router-map.d.ts.map +1 -1
- package/dist/generated/system-proxy.d.ts +15 -3
- package/dist/generated/system-proxy.d.ts.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +839 -8332
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +641 -7716
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +82 -0
- package/dist/interfaces/addon.d.ts.map +1 -1
- package/dist/interfaces/api-responses.d.ts +7 -0
- package/dist/interfaces/api-responses.d.ts.map +1 -1
- package/dist/interfaces/capability.d.ts +13 -2
- package/dist/interfaces/capability.d.ts.map +1 -1
- package/dist/interfaces/config-ui.d.ts +140 -3
- package/dist/interfaces/config-ui.d.ts.map +1 -1
- package/dist/interfaces/storage-location.d.ts +120 -0
- package/dist/interfaces/storage-location.d.ts.map +1 -0
- package/dist/interfaces/storage.d.ts +2 -6
- package/dist/interfaces/storage.d.ts.map +1 -1
- package/dist/node.js +141 -7243
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +59 -7150
- package/dist/node.mjs.map +1 -1
- package/dist/storage/filesystem-storage-provider.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,102 +1,365 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import { StorageLocationTypeSchema } from '../interfaces/storage-location.js';
|
|
4
|
+
/**
|
|
5
|
+
* `storage` — singleton consumer-facing capability owned by the
|
|
6
|
+
* `storage-orchestrator` builtin (Task 4 of the storage-unification
|
|
7
|
+
* refactor). All file I/O across the system flows through this cap;
|
|
8
|
+
* the orchestrator resolves each `location` ref to a concrete
|
|
9
|
+
* `StorageLocation` record and dispatches to the matching
|
|
10
|
+
* `storage-provider` registrant.
|
|
11
|
+
*
|
|
12
|
+
* The `location` parameter on every primitive is a `StorageLocationRef`
|
|
13
|
+
* — either a bare `StorageLocationType` (e.g. `'backups'`, resolves to
|
|
14
|
+
* the default of that type) or a fully-qualified id (`'backups:nas-01'`,
|
|
15
|
+
* addresses a specific instance). Both forms are normalised inside the
|
|
16
|
+
* orchestrator's `resolveRef(ref)` step.
|
|
17
|
+
*
|
|
18
|
+
* Mode: `singleton` (was `collection` pre-Task-3). The cap-router mount
|
|
19
|
+
* uses `requireSingleton(reg, 'storage')` — pointing at the orchestrator
|
|
20
|
+
* once it lands.
|
|
21
|
+
*/
|
|
12
22
|
export declare const storageCapability: {
|
|
13
23
|
readonly name: "storage";
|
|
14
24
|
readonly scope: "system";
|
|
15
|
-
readonly mode: "
|
|
25
|
+
readonly mode: "singleton";
|
|
16
26
|
readonly methods: {
|
|
17
27
|
readonly resolve: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
18
|
-
location: z.ZodEnum<{
|
|
28
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
19
29
|
data: "data";
|
|
20
30
|
media: "media";
|
|
21
31
|
recordings: "recordings";
|
|
22
32
|
cache: "cache";
|
|
23
33
|
logs: "logs";
|
|
24
34
|
models: "models";
|
|
35
|
+
"recordings-high": "recordings-high";
|
|
36
|
+
"recordings-low": "recordings-low";
|
|
37
|
+
"recordings-clips": "recordings-clips";
|
|
38
|
+
"event-images": "event-images";
|
|
25
39
|
"addons-data": "addons-data";
|
|
26
|
-
|
|
40
|
+
backups: "backups";
|
|
41
|
+
}>, z.ZodString]>;
|
|
27
42
|
relativePath: z.ZodString;
|
|
28
43
|
}, z.core.$strip>, z.ZodString, import("./capability-definition.js").CapabilityMethodKind>;
|
|
29
44
|
readonly write: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
30
|
-
location: z.ZodEnum<{
|
|
45
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
31
46
|
data: "data";
|
|
32
47
|
media: "media";
|
|
33
48
|
recordings: "recordings";
|
|
34
49
|
cache: "cache";
|
|
35
50
|
logs: "logs";
|
|
36
51
|
models: "models";
|
|
52
|
+
"recordings-high": "recordings-high";
|
|
53
|
+
"recordings-low": "recordings-low";
|
|
54
|
+
"recordings-clips": "recordings-clips";
|
|
55
|
+
"event-images": "event-images";
|
|
37
56
|
"addons-data": "addons-data";
|
|
38
|
-
|
|
57
|
+
backups: "backups";
|
|
58
|
+
}>, z.ZodString]>;
|
|
39
59
|
relativePath: z.ZodString;
|
|
60
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
40
61
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
41
62
|
readonly read: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
42
|
-
location: z.ZodEnum<{
|
|
63
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
43
64
|
data: "data";
|
|
44
65
|
media: "media";
|
|
45
66
|
recordings: "recordings";
|
|
46
67
|
cache: "cache";
|
|
47
68
|
logs: "logs";
|
|
48
69
|
models: "models";
|
|
70
|
+
"recordings-high": "recordings-high";
|
|
71
|
+
"recordings-low": "recordings-low";
|
|
72
|
+
"recordings-clips": "recordings-clips";
|
|
73
|
+
"event-images": "event-images";
|
|
49
74
|
"addons-data": "addons-data";
|
|
50
|
-
|
|
75
|
+
backups: "backups";
|
|
76
|
+
}>, z.ZodString]>;
|
|
51
77
|
relativePath: z.ZodString;
|
|
52
78
|
}, z.core.$strip>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
53
79
|
readonly exists: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
54
|
-
location: z.ZodEnum<{
|
|
80
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
55
81
|
data: "data";
|
|
56
82
|
media: "media";
|
|
57
83
|
recordings: "recordings";
|
|
58
84
|
cache: "cache";
|
|
59
85
|
logs: "logs";
|
|
60
86
|
models: "models";
|
|
87
|
+
"recordings-high": "recordings-high";
|
|
88
|
+
"recordings-low": "recordings-low";
|
|
89
|
+
"recordings-clips": "recordings-clips";
|
|
90
|
+
"event-images": "event-images";
|
|
61
91
|
"addons-data": "addons-data";
|
|
62
|
-
|
|
92
|
+
backups: "backups";
|
|
93
|
+
}>, z.ZodString]>;
|
|
63
94
|
relativePath: z.ZodString;
|
|
64
95
|
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
65
96
|
readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
66
|
-
location: z.ZodEnum<{
|
|
97
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
67
98
|
data: "data";
|
|
68
99
|
media: "media";
|
|
69
100
|
recordings: "recordings";
|
|
70
101
|
cache: "cache";
|
|
71
102
|
logs: "logs";
|
|
72
103
|
models: "models";
|
|
104
|
+
"recordings-high": "recordings-high";
|
|
105
|
+
"recordings-low": "recordings-low";
|
|
106
|
+
"recordings-clips": "recordings-clips";
|
|
107
|
+
"event-images": "event-images";
|
|
73
108
|
"addons-data": "addons-data";
|
|
74
|
-
|
|
109
|
+
backups: "backups";
|
|
110
|
+
}>, z.ZodString]>;
|
|
75
111
|
prefix: z.ZodOptional<z.ZodString>;
|
|
76
112
|
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodString>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
77
113
|
readonly delete: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
78
|
-
location: z.ZodEnum<{
|
|
114
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
79
115
|
data: "data";
|
|
80
116
|
media: "media";
|
|
81
117
|
recordings: "recordings";
|
|
82
118
|
cache: "cache";
|
|
83
119
|
logs: "logs";
|
|
84
120
|
models: "models";
|
|
121
|
+
"recordings-high": "recordings-high";
|
|
122
|
+
"recordings-low": "recordings-low";
|
|
123
|
+
"recordings-clips": "recordings-clips";
|
|
124
|
+
"event-images": "event-images";
|
|
85
125
|
"addons-data": "addons-data";
|
|
86
|
-
|
|
126
|
+
backups: "backups";
|
|
127
|
+
}>, z.ZodString]>;
|
|
87
128
|
relativePath: z.ZodString;
|
|
88
129
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
89
130
|
readonly getAvailableSpace: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
90
|
-
location: z.ZodEnum<{
|
|
131
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
91
132
|
data: "data";
|
|
92
133
|
media: "media";
|
|
93
134
|
recordings: "recordings";
|
|
94
135
|
cache: "cache";
|
|
95
136
|
logs: "logs";
|
|
96
137
|
models: "models";
|
|
138
|
+
"recordings-high": "recordings-high";
|
|
139
|
+
"recordings-low": "recordings-low";
|
|
140
|
+
"recordings-clips": "recordings-clips";
|
|
141
|
+
"event-images": "event-images";
|
|
97
142
|
"addons-data": "addons-data";
|
|
98
|
-
|
|
143
|
+
backups: "backups";
|
|
144
|
+
}>, z.ZodString]>;
|
|
99
145
|
}, z.core.$strip>, z.ZodNullable<z.ZodNumber>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
146
|
+
readonly beginUpload: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
147
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
148
|
+
data: "data";
|
|
149
|
+
media: "media";
|
|
150
|
+
recordings: "recordings";
|
|
151
|
+
cache: "cache";
|
|
152
|
+
logs: "logs";
|
|
153
|
+
models: "models";
|
|
154
|
+
"recordings-high": "recordings-high";
|
|
155
|
+
"recordings-low": "recordings-low";
|
|
156
|
+
"recordings-clips": "recordings-clips";
|
|
157
|
+
"event-images": "event-images";
|
|
158
|
+
"addons-data": "addons-data";
|
|
159
|
+
backups: "backups";
|
|
160
|
+
}>, z.ZodString]>;
|
|
161
|
+
relativePath: z.ZodString;
|
|
162
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
uploadId: z.ZodString;
|
|
165
|
+
}, z.core.$strip>, "mutation">;
|
|
166
|
+
readonly writeChunk: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
167
|
+
uploadId: z.ZodString;
|
|
168
|
+
offset: z.ZodNumber;
|
|
169
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
170
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
171
|
+
readonly finalizeUpload: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
172
|
+
uploadId: z.ZodString;
|
|
173
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
174
|
+
readonly abortUpload: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
175
|
+
uploadId: z.ZodString;
|
|
176
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
177
|
+
readonly beginDownload: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
178
|
+
location: z.ZodUnion<readonly [z.ZodEnum<{
|
|
179
|
+
data: "data";
|
|
180
|
+
media: "media";
|
|
181
|
+
recordings: "recordings";
|
|
182
|
+
cache: "cache";
|
|
183
|
+
logs: "logs";
|
|
184
|
+
models: "models";
|
|
185
|
+
"recordings-high": "recordings-high";
|
|
186
|
+
"recordings-low": "recordings-low";
|
|
187
|
+
"recordings-clips": "recordings-clips";
|
|
188
|
+
"event-images": "event-images";
|
|
189
|
+
"addons-data": "addons-data";
|
|
190
|
+
backups: "backups";
|
|
191
|
+
}>, z.ZodString]>;
|
|
192
|
+
relativePath: z.ZodString;
|
|
193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
194
|
+
downloadId: z.ZodString;
|
|
195
|
+
sizeBytes: z.ZodNumber;
|
|
196
|
+
}, z.core.$strip>, "mutation">;
|
|
197
|
+
readonly readChunk: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
198
|
+
downloadId: z.ZodString;
|
|
199
|
+
offset: z.ZodNumber;
|
|
200
|
+
length: z.ZodNumber;
|
|
201
|
+
}, z.core.$strip>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
202
|
+
readonly endDownload: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
203
|
+
downloadId: z.ZodString;
|
|
204
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
205
|
+
readonly listLocations: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
206
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
207
|
+
data: "data";
|
|
208
|
+
media: "media";
|
|
209
|
+
recordings: "recordings";
|
|
210
|
+
cache: "cache";
|
|
211
|
+
logs: "logs";
|
|
212
|
+
models: "models";
|
|
213
|
+
"recordings-high": "recordings-high";
|
|
214
|
+
"recordings-low": "recordings-low";
|
|
215
|
+
"recordings-clips": "recordings-clips";
|
|
216
|
+
"event-images": "event-images";
|
|
217
|
+
"addons-data": "addons-data";
|
|
218
|
+
backups: "backups";
|
|
219
|
+
}>>;
|
|
220
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
type: z.ZodEnum<{
|
|
223
|
+
data: "data";
|
|
224
|
+
media: "media";
|
|
225
|
+
recordings: "recordings";
|
|
226
|
+
cache: "cache";
|
|
227
|
+
logs: "logs";
|
|
228
|
+
models: "models";
|
|
229
|
+
"recordings-high": "recordings-high";
|
|
230
|
+
"recordings-low": "recordings-low";
|
|
231
|
+
"recordings-clips": "recordings-clips";
|
|
232
|
+
"event-images": "event-images";
|
|
233
|
+
"addons-data": "addons-data";
|
|
234
|
+
backups: "backups";
|
|
235
|
+
}>;
|
|
236
|
+
displayName: z.ZodString;
|
|
237
|
+
providerId: z.ZodString;
|
|
238
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
239
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
240
|
+
isSystem: z.ZodDefault<z.ZodBoolean>;
|
|
241
|
+
createdAt: z.ZodNumber;
|
|
242
|
+
updatedAt: z.ZodNumber;
|
|
243
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
244
|
+
readonly getDefaultLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
245
|
+
type: z.ZodEnum<{
|
|
246
|
+
data: "data";
|
|
247
|
+
media: "media";
|
|
248
|
+
recordings: "recordings";
|
|
249
|
+
cache: "cache";
|
|
250
|
+
logs: "logs";
|
|
251
|
+
models: "models";
|
|
252
|
+
"recordings-high": "recordings-high";
|
|
253
|
+
"recordings-low": "recordings-low";
|
|
254
|
+
"recordings-clips": "recordings-clips";
|
|
255
|
+
"event-images": "event-images";
|
|
256
|
+
"addons-data": "addons-data";
|
|
257
|
+
backups: "backups";
|
|
258
|
+
}>;
|
|
259
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
260
|
+
id: z.ZodString;
|
|
261
|
+
type: z.ZodEnum<{
|
|
262
|
+
data: "data";
|
|
263
|
+
media: "media";
|
|
264
|
+
recordings: "recordings";
|
|
265
|
+
cache: "cache";
|
|
266
|
+
logs: "logs";
|
|
267
|
+
models: "models";
|
|
268
|
+
"recordings-high": "recordings-high";
|
|
269
|
+
"recordings-low": "recordings-low";
|
|
270
|
+
"recordings-clips": "recordings-clips";
|
|
271
|
+
"event-images": "event-images";
|
|
272
|
+
"addons-data": "addons-data";
|
|
273
|
+
backups: "backups";
|
|
274
|
+
}>;
|
|
275
|
+
displayName: z.ZodString;
|
|
276
|
+
providerId: z.ZodString;
|
|
277
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
278
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
279
|
+
isSystem: z.ZodDefault<z.ZodBoolean>;
|
|
280
|
+
createdAt: z.ZodNumber;
|
|
281
|
+
updatedAt: z.ZodNumber;
|
|
282
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
283
|
+
readonly upsertLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
284
|
+
type: z.ZodEnum<{
|
|
285
|
+
data: "data";
|
|
286
|
+
media: "media";
|
|
287
|
+
recordings: "recordings";
|
|
288
|
+
cache: "cache";
|
|
289
|
+
logs: "logs";
|
|
290
|
+
models: "models";
|
|
291
|
+
"recordings-high": "recordings-high";
|
|
292
|
+
"recordings-low": "recordings-low";
|
|
293
|
+
"recordings-clips": "recordings-clips";
|
|
294
|
+
"event-images": "event-images";
|
|
295
|
+
"addons-data": "addons-data";
|
|
296
|
+
backups: "backups";
|
|
297
|
+
}>;
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
displayName: z.ZodString;
|
|
300
|
+
providerId: z.ZodString;
|
|
301
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
302
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
303
|
+
isSystem: z.ZodDefault<z.ZodBoolean>;
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
type: z.ZodEnum<{
|
|
307
|
+
data: "data";
|
|
308
|
+
media: "media";
|
|
309
|
+
recordings: "recordings";
|
|
310
|
+
cache: "cache";
|
|
311
|
+
logs: "logs";
|
|
312
|
+
models: "models";
|
|
313
|
+
"recordings-high": "recordings-high";
|
|
314
|
+
"recordings-low": "recordings-low";
|
|
315
|
+
"recordings-clips": "recordings-clips";
|
|
316
|
+
"event-images": "event-images";
|
|
317
|
+
"addons-data": "addons-data";
|
|
318
|
+
backups: "backups";
|
|
319
|
+
}>;
|
|
320
|
+
displayName: z.ZodString;
|
|
321
|
+
providerId: z.ZodString;
|
|
322
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
323
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
324
|
+
isSystem: z.ZodDefault<z.ZodBoolean>;
|
|
325
|
+
createdAt: z.ZodNumber;
|
|
326
|
+
updatedAt: z.ZodNumber;
|
|
327
|
+
}, z.core.$strip>, "mutation">;
|
|
328
|
+
readonly deleteLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
331
|
+
readonly testLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
334
|
+
ok: z.ZodBoolean;
|
|
335
|
+
error: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
337
|
+
readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
338
|
+
providerId: z.ZodString;
|
|
339
|
+
displayName: z.ZodString;
|
|
340
|
+
supportedLocationTypes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
341
|
+
data: "data";
|
|
342
|
+
media: "media";
|
|
343
|
+
recordings: "recordings";
|
|
344
|
+
cache: "cache";
|
|
345
|
+
logs: "logs";
|
|
346
|
+
models: "models";
|
|
347
|
+
"recordings-high": "recordings-high";
|
|
348
|
+
"recordings-low": "recordings-low";
|
|
349
|
+
"recordings-clips": "recordings-clips";
|
|
350
|
+
"event-images": "event-images";
|
|
351
|
+
"addons-data": "addons-data";
|
|
352
|
+
backups: "backups";
|
|
353
|
+
}>>>;
|
|
354
|
+
configSchema: z.ZodUnknown;
|
|
355
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
356
|
+
readonly testConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
357
|
+
providerId: z.ZodString;
|
|
358
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
360
|
+
ok: z.ZodBoolean;
|
|
361
|
+
error: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
100
363
|
};
|
|
101
364
|
};
|
|
102
365
|
export type IStorageCapProvider = InferProvider<typeof storageCapability>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/storage.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"storage.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/storage.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAGL,yBAAyB,EAC1B,MAAM,mCAAmC,CAAA;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6HW,CAAA;AAEzC,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEzE,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const TurnProviderInfoSchema: z.ZodObject<{
|
|
4
|
+
addonId: z.ZodString;
|
|
5
|
+
displayName: z.ZodString;
|
|
6
|
+
kind: z.ZodEnum<{
|
|
7
|
+
other: "other";
|
|
8
|
+
cloudflare: "cloudflare";
|
|
9
|
+
coturn: "coturn";
|
|
10
|
+
twilio: "twilio";
|
|
11
|
+
}>;
|
|
12
|
+
enabled: z.ZodBoolean;
|
|
13
|
+
serverCount: z.ZodNumber;
|
|
14
|
+
error: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type TurnProviderInfo = z.infer<typeof TurnProviderInfoSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* `turn-orchestrator` — singleton facade over the `turn-provider`
|
|
19
|
+
* collection. Provides:
|
|
20
|
+
* - listProviders() — admin UI inventory
|
|
21
|
+
* - getAllServers() — combined list of TURN/STUN URLs across all
|
|
22
|
+
* enabled providers (what the WebRTC layer actually consumes)
|
|
23
|
+
*
|
|
24
|
+
* Mirrors `authentication` / `remote-access` — UI consumers go
|
|
25
|
+
* through the singleton, the singleton walks the collection.
|
|
26
|
+
*
|
|
27
|
+
* The WebRTC layer (broker / addon-go2rtc) historically called
|
|
28
|
+
* `turn-provider` collection methods directly to build the ICE
|
|
29
|
+
* server list per session. Going through this orchestrator instead
|
|
30
|
+
* gives a single throughput point + lets the admin disable a
|
|
31
|
+
* provider without uninstalling it.
|
|
32
|
+
*/
|
|
33
|
+
export declare const turnOrchestratorCapability: {
|
|
34
|
+
readonly name: "turn-orchestrator";
|
|
35
|
+
readonly scope: "system";
|
|
36
|
+
readonly mode: "singleton";
|
|
37
|
+
readonly methods: {
|
|
38
|
+
/** All registered TURN providers + per-provider stats. */
|
|
39
|
+
readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
40
|
+
addonId: z.ZodString;
|
|
41
|
+
displayName: z.ZodString;
|
|
42
|
+
kind: z.ZodEnum<{
|
|
43
|
+
other: "other";
|
|
44
|
+
cloudflare: "cloudflare";
|
|
45
|
+
coturn: "coturn";
|
|
46
|
+
twilio: "twilio";
|
|
47
|
+
}>;
|
|
48
|
+
enabled: z.ZodBoolean;
|
|
49
|
+
serverCount: z.ZodNumber;
|
|
50
|
+
error: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
52
|
+
/**
|
|
53
|
+
* Combined list of TURN/STUN servers from all ENABLED providers.
|
|
54
|
+
* Consumed by the WebRTC layer at session-creation time —
|
|
55
|
+
* implementations may fetch fresh short-lived credentials each
|
|
56
|
+
* call (e.g. Cloudflare API), so consumers SHOULD call per-session.
|
|
57
|
+
*/
|
|
58
|
+
readonly getAllServers: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
59
|
+
urls: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
60
|
+
username: z.ZodOptional<z.ZodString>;
|
|
61
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
63
|
+
/** Toggle a provider's enabled flag. */
|
|
64
|
+
readonly setProviderEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
65
|
+
addonId: z.ZodString;
|
|
66
|
+
enabled: z.ZodBoolean;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
success: z.ZodLiteral<true>;
|
|
69
|
+
}, z.core.$strip>, "mutation">;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export type ITurnOrchestratorProvider = InferProvider<typeof turnOrchestratorCapability>;
|
|
73
|
+
export { TurnProviderInfoSchema };
|
|
74
|
+
//# sourceMappingURL=turn-orchestrator.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn-orchestrator.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/turn-orchestrator.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAGlG,QAAA,MAAM,sBAAsB;;;;;;;;;;;;iBAmB1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B;;;;;QAKnC,0DAA0D;;;;;;;;;;;;;;QAE1D;;;;;WAKG;;;;;;QAEH,wCAAwC;;;;;;;;CAOH,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAExF,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -29,6 +29,14 @@ export interface FieldProbeResult {
|
|
|
29
29
|
readonly status: 'ok' | 'error';
|
|
30
30
|
readonly labels?: readonly string[];
|
|
31
31
|
readonly error?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Optional values the provider suggests applying to other form fields
|
|
34
|
+
* after a successful probe. The form-builder merges these into the
|
|
35
|
+
* working snapshot ONLY for fields the operator hasn't filled yet,
|
|
36
|
+
* never overwriting user input. Typical use: a host-probe that
|
|
37
|
+
* autodetects the camera model and proposes it as the device `name`.
|
|
38
|
+
*/
|
|
39
|
+
readonly suggestedValues?: Readonly<Record<string, unknown>>;
|
|
32
40
|
}
|
|
33
41
|
/**
|
|
34
42
|
* Convert an IDevice to the flat DeviceSummary shape expected by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-device-provider.d.ts","sourceRoot":"","sources":["../../src/device/base-device-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,OAAO,EACR,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClD;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACr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AAiB,CAAC,MAAM,EAAE;QAC9B,IAAI,EAAE,UAAU,CAAA;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,OAAO,CAAA;QACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACrC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMvB,cAAc,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IASzE;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAElG,uFAAuF;IACvF,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAExF;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAE/G;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;cACa,gBAAgB,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAwDrF,uEAAuE;IACvE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa;CAGpD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type DisposerFn = () => void | Promise<void>;
|
|
2
|
+
export interface DisposerChainOptions {
|
|
3
|
+
/** Logged when an individual disposer throws. Defaults to console.error. */
|
|
4
|
+
onError?: (err: unknown, index: number) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare class DisposerChain {
|
|
7
|
+
private disposers;
|
|
8
|
+
private disposed;
|
|
9
|
+
private readonly onError;
|
|
10
|
+
constructor(opts?: DisposerChainOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Register a teardown callback. Returns an unregister function so
|
|
13
|
+
* callers can drop a single disposer without disposing the whole
|
|
14
|
+
* chain.
|
|
15
|
+
*
|
|
16
|
+
* If the chain has already been disposed, the callback runs immediately
|
|
17
|
+
* (sync) — this matches the “register-after-shutdown” edge case where
|
|
18
|
+
* an addon's late initialization races with kernel restart.
|
|
19
|
+
*/
|
|
20
|
+
add(fn: DisposerFn): () => void;
|
|
21
|
+
/** True after `dispose()` has been called at least once. */
|
|
22
|
+
get isDisposed(): boolean;
|
|
23
|
+
/** Number of disposers currently registered. */
|
|
24
|
+
get size(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Run every registered disposer in LIFO order. Idempotent: subsequent
|
|
27
|
+
* calls do nothing. Awaits async disposers so callers can sequence
|
|
28
|
+
* shutdown → restart correctly.
|
|
29
|
+
*/
|
|
30
|
+
dispose(): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=disposer-chain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disposer-chain.d.ts","sourceRoot":"","sources":["../src/disposer-chain.ts"],"names":[],"mappings":"AAcA,MAAM,MAAM,UAAU,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAEnD,MAAM,WAAW,oBAAoB;IACnC,4EAA4E;IAC5E,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAChD;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,SAAS,CAAmB;IACpC,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuC;gBAEnD,IAAI,GAAE,oBAAyB;IAS3C;;;;;;;;OAQG;IACH,GAAG,CAAC,EAAE,EAAE,UAAU,GAAG,MAAM,IAAI;IAoB/B,4DAA4D;IAC5D,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,gDAAgD;IAChD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAoB/B"}
|
|
@@ -21,6 +21,37 @@ export declare enum EventCategory {
|
|
|
21
21
|
AddonError = "addon.error",
|
|
22
22
|
AddonPageReady = "addon.page-ready",
|
|
23
23
|
AddonWidgetReady = "addon.widget-ready",
|
|
24
|
+
/**
|
|
25
|
+
* Addon failed to load (import or initialize). Emitted by the kernel's
|
|
26
|
+
* AddonHealthMonitor only AFTER the boot grace period ends — failures
|
|
27
|
+
* during the first 5 minutes are silently retried without alerting
|
|
28
|
+
* (slow-starting addons must have time to come up). Post-grace, this
|
|
29
|
+
* event is emitted exactly once per failure-streak; AlertCenter
|
|
30
|
+
* consumes it to create a persistent operator-visible alert.
|
|
31
|
+
*
|
|
32
|
+
* Payload: `{ packageName, addonId?, error: { message, stack }, retryCount, nextRetryAt }`.
|
|
33
|
+
*/
|
|
34
|
+
AddonLoadFailed = "addon.load-failed",
|
|
35
|
+
/**
|
|
36
|
+
* Addon recovered from a previous failure. Emitted when an addon
|
|
37
|
+
* transitions from `failed` back to `healthy` (typically via the
|
|
38
|
+
* monitor's auto-retry loop, or after manual `addons.retryLoad`).
|
|
39
|
+
* AlertCenter dismisses the corresponding `AddonLoadFailed` alert
|
|
40
|
+
* on this event.
|
|
41
|
+
*/
|
|
42
|
+
AddonLoadRecovered = "addon.load-recovered",
|
|
43
|
+
/**
|
|
44
|
+
* Monitor scheduled the next retry for a failed addon. Transient —
|
|
45
|
+
* surfaced to the UI for live-updating the "next retry in Ns"
|
|
46
|
+
* countdown on the Addons page row, NOT persisted as an alert.
|
|
47
|
+
*/
|
|
48
|
+
AddonRetryScheduled = "addon.retry-scheduled",
|
|
49
|
+
/**
|
|
50
|
+
* Monitor is attempting to reload a failed addon NOW. UI uses this
|
|
51
|
+
* to show a spinner during the retry attempt. Same transient nature
|
|
52
|
+
* as AddonRetryScheduled.
|
|
53
|
+
*/
|
|
54
|
+
AddonRetryAttempting = "addon.retry-attempting",
|
|
24
55
|
DeviceRegistered = "device.registered",
|
|
25
56
|
DeviceUnregistered = "device.unregistered",
|
|
26
57
|
DeviceEnabled = "device.enabled",
|
|
@@ -292,6 +323,9 @@ export declare enum EventCategory {
|
|
|
292
323
|
StreamOffline = "stream.offline",
|
|
293
324
|
NetworkTunnelStarted = "network.tunnel.started",
|
|
294
325
|
NetworkTunnelStopped = "network.tunnel.stopped",
|
|
326
|
+
/** Fired by the `local-network` cap when the host's interface set
|
|
327
|
+
* changes (new IP from DHCP, VPN connect, docker bridge added). */
|
|
328
|
+
LocalNetworkChanged = "network.local.changed",
|
|
295
329
|
BackupCompleted = "backup.completed",
|
|
296
330
|
BackupRestored = "backup.restored",
|
|
297
331
|
NotificationDispatched = "notification.dispatched",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-category.d.ts","sourceRoot":"","sources":["../../src/enums/event-category.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IAEvB,UAAU,gBAAgB;IAC1B,iBAAiB,wBAAwB;IACzC,gBAAgB,sBAAsB;IACtC;;;;;;;OAOG;IACH,gBAAgB,uBAAuB;IAGvC,YAAY,kBAAkB;IAC9B,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,gBAAgB,sBAAsB;IACtC,YAAY,kBAAkB;IAC9B,UAAU,gBAAgB;IAC1B,cAAc,qBAAqB;IACnC,gBAAgB,uBAAuB;
|
|
1
|
+
{"version":3,"file":"event-category.d.ts","sourceRoot":"","sources":["../../src/enums/event-category.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IAEvB,UAAU,gBAAgB;IAC1B,iBAAiB,wBAAwB;IACzC,gBAAgB,sBAAsB;IACtC;;;;;;;OAOG;IACH,gBAAgB,uBAAuB;IAGvC,YAAY,kBAAkB;I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