@camstack/addon-agent-ui 1.2.177 → 1.2.178
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.js +114 -16
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5380,7 +5380,7 @@ var ZodIssueCode = {
|
|
|
5380
5380
|
var ZodFirstPartyTypeKind;
|
|
5381
5381
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5382
5382
|
//#endregion
|
|
5383
|
-
//#region ../types/dist/sleep-
|
|
5383
|
+
//#region ../types/dist/sleep-C16NCZR2.mjs
|
|
5384
5384
|
/**
|
|
5385
5385
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5386
5386
|
* window to float samples (D455).
|
|
@@ -27870,6 +27870,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
27870
27870
|
*/
|
|
27871
27871
|
alive: boolean()
|
|
27872
27872
|
})), method(object({
|
|
27873
|
+
deviceId: number().int().nonnegative(),
|
|
27874
|
+
sessionId: string(),
|
|
27875
|
+
downlinkMbps: number().nonnegative()
|
|
27876
|
+
}), object({
|
|
27877
|
+
outcome: _enum(["switching", "held"]),
|
|
27878
|
+
tier: CamProfileSchema.nullable(),
|
|
27879
|
+
reason: string()
|
|
27880
|
+
}), { kind: "mutation" }), method(object({
|
|
27873
27881
|
deviceId: number().int().nonnegative(),
|
|
27874
27882
|
sessionId: string()
|
|
27875
27883
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -30545,7 +30553,8 @@ var ConnectionEndpointSchema = object({
|
|
|
30545
30553
|
"lan-ipv6",
|
|
30546
30554
|
"public",
|
|
30547
30555
|
"loopback",
|
|
30548
|
-
"app-link"
|
|
30556
|
+
"app-link",
|
|
30557
|
+
"custom"
|
|
30549
30558
|
]),
|
|
30550
30559
|
/**
|
|
30551
30560
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -30648,13 +30657,12 @@ var ViewerEndpointsSchema = object({
|
|
|
30648
30657
|
resolved: array(string()).readonly()
|
|
30649
30658
|
});
|
|
30650
30659
|
/**
|
|
30651
|
-
*
|
|
30652
|
-
*
|
|
30660
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
30661
|
+
* one release for addons built against it): `cluster` is the `agents` role,
|
|
30662
|
+
* `browser` the `signIn` role; `override` is the flagged address.
|
|
30653
30663
|
*/
|
|
30654
30664
|
var HubAddressSnapshotSchema = object({
|
|
30655
|
-
/** The operator's override, or null for automatic. */
|
|
30656
30665
|
override: string().nullable(),
|
|
30657
|
-
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
30658
30666
|
resolved: string().nullable(),
|
|
30659
30667
|
source: _enum([
|
|
30660
30668
|
"override",
|
|
@@ -30663,11 +30671,61 @@ var HubAddressSnapshotSchema = object({
|
|
|
30663
30671
|
])
|
|
30664
30672
|
});
|
|
30665
30673
|
var HubAddressesSchema = object({
|
|
30666
|
-
/** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
|
|
30667
30674
|
cluster: HubAddressSnapshotSchema,
|
|
30668
|
-
/** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
|
|
30669
30675
|
browser: HubAddressSnapshotSchema
|
|
30670
30676
|
});
|
|
30677
|
+
/**
|
|
30678
|
+
* What an address is used for (`hub-address.ts`). `viewer` is many-valued;
|
|
30679
|
+
* `notifications`, `agents` and `signIn` are carried by at most one address.
|
|
30680
|
+
*/
|
|
30681
|
+
var HubAddressRoleSchema = _enum([
|
|
30682
|
+
"viewer",
|
|
30683
|
+
"notifications",
|
|
30684
|
+
"agents",
|
|
30685
|
+
"signIn"
|
|
30686
|
+
]);
|
|
30687
|
+
var RoleSourceSchema = _enum([
|
|
30688
|
+
"flagged",
|
|
30689
|
+
"auto",
|
|
30690
|
+
"none"
|
|
30691
|
+
]);
|
|
30692
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
30693
|
+
var HubAddressRoleResolutionSchema = object({
|
|
30694
|
+
/** The address carrying the flag, or null = automatic. */
|
|
30695
|
+
flagged: string().nullable(),
|
|
30696
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
30697
|
+
resolved: string().nullable(),
|
|
30698
|
+
source: RoleSourceSchema
|
|
30699
|
+
});
|
|
30700
|
+
var HubViewerResolutionSchema = object({
|
|
30701
|
+
/** The addresses flagged `viewer`, or empty = automatic. */
|
|
30702
|
+
flagged: array(string()).readonly(),
|
|
30703
|
+
/** What the apps race right now. */
|
|
30704
|
+
resolved: array(string()).readonly(),
|
|
30705
|
+
source: RoleSourceSchema
|
|
30706
|
+
});
|
|
30707
|
+
var HubAddressBookSchema = object({
|
|
30708
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
30709
|
+
/** In the hub's detected palette right now. */
|
|
30710
|
+
detected: boolean(),
|
|
30711
|
+
/** Entered by the operator (removable). */
|
|
30712
|
+
custom: boolean(),
|
|
30713
|
+
/** The roles explicitly flagged on this address. */
|
|
30714
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
30715
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
30716
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
30717
|
+
/** The roles this address may be flagged with. */
|
|
30718
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
30719
|
+
})).readonly(),
|
|
30720
|
+
roles: object({
|
|
30721
|
+
viewer: HubViewerResolutionSchema,
|
|
30722
|
+
notifications: HubAddressRoleResolutionSchema,
|
|
30723
|
+
agents: HubAddressRoleResolutionSchema,
|
|
30724
|
+
signIn: HubAddressRoleResolutionSchema
|
|
30725
|
+
}),
|
|
30726
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
30727
|
+
appLinkHub: string().nullable()
|
|
30728
|
+
});
|
|
30671
30729
|
var AllowedAddressesSchema = object({
|
|
30672
30730
|
/**
|
|
30673
30731
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -30714,13 +30772,24 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
30714
30772
|
* an address notification links can be flagged with, not a hub
|
|
30715
30773
|
* route. Default `false`: racers and rankers never see it. */
|
|
30716
30774
|
includeAppLink: boolean().optional()
|
|
30717
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(
|
|
30718
|
-
|
|
30719
|
-
|
|
30720
|
-
}),
|
|
30775
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
|
|
30776
|
+
baseUrl: string(),
|
|
30777
|
+
label: string().max(80)
|
|
30778
|
+
}), HubAddressBookSchema, {
|
|
30779
|
+
kind: "mutation",
|
|
30780
|
+
auth: "admin"
|
|
30781
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
30782
|
+
kind: "mutation",
|
|
30783
|
+
auth: "admin"
|
|
30784
|
+
}), method(object({
|
|
30785
|
+
role: HubAddressRoleSchema,
|
|
30786
|
+
baseUrl: string().nullable(),
|
|
30787
|
+
enabled: boolean(),
|
|
30788
|
+
acceptInsecureHttp: boolean().optional()
|
|
30789
|
+
}), HubAddressBookSchema, {
|
|
30721
30790
|
kind: "mutation",
|
|
30722
30791
|
auth: "admin"
|
|
30723
|
-
}), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
30792
|
+
}), method(_void(), HubAddressesSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
30724
30793
|
kind: "mutation",
|
|
30725
30794
|
auth: "admin"
|
|
30726
30795
|
}), method(object({
|
|
@@ -39170,12 +39239,24 @@ Object.freeze({
|
|
|
39170
39239
|
addonId: null,
|
|
39171
39240
|
access: "view"
|
|
39172
39241
|
},
|
|
39242
|
+
"localNetwork.addCustomAddress": {
|
|
39243
|
+
capName: "local-network",
|
|
39244
|
+
capScope: "system",
|
|
39245
|
+
addonId: null,
|
|
39246
|
+
access: "create"
|
|
39247
|
+
},
|
|
39173
39248
|
"localNetwork.downloadCa": {
|
|
39174
39249
|
capName: "local-network",
|
|
39175
39250
|
capScope: "system",
|
|
39176
39251
|
addonId: null,
|
|
39177
39252
|
access: "view"
|
|
39178
39253
|
},
|
|
39254
|
+
"localNetwork.getAddresses": {
|
|
39255
|
+
capName: "local-network",
|
|
39256
|
+
capScope: "system",
|
|
39257
|
+
addonId: null,
|
|
39258
|
+
access: "view"
|
|
39259
|
+
},
|
|
39179
39260
|
"localNetwork.getAllowedAddresses": {
|
|
39180
39261
|
capName: "local-network",
|
|
39181
39262
|
capScope: "system",
|
|
@@ -39230,6 +39311,12 @@ Object.freeze({
|
|
|
39230
39311
|
addonId: null,
|
|
39231
39312
|
access: "create"
|
|
39232
39313
|
},
|
|
39314
|
+
"localNetwork.removeCustomAddress": {
|
|
39315
|
+
capName: "local-network",
|
|
39316
|
+
capScope: "system",
|
|
39317
|
+
addonId: null,
|
|
39318
|
+
access: "delete"
|
|
39319
|
+
},
|
|
39233
39320
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
39234
39321
|
capName: "local-network",
|
|
39235
39322
|
capScope: "system",
|
|
@@ -39242,13 +39329,13 @@ Object.freeze({
|
|
|
39242
39329
|
addonId: null,
|
|
39243
39330
|
access: "create"
|
|
39244
39331
|
},
|
|
39245
|
-
"localNetwork.
|
|
39332
|
+
"localNetwork.setAddressRole": {
|
|
39246
39333
|
capName: "local-network",
|
|
39247
39334
|
capScope: "system",
|
|
39248
39335
|
addonId: null,
|
|
39249
39336
|
access: "create"
|
|
39250
39337
|
},
|
|
39251
|
-
"localNetwork.
|
|
39338
|
+
"localNetwork.setAllowedAddresses": {
|
|
39252
39339
|
capName: "local-network",
|
|
39253
39340
|
capScope: "system",
|
|
39254
39341
|
addonId: null,
|
|
@@ -43502,6 +43589,12 @@ Object.freeze({
|
|
|
43502
43589
|
addonId: null,
|
|
43503
43590
|
access: "create"
|
|
43504
43591
|
},
|
|
43592
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
43593
|
+
capName: "webrtc-session",
|
|
43594
|
+
capScope: "device",
|
|
43595
|
+
addonId: null,
|
|
43596
|
+
access: "create"
|
|
43597
|
+
},
|
|
43505
43598
|
"webrtcSession.closeSession": {
|
|
43506
43599
|
capName: "webrtc-session",
|
|
43507
43600
|
capScope: "device",
|
|
@@ -47424,6 +47517,11 @@ Object.freeze({
|
|
|
47424
47517
|
form: "single",
|
|
47425
47518
|
optional: false
|
|
47426
47519
|
}],
|
|
47520
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
47521
|
+
name: "deviceId",
|
|
47522
|
+
form: "single",
|
|
47523
|
+
optional: false
|
|
47524
|
+
}],
|
|
47427
47525
|
"webrtcSession.closeSession": [{
|
|
47428
47526
|
name: "deviceId",
|
|
47429
47527
|
form: "single",
|
|
@@ -48584,7 +48682,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
48584
48682
|
capability: adminUiCapability,
|
|
48585
48683
|
provider: {
|
|
48586
48684
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
48587
|
-
getVersion: async () => ({ version: "1.2.
|
|
48685
|
+
getVersion: async () => ({ version: "1.2.178" })
|
|
48588
48686
|
}
|
|
48589
48687
|
}];
|
|
48590
48688
|
}
|