@camstack/addon-terminal 0.1.64 → 0.1.66

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 CHANGED
@@ -12855,7 +12855,26 @@ var DiscoveryCandidateSchema = object({
12855
12855
  * identity ahead of adoption. Rendering metadata (unit, precision)
12856
12856
  * flows live through the cap STATUS SLICE after adoption.
12857
12857
  */
12858
- sourceInfo: SourceInfoSchema.optional()
12858
+ sourceInfo: SourceInfoSchema.optional(),
12859
+ /**
12860
+ * Set when this candidate is a device the provider ALREADY owns.
12861
+ *
12862
+ * A scan cannot generally produce the identity a device was onboarded under
12863
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12864
+ * comparison never matches and an owned device looks addable. Re-adopting one
12865
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12866
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12867
+ * three child cameras offline for four hours.
12868
+ *
12869
+ * A provider that can recognise its own devices says so here. Absent means
12870
+ * "not recognised", which is not the same as "known to be new" — a provider
12871
+ * that cannot tell simply never sets it.
12872
+ */
12873
+ alreadyOnboarded: boolean().optional(),
12874
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12875
+ onboardedDeviceId: number().optional(),
12876
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12877
+ onboardedName: string().optional()
12859
12878
  });
12860
12879
  /**
12861
12880
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12902,7 +12921,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12902
12921
  id: string(),
12903
12922
  name: string(),
12904
12923
  type: string()
12905
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12924
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12925
+ kind: "mutation",
12926
+ timeoutMs: 3 * 6e4
12927
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12906
12928
  kind: "mutation",
12907
12929
  auth: "admin"
12908
12930
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -13183,7 +13205,8 @@ method(object({
13183
13205
  targetId: number()
13184
13206
  }), MigrateDeviceResultSchema, {
13185
13207
  kind: "mutation",
13186
- auth: "admin"
13208
+ auth: "admin",
13209
+ timeoutMs: 12 * 6e4
13187
13210
  }), 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({
13188
13211
  deviceId: number(),
13189
13212
  name: string()
@@ -34680,6 +34703,12 @@ Object.freeze({
34680
34703
  addonId: null,
34681
34704
  access: "view"
34682
34705
  },
34706
+ "deviceProvider.reloadDevice": {
34707
+ capName: "device-provider",
34708
+ capScope: "system",
34709
+ addonId: null,
34710
+ access: "create"
34711
+ },
34683
34712
  "deviceProvider.start": {
34684
34713
  capName: "device-provider",
34685
34714
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -12832,7 +12832,26 @@ var DiscoveryCandidateSchema = object({
12832
12832
  * identity ahead of adoption. Rendering metadata (unit, precision)
12833
12833
  * flows live through the cap STATUS SLICE after adoption.
12834
12834
  */
12835
- sourceInfo: SourceInfoSchema.optional()
12835
+ sourceInfo: SourceInfoSchema.optional(),
12836
+ /**
12837
+ * Set when this candidate is a device the provider ALREADY owns.
12838
+ *
12839
+ * A scan cannot generally produce the identity a device was onboarded under
12840
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12841
+ * comparison never matches and an owned device looks addable. Re-adopting one
12842
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12843
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12844
+ * three child cameras offline for four hours.
12845
+ *
12846
+ * A provider that can recognise its own devices says so here. Absent means
12847
+ * "not recognised", which is not the same as "known to be new" — a provider
12848
+ * that cannot tell simply never sets it.
12849
+ */
12850
+ alreadyOnboarded: boolean().optional(),
12851
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12852
+ onboardedDeviceId: number().optional(),
12853
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12854
+ onboardedName: string().optional()
12836
12855
  });
12837
12856
  /**
12838
12857
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12879,7 +12898,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12879
12898
  id: string(),
12880
12899
  name: string(),
12881
12900
  type: string()
12882
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12901
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12902
+ kind: "mutation",
12903
+ timeoutMs: 3 * 6e4
12904
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12883
12905
  kind: "mutation",
12884
12906
  auth: "admin"
12885
12907
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -13160,7 +13182,8 @@ method(object({
13160
13182
  targetId: number()
13161
13183
  }), MigrateDeviceResultSchema, {
13162
13184
  kind: "mutation",
13163
- auth: "admin"
13185
+ auth: "admin",
13186
+ timeoutMs: 12 * 6e4
13164
13187
  }), 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({
13165
13188
  deviceId: number(),
13166
13189
  name: string()
@@ -34657,6 +34680,12 @@ Object.freeze({
34657
34680
  addonId: null,
34658
34681
  access: "view"
34659
34682
  },
34683
+ "deviceProvider.reloadDevice": {
34684
+ capName: "device-provider",
34685
+ capScope: "system",
34686
+ addonId: null,
34687
+ access: "create"
34688
+ },
34660
34689
  "deviceProvider.start": {
34661
34690
  capName: "device-provider",
34662
34691
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",