@camstack/addon-agent-ui 1.2.62 → 1.2.64

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 +33 -4
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -12550,7 +12550,26 @@ var DiscoveryCandidateSchema = object({
12550
12550
  * identity ahead of adoption. Rendering metadata (unit, precision)
12551
12551
  * flows live through the cap STATUS SLICE after adoption.
12552
12552
  */
12553
- sourceInfo: SourceInfoSchema.optional()
12553
+ sourceInfo: SourceInfoSchema.optional(),
12554
+ /**
12555
+ * Set when this candidate is a device the provider ALREADY owns.
12556
+ *
12557
+ * A scan cannot generally produce the identity a device was onboarded under
12558
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12559
+ * comparison never matches and an owned device looks addable. Re-adopting one
12560
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12561
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12562
+ * three child cameras offline for four hours.
12563
+ *
12564
+ * A provider that can recognise its own devices says so here. Absent means
12565
+ * "not recognised", which is not the same as "known to be new" — a provider
12566
+ * that cannot tell simply never sets it.
12567
+ */
12568
+ alreadyOnboarded: boolean().optional(),
12569
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12570
+ onboardedDeviceId: number().optional(),
12571
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12572
+ onboardedName: string().optional()
12554
12573
  });
12555
12574
  /**
12556
12575
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12597,7 +12616,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12597
12616
  id: string(),
12598
12617
  name: string(),
12599
12618
  type: string()
12600
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12619
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12620
+ kind: "mutation",
12621
+ timeoutMs: 3 * 6e4
12622
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12601
12623
  kind: "mutation",
12602
12624
  auth: "admin"
12603
12625
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12878,7 +12900,8 @@ method(object({
12878
12900
  targetId: number()
12879
12901
  }), MigrateDeviceResultSchema, {
12880
12902
  kind: "mutation",
12881
- auth: "admin"
12903
+ auth: "admin",
12904
+ timeoutMs: 12 * 6e4
12882
12905
  }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
12883
12906
  deviceId: number(),
12884
12907
  name: string()
@@ -30737,6 +30760,12 @@ Object.freeze({
30737
30760
  addonId: null,
30738
30761
  access: "view"
30739
30762
  },
30763
+ "deviceProvider.reloadDevice": {
30764
+ capName: "device-provider",
30765
+ capScope: "system",
30766
+ addonId: null,
30767
+ access: "create"
30768
+ },
30740
30769
  "deviceProvider.start": {
30741
30770
  capName: "device-provider",
30742
30771
  capScope: "system",
@@ -37330,7 +37359,7 @@ var AgentUIAddon = class extends BaseAddon {
37330
37359
  capability: adminUiCapability,
37331
37360
  provider: {
37332
37361
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37333
- getVersion: async () => ({ version: "1.2.62" })
37362
+ getVersion: async () => ({ version: "1.2.64" })
37334
37363
  }
37335
37364
  }];
37336
37365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.62",
3
+ "version": "1.2.64",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",