@camstack/addon-agent-ui 1.2.177 → 1.2.179

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 (2) hide show
  1. package/dist/addon.js +128 -20
  2. 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-DXKLNFvA.mjs
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).
@@ -15934,6 +15934,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
15934
15934
  kind: "mutation",
15935
15935
  auth: "admin"
15936
15936
  });
15937
+ var HUB_ADDRESS_ROLES = [
15938
+ "appConnections",
15939
+ "notificationTaps",
15940
+ "internal",
15941
+ "publicEndpoint"
15942
+ ];
15937
15943
  /**
15938
15944
  * Transport bounds for AI capability methods.
15939
15945
  *
@@ -20105,7 +20111,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20105
20111
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20106
20112
  * is the one that starts the entry delay — the entry-delay notification already names it.
20107
20113
  */
20108
- notifySensorRewatched: boolean().optional()
20114
+ notifySensorRewatched: boolean().optional(),
20115
+ /**
20116
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20117
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20118
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20119
+ */
20120
+ notifySensorIgnored: boolean().optional()
20109
20121
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20110
20122
  var NcAlarmModeDelaysEditListSchema = array(object({
20111
20123
  mode: AlarmArmModeSchema,
@@ -20118,7 +20130,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20118
20130
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20119
20131
  notifyDuringEntryDelay: boolean().nullable().optional(),
20120
20132
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20121
- notifySensorRewatched: boolean().nullable().optional()
20133
+ notifySensorRewatched: boolean().nullable().optional(),
20134
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20135
+ notifySensorIgnored: boolean().nullable().optional()
20122
20136
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20123
20137
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20124
20138
  var NcAlarmNonBlockingEditSchema = object({
@@ -27870,6 +27884,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
27870
27884
  */
27871
27885
  alive: boolean()
27872
27886
  })), method(object({
27887
+ deviceId: number().int().nonnegative(),
27888
+ sessionId: string(),
27889
+ downlinkMbps: number().nonnegative()
27890
+ }), object({
27891
+ outcome: _enum(["switching", "held"]),
27892
+ tier: CamProfileSchema.nullable(),
27893
+ reason: string()
27894
+ }), { kind: "mutation" }), method(object({
27873
27895
  deviceId: number().int().nonnegative(),
27874
27896
  sessionId: string()
27875
27897
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -30545,7 +30567,8 @@ var ConnectionEndpointSchema = object({
30545
30567
  "lan-ipv6",
30546
30568
  "public",
30547
30569
  "loopback",
30548
- "app-link"
30570
+ "app-link",
30571
+ "custom"
30549
30572
  ]),
30550
30573
  /**
30551
30574
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -30614,7 +30637,7 @@ var GetConnectionEndpointsResultSchema = object({
30614
30637
  localPort: AdvertisedLocalPortSchema
30615
30638
  });
30616
30639
  /**
30617
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
30640
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
30618
30641
  * since D709 is the CamStack app link; `resolved` reports the effective value,
30619
30642
  * so the UI can show it either way.
30620
30643
  */
@@ -30648,13 +30671,12 @@ var ViewerEndpointsSchema = object({
30648
30671
  resolved: array(string()).readonly()
30649
30672
  });
30650
30673
  /**
30651
- * One audience's hub address (see `hub-address.ts`): the operator's stored
30652
- * override, the address in use, and where it came from.
30674
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
30675
+ * for addons built against it): `cluster` is the `internal` role, `browser`
30676
+ * the `publicEndpoint` role; `override` is the flagged address.
30653
30677
  */
30654
30678
  var HubAddressSnapshotSchema = object({
30655
- /** The operator's override, or null for automatic. */
30656
30679
  override: string().nullable(),
30657
- /** The address in use, or null when nothing qualifies (never loopback). */
30658
30680
  resolved: string().nullable(),
30659
30681
  source: _enum([
30660
30682
  "override",
@@ -30663,11 +30685,57 @@ var HubAddressSnapshotSchema = object({
30663
30685
  ])
30664
30686
  });
30665
30687
  var HubAddressesSchema = object({
30666
- /** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
30667
30688
  cluster: HubAddressSnapshotSchema,
30668
- /** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
30669
30689
  browser: HubAddressSnapshotSchema
30670
30690
  });
30691
+ /**
30692
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
30693
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
30694
+ * by at most one address.
30695
+ */
30696
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
30697
+ var RoleSourceSchema = _enum([
30698
+ "flagged",
30699
+ "auto",
30700
+ "none"
30701
+ ]);
30702
+ /** One single-valued role: the flagged address, the one in use, and why. */
30703
+ var HubAddressRoleResolutionSchema = object({
30704
+ /** The address carrying the flag, or null = automatic. */
30705
+ flagged: string().nullable(),
30706
+ /** The address in use, or null when nothing qualifies (never loopback). */
30707
+ resolved: string().nullable(),
30708
+ source: RoleSourceSchema
30709
+ });
30710
+ var HubAppConnectionsResolutionSchema = object({
30711
+ /** The addresses flagged `appConnections`, or empty = automatic. */
30712
+ flagged: array(string()).readonly(),
30713
+ /** What the apps race right now. */
30714
+ resolved: array(string()).readonly(),
30715
+ source: RoleSourceSchema
30716
+ });
30717
+ var HubAddressBookSchema = object({
30718
+ rows: array(ConnectionEndpointSchema.extend({
30719
+ /** In the hub's detected palette right now. */
30720
+ detected: boolean(),
30721
+ /** Entered by the operator (removable). */
30722
+ custom: boolean(),
30723
+ /** The roles explicitly flagged on this address. */
30724
+ flags: array(HubAddressRoleSchema).readonly(),
30725
+ /** The roles this address serves right now — flagged or automatic. */
30726
+ inUse: array(HubAddressRoleSchema).readonly(),
30727
+ /** The roles this address may be flagged with. */
30728
+ eligible: array(HubAddressRoleSchema).readonly()
30729
+ })).readonly(),
30730
+ roles: object({
30731
+ appConnections: HubAppConnectionsResolutionSchema,
30732
+ notificationTaps: HubAddressRoleResolutionSchema,
30733
+ internal: HubAddressRoleResolutionSchema,
30734
+ publicEndpoint: HubAddressRoleResolutionSchema
30735
+ }),
30736
+ /** The `hub=` an app link carries (D709), or null. */
30737
+ appLinkHub: string().nullable()
30738
+ });
30671
30739
  var AllowedAddressesSchema = object({
30672
30740
  /**
30673
30741
  * Allowlist of interface addresses operators have explicitly opted
@@ -30711,16 +30779,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30711
30779
  * tunnel always emits `https://` regardless. */
30712
30780
  scheme: _enum(["http", "https"]).optional(),
30713
30781
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
30714
- * an address notification links can be flagged with, not a hub
30782
+ * an address notification taps can be flagged with, not a hub
30715
30783
  * route. Default `false`: racers and rankers never see it. */
30716
30784
  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(_void(), HubAddressesSchema), method(object({
30718
- audience: _enum(["cluster", "browser"]),
30719
- baseUrl: string().nullable()
30720
- }), HubAddressesSchema, {
30785
+ }), 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({
30786
+ baseUrl: string(),
30787
+ label: string().max(80)
30788
+ }), HubAddressBookSchema, {
30789
+ kind: "mutation",
30790
+ auth: "admin"
30791
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
30792
+ kind: "mutation",
30793
+ auth: "admin"
30794
+ }), method(object({
30795
+ role: HubAddressRoleSchema,
30796
+ baseUrl: string().nullable(),
30797
+ enabled: boolean(),
30798
+ acceptInsecureHttp: boolean().optional()
30799
+ }), HubAddressBookSchema, {
30721
30800
  kind: "mutation",
30722
30801
  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, {
30802
+ }), 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
30803
  kind: "mutation",
30725
30804
  auth: "admin"
30726
30805
  }), method(object({
@@ -39170,12 +39249,24 @@ Object.freeze({
39170
39249
  addonId: null,
39171
39250
  access: "view"
39172
39251
  },
39252
+ "localNetwork.addCustomAddress": {
39253
+ capName: "local-network",
39254
+ capScope: "system",
39255
+ addonId: null,
39256
+ access: "create"
39257
+ },
39173
39258
  "localNetwork.downloadCa": {
39174
39259
  capName: "local-network",
39175
39260
  capScope: "system",
39176
39261
  addonId: null,
39177
39262
  access: "view"
39178
39263
  },
39264
+ "localNetwork.getAddresses": {
39265
+ capName: "local-network",
39266
+ capScope: "system",
39267
+ addonId: null,
39268
+ access: "view"
39269
+ },
39179
39270
  "localNetwork.getAllowedAddresses": {
39180
39271
  capName: "local-network",
39181
39272
  capScope: "system",
@@ -39230,6 +39321,12 @@ Object.freeze({
39230
39321
  addonId: null,
39231
39322
  access: "create"
39232
39323
  },
39324
+ "localNetwork.removeCustomAddress": {
39325
+ capName: "local-network",
39326
+ capScope: "system",
39327
+ addonId: null,
39328
+ access: "delete"
39329
+ },
39233
39330
  "localNetwork.resetAllowlistToBestMatch": {
39234
39331
  capName: "local-network",
39235
39332
  capScope: "system",
@@ -39242,13 +39339,13 @@ Object.freeze({
39242
39339
  addonId: null,
39243
39340
  access: "create"
39244
39341
  },
39245
- "localNetwork.setAllowedAddresses": {
39342
+ "localNetwork.setAddressRole": {
39246
39343
  capName: "local-network",
39247
39344
  capScope: "system",
39248
39345
  addonId: null,
39249
39346
  access: "create"
39250
39347
  },
39251
- "localNetwork.setHubAddress": {
39348
+ "localNetwork.setAllowedAddresses": {
39252
39349
  capName: "local-network",
39253
39350
  capScope: "system",
39254
39351
  addonId: null,
@@ -43502,6 +43599,12 @@ Object.freeze({
43502
43599
  addonId: null,
43503
43600
  access: "create"
43504
43601
  },
43602
+ "webrtcSession.applyDownlinkProbe": {
43603
+ capName: "webrtc-session",
43604
+ capScope: "device",
43605
+ addonId: null,
43606
+ access: "create"
43607
+ },
43505
43608
  "webrtcSession.closeSession": {
43506
43609
  capName: "webrtc-session",
43507
43610
  capScope: "device",
@@ -47424,6 +47527,11 @@ Object.freeze({
47424
47527
  form: "single",
47425
47528
  optional: false
47426
47529
  }],
47530
+ "webrtcSession.applyDownlinkProbe": [{
47531
+ name: "deviceId",
47532
+ form: "single",
47533
+ optional: false
47534
+ }],
47427
47535
  "webrtcSession.closeSession": [{
47428
47536
  name: "deviceId",
47429
47537
  form: "single",
@@ -48584,7 +48692,7 @@ var AgentUIAddon = class extends BaseAddon {
48584
48692
  capability: adminUiCapability,
48585
48693
  provider: {
48586
48694
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
48587
- getVersion: async () => ({ version: "1.2.177" })
48695
+ getVersion: async () => ({ version: "1.2.179" })
48588
48696
  }
48589
48697
  }];
48590
48698
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.177",
3
+ "version": "1.2.179",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",