@camstack/core 0.1.36 → 0.1.37

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/index.js CHANGED
@@ -37,7 +37,7 @@ let node_vm = require("node:vm");
37
37
  node_vm = require_chunk.__toESM(node_vm);
38
38
  let node_os = require("node:os");
39
39
  node_os = require_chunk.__toESM(node_os);
40
- //#region ../types/dist/index-YnRVILXN.mjs
40
+ //#region ../types/dist/index-Ce7RZWP4.mjs
41
41
  var MODEL_FORMATS = [
42
42
  "onnx",
43
43
  "coreml",
@@ -2654,10 +2654,30 @@ var LinkStateSchema = zod.z.enum([
2654
2654
  "linked",
2655
2655
  "error"
2656
2656
  ]);
2657
+ var ExportSetupFieldSchema = zod.z.object({
2658
+ label: zod.z.string(),
2659
+ value: zod.z.string(),
2660
+ /** Mask the value by default + render a reveal toggle (client id, secrets). */
2661
+ secret: zod.z.boolean().optional()
2662
+ });
2663
+ var ExportSetupSchema = zod.z.object({
2664
+ /** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
2665
+ qr: zod.z.string().optional(),
2666
+ /** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
2667
+ fields: zod.z.array(ExportSetupFieldSchema).readonly().optional(),
2668
+ /** Free-form operator instructions rendered above the fields. */
2669
+ note: zod.z.string().optional()
2670
+ });
2657
2671
  var DeviceExportStatusSchema = zod.z.object({
2658
2672
  linkState: LinkStateSchema,
2659
2673
  exposedDeviceCount: zod.z.number(),
2660
- error: zod.z.string().optional()
2674
+ error: zod.z.string().optional(),
2675
+ /**
2676
+ * Optional pairing/account info the panel renders in a generic
2677
+ * "Setup" section. Addon-agnostic — the addon id identifies the
2678
+ * export target, never an `ecosystem` key here.
2679
+ */
2680
+ setup: ExportSetupSchema.optional()
2661
2681
  });
2662
2682
  var DeviceKindSchema = zod.z.string();
2663
2683
  var ExposedDeviceSchema = zod.z.object({
@@ -4898,7 +4918,24 @@ var MeshStatusSchema = zod.z.object({
4898
4918
  * doesn't rotate keys for the bound host. Operator-facing surface
4899
4919
  * for "your access expires on …" banners.
4900
4920
  */
4901
- keyExpiry: zod.z.number().nullable()
4921
+ keyExpiry: zod.z.number().nullable(),
4922
+ /**
4923
+ * When the provider runs its OWN mesh daemon (e.g. the Tailscale
4924
+ * client addon in `onboard` mode spawns a private `tailscaled`),
4925
+ * this carries the local control-socket path. Companion addons that
4926
+ * must drive the SAME daemon — chiefly `tailscale-ingress` for
4927
+ * Serve/Funnel — read it to point their CLI at the right socket
4928
+ * instead of the system default. Empty when the provider uses the
4929
+ * host's system daemon (or doesn't have the concept).
4930
+ */
4931
+ daemonSocket: zod.z.string().optional(),
4932
+ /**
4933
+ * Path to the mesh CLI binary the provider downloaded for onboard
4934
+ * mode. Companion addons reuse it so they don't need a system
4935
+ * install when the operator chose a fully self-contained mesh.
4936
+ * Empty in host mode.
4937
+ */
4938
+ daemonCliPath: zod.z.string().optional()
4902
4939
  });
4903
4940
  method(zod.z.void(), MeshStatusSchema), method(zod.z.object({
4904
4941
  /** Provider-specific auth key. For Tailscale this is the
@@ -5580,6 +5617,21 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
5580
5617
  var RestartAddonResultSchema = zod.z.unknown();
5581
5618
  var InstallPackageResultSchema = zod.z.unknown();
5582
5619
  var ReloadPackagesResultSchema = zod.z.unknown();
5620
+ var UpdateFrameworkPackageResultSchema = zod.z.object({
5621
+ packageName: zod.z.string(),
5622
+ fromVersion: zod.z.string(),
5623
+ toVersion: zod.z.string(),
5624
+ /** Ms-epoch the server scheduled its self-restart. */
5625
+ restartingAt: zod.z.number()
5626
+ });
5627
+ var FrameworkPackageStatusSchema = zod.z.object({
5628
+ packageName: zod.z.string(),
5629
+ currentVersion: zod.z.string(),
5630
+ latestVersion: zod.z.string().nullable(),
5631
+ hasUpdate: zod.z.boolean(),
5632
+ /** Optional manifest description for the row tooltip. */
5633
+ description: zod.z.string().optional()
5634
+ });
5583
5635
  var LogStreamEntrySchema = zod.z.object({
5584
5636
  timestamp: zod.z.string(),
5585
5637
  level: zod.z.string(),
@@ -5611,21 +5663,43 @@ method(zod.z.void(), zod.z.array(AddonListItemSchema).readonly()), method(zod.z.
5611
5663
  }), method(zod.z.void(), ReloadPackagesResultSchema, {
5612
5664
  kind: "mutation",
5613
5665
  auth: "admin"
5614
- }), method(zod.z.object({ query: zod.z.string().optional() }), zod.z.array(SearchResultSchema)), method(zod.z.void(), zod.z.array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(zod.z.object({
5666
+ }), method(zod.z.object({ query: zod.z.string().optional() }), zod.z.array(SearchResultSchema)), method(zod.z.object({ nodeId: zod.z.string().optional() }), zod.z.array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(zod.z.object({
5615
5667
  name: zod.z.string().min(1),
5616
- version: zod.z.string().optional()
5668
+ version: zod.z.string().optional(),
5669
+ nodeId: zod.z.string().optional()
5617
5670
  }), zod.z.unknown(), {
5618
5671
  kind: "mutation",
5619
5672
  auth: "admin"
5620
5673
  }), method(zod.z.object({ name: zod.z.string().min(1) }), zod.z.object({ rolledBackTo: zod.z.string().nullable() }), {
5621
5674
  kind: "mutation",
5622
5675
  auth: "admin"
5623
- }), method(zod.z.void(), zod.z.unknown(), {
5676
+ }), method(zod.z.object({ nodeId: zod.z.string().optional() }), zod.z.unknown(), {
5624
5677
  kind: "mutation",
5625
5678
  auth: "admin"
5626
5679
  }), method(zod.z.object({ confirm: zod.z.literal(true) }), zod.z.unknown(), {
5627
5680
  kind: "mutation",
5628
5681
  auth: "admin"
5682
+ }), method(zod.z.void(), zod.z.object({
5683
+ kind: zod.z.enum([
5684
+ "framework-update",
5685
+ "manual",
5686
+ "system"
5687
+ ]),
5688
+ packageName: zod.z.string().optional(),
5689
+ fromVersion: zod.z.string().optional(),
5690
+ toVersion: zod.z.string().optional(),
5691
+ requestedBy: zod.z.string().optional(),
5692
+ requestedAt: zod.z.number()
5693
+ }).nullable(), { auth: "admin" }), method(zod.z.void(), zod.z.array(FrameworkPackageStatusSchema).readonly(), { auth: "admin" }), method(zod.z.object({ capName: zod.z.string().min(1) }), zod.z.array(zod.z.object({
5694
+ addonId: zod.z.string(),
5695
+ mode: zod.z.enum(["singleton", "collection"]),
5696
+ isActive: zod.z.boolean()
5697
+ })).readonly()), method(zod.z.object({
5698
+ packageName: zod.z.string().min(1),
5699
+ version: zod.z.string().optional()
5700
+ }), UpdateFrameworkPackageResultSchema, {
5701
+ kind: "mutation",
5702
+ auth: "admin"
5629
5703
  }), method(zod.z.object({ name: zod.z.string() }), zod.z.array(PackageVersionInfoSchema).readonly()), method(zod.z.object({ addonId: zod.z.string() }), RestartAddonResultSchema, {
5630
5704
  kind: "mutation",
5631
5705
  auth: "admin"