@camstack/addon-export-alexa 1.2.64 → 1.2.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.
@@ -10775,6 +10775,89 @@ var LocationStatSchema = object({
10775
10775
  fileCount: number(),
10776
10776
  present: boolean()
10777
10777
  });
10778
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10779
+ var BackupRunStateSchema = _enum([
10780
+ "queued",
10781
+ "running",
10782
+ "succeeded",
10783
+ "failed",
10784
+ "cancelled"
10785
+ ]);
10786
+ /**
10787
+ * Where a running backup currently is. `queued` before it starts,
10788
+ * `building` while the tar.gz is being staged, `uploading` during the
10789
+ * per-destination fan-out, `done` once terminal.
10790
+ */
10791
+ var BackupRunPhaseSchema = _enum([
10792
+ "queued",
10793
+ "building",
10794
+ "uploading",
10795
+ "done"
10796
+ ]);
10797
+ /**
10798
+ * Observable state of one backup run — readable WHILE it runs via
10799
+ * `backup.listRuns`. This is what makes the execution queue and
10800
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10801
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10802
+ * diagnosable with `du` because nothing reported that runs existed or
10803
+ * how large the staged archive had grown.
10804
+ */
10805
+ var BackupRunSchema = object({
10806
+ /** Stable run id — the handle `backup.cancel` takes. */
10807
+ id: string(),
10808
+ state: BackupRunStateSchema,
10809
+ phase: BackupRunPhaseSchema,
10810
+ /**
10811
+ * Resolved destination location ids. Empty while queued (targets are
10812
+ * resolved when the run starts, against the then-current policies).
10813
+ */
10814
+ destinationIds: array(string()).readonly(),
10815
+ label: string().optional(),
10816
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10817
+ requestedAt: number(),
10818
+ /** ms-epoch when the run left the queue and started building. */
10819
+ startedAt: number().optional(),
10820
+ /** ms-epoch when the run reached a terminal state. */
10821
+ finishedAt: number().optional(),
10822
+ /** Compressed bytes of the staging archive written so far. */
10823
+ stagedBytes: number(),
10824
+ /** Final staged archive size, once the build phase completes. */
10825
+ archiveSizeBytes: number().optional(),
10826
+ /** Bytes pushed to the destination currently uploading. */
10827
+ uploadedBytes: number(),
10828
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10829
+ completedDestinationIds: array(string()).readonly(),
10830
+ /** Destinations that failed during the fan-out. */
10831
+ failedDestinationIds: array(string()).readonly(),
10832
+ /** Failure message when `state === 'failed'`. */
10833
+ error: string().optional(),
10834
+ /**
10835
+ * 1-based place in the execution queue — 1 = runs next. Present only
10836
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10837
+ * queue's OWN pending order, never derived from timestamps, so the
10838
+ * UI cannot show an order the executor will not honour.
10839
+ */
10840
+ queuePosition: number().int().min(1).optional()
10841
+ });
10842
+ /**
10843
+ * Result of `backup.trigger`. The call still resolves when the run
10844
+ * terminates (compat with schedule-driven runs and the admin UI), but
10845
+ * it now names the run and says whether it had to WAIT: a trigger that
10846
+ * arrives while another run is in flight is enqueued (or joined onto
10847
+ * an identical already-queued run), never started concurrently.
10848
+ */
10849
+ var BackupTriggerResultSchema = object({
10850
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10851
+ runId: string(),
10852
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10853
+ queued: boolean(),
10854
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10855
+ joined: boolean(),
10856
+ /** True when the run was cancelled before completing every destination. */
10857
+ cancelled: boolean(),
10858
+ /** One entry per destination the archive landed at (partial on cancel). */
10859
+ entries: array(BackupEntrySchema).readonly()
10860
+ });
10778
10861
  /**
10779
10862
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10780
10863
  * SET of destination locations. Supersedes the per-location cron on
@@ -10822,7 +10905,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10822
10905
  * retention (manual runs).
10823
10906
  */
10824
10907
  retentionCount: number().int().min(1).max(1e3).optional()
10825
- }).optional(), array(BackupEntrySchema).readonly(), {
10908
+ }).optional(), BackupTriggerResultSchema, {
10909
+ kind: "mutation",
10910
+ auth: "admin"
10911
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10826
10912
  kind: "mutation",
10827
10913
  auth: "admin"
10828
10914
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11539,6 +11625,14 @@ method(object({
11539
11625
  }), object({ success: literal(true) }), {
11540
11626
  kind: "mutation",
11541
11627
  auth: "admin"
11628
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11629
+ derivedStreamsDeleted: array(string()).readonly(),
11630
+ assignmentsPurged: boolean(),
11631
+ probeSnapshotsDropped: number().int().nonnegative(),
11632
+ rtspTokenRowsDeleted: number().int().nonnegative()
11633
+ }), {
11634
+ kind: "mutation",
11635
+ auth: "admin"
11542
11636
  }), method(object({
11543
11637
  deviceId: number(),
11544
11638
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -12795,7 +12889,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12795
12889
  id: string(),
12796
12890
  name: string(),
12797
12891
  type: string()
12798
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12892
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12893
+ kind: "mutation",
12894
+ timeoutMs: 3 * 6e4
12895
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12799
12896
  kind: "mutation",
12800
12897
  auth: "admin"
12801
12898
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -13076,7 +13173,8 @@ method(object({
13076
13173
  targetId: number()
13077
13174
  }), MigrateDeviceResultSchema, {
13078
13175
  kind: "mutation",
13079
- auth: "admin"
13176
+ auth: "admin",
13177
+ timeoutMs: 12 * 6e4
13080
13178
  }), 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({
13081
13179
  deviceId: number(),
13082
13180
  name: string()
@@ -29697,6 +29795,12 @@ Object.freeze({
29697
29795
  addonId: null,
29698
29796
  access: "create"
29699
29797
  },
29798
+ "backup.cancel": {
29799
+ capName: "backup",
29800
+ capScope: "system",
29801
+ addonId: null,
29802
+ access: "create"
29803
+ },
29700
29804
  "backup.delete": {
29701
29805
  capName: "backup",
29702
29806
  capScope: "system",
@@ -29739,6 +29843,12 @@ Object.freeze({
29739
29843
  addonId: null,
29740
29844
  access: "view"
29741
29845
  },
29846
+ "backup.listRuns": {
29847
+ capName: "backup",
29848
+ capScope: "system",
29849
+ addonId: null,
29850
+ access: "view"
29851
+ },
29742
29852
  "backup.listSchedules": {
29743
29853
  capName: "backup",
29744
29854
  capScope: "system",
@@ -30939,6 +31049,12 @@ Object.freeze({
30939
31049
  addonId: null,
30940
31050
  access: "view"
30941
31051
  },
31052
+ "deviceProvider.reloadDevice": {
31053
+ capName: "device-provider",
31054
+ capScope: "system",
31055
+ addonId: null,
31056
+ access: "create"
31057
+ },
30942
31058
  "deviceProvider.start": {
30943
31059
  capName: "device-provider",
30944
31060
  capScope: "system",
@@ -34305,6 +34421,12 @@ Object.freeze({
34305
34421
  addonId: null,
34306
34422
  access: "create"
34307
34423
  },
34424
+ "streamBroker.forgetDeviceHardware": {
34425
+ capName: "stream-broker",
34426
+ capScope: "system",
34427
+ addonId: null,
34428
+ access: "delete"
34429
+ },
34308
34430
  "streamBroker.getAllRtspEntries": {
34309
34431
  capName: "stream-broker",
34310
34432
  capScope: "system",
@@ -36763,6 +36885,11 @@ Object.freeze({
36763
36885
  form: "single",
36764
36886
  optional: false
36765
36887
  }],
36888
+ "streamBroker.forgetDeviceHardware": [{
36889
+ name: "deviceId",
36890
+ form: "single",
36891
+ optional: false
36892
+ }],
36766
36893
  "streamBroker.getDeviceAudioMute": [{
36767
36894
  name: "deviceId",
36768
36895
  form: "single",
@@ -10748,6 +10748,89 @@ var LocationStatSchema = object({
10748
10748
  fileCount: number(),
10749
10749
  present: boolean()
10750
10750
  });
10751
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10752
+ var BackupRunStateSchema = _enum([
10753
+ "queued",
10754
+ "running",
10755
+ "succeeded",
10756
+ "failed",
10757
+ "cancelled"
10758
+ ]);
10759
+ /**
10760
+ * Where a running backup currently is. `queued` before it starts,
10761
+ * `building` while the tar.gz is being staged, `uploading` during the
10762
+ * per-destination fan-out, `done` once terminal.
10763
+ */
10764
+ var BackupRunPhaseSchema = _enum([
10765
+ "queued",
10766
+ "building",
10767
+ "uploading",
10768
+ "done"
10769
+ ]);
10770
+ /**
10771
+ * Observable state of one backup run — readable WHILE it runs via
10772
+ * `backup.listRuns`. This is what makes the execution queue and
10773
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10774
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10775
+ * diagnosable with `du` because nothing reported that runs existed or
10776
+ * how large the staged archive had grown.
10777
+ */
10778
+ var BackupRunSchema = object({
10779
+ /** Stable run id — the handle `backup.cancel` takes. */
10780
+ id: string(),
10781
+ state: BackupRunStateSchema,
10782
+ phase: BackupRunPhaseSchema,
10783
+ /**
10784
+ * Resolved destination location ids. Empty while queued (targets are
10785
+ * resolved when the run starts, against the then-current policies).
10786
+ */
10787
+ destinationIds: array(string()).readonly(),
10788
+ label: string().optional(),
10789
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10790
+ requestedAt: number(),
10791
+ /** ms-epoch when the run left the queue and started building. */
10792
+ startedAt: number().optional(),
10793
+ /** ms-epoch when the run reached a terminal state. */
10794
+ finishedAt: number().optional(),
10795
+ /** Compressed bytes of the staging archive written so far. */
10796
+ stagedBytes: number(),
10797
+ /** Final staged archive size, once the build phase completes. */
10798
+ archiveSizeBytes: number().optional(),
10799
+ /** Bytes pushed to the destination currently uploading. */
10800
+ uploadedBytes: number(),
10801
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10802
+ completedDestinationIds: array(string()).readonly(),
10803
+ /** Destinations that failed during the fan-out. */
10804
+ failedDestinationIds: array(string()).readonly(),
10805
+ /** Failure message when `state === 'failed'`. */
10806
+ error: string().optional(),
10807
+ /**
10808
+ * 1-based place in the execution queue — 1 = runs next. Present only
10809
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10810
+ * queue's OWN pending order, never derived from timestamps, so the
10811
+ * UI cannot show an order the executor will not honour.
10812
+ */
10813
+ queuePosition: number().int().min(1).optional()
10814
+ });
10815
+ /**
10816
+ * Result of `backup.trigger`. The call still resolves when the run
10817
+ * terminates (compat with schedule-driven runs and the admin UI), but
10818
+ * it now names the run and says whether it had to WAIT: a trigger that
10819
+ * arrives while another run is in flight is enqueued (or joined onto
10820
+ * an identical already-queued run), never started concurrently.
10821
+ */
10822
+ var BackupTriggerResultSchema = object({
10823
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10824
+ runId: string(),
10825
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10826
+ queued: boolean(),
10827
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10828
+ joined: boolean(),
10829
+ /** True when the run was cancelled before completing every destination. */
10830
+ cancelled: boolean(),
10831
+ /** One entry per destination the archive landed at (partial on cancel). */
10832
+ entries: array(BackupEntrySchema).readonly()
10833
+ });
10751
10834
  /**
10752
10835
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10753
10836
  * SET of destination locations. Supersedes the per-location cron on
@@ -10795,7 +10878,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10795
10878
  * retention (manual runs).
10796
10879
  */
10797
10880
  retentionCount: number().int().min(1).max(1e3).optional()
10798
- }).optional(), array(BackupEntrySchema).readonly(), {
10881
+ }).optional(), BackupTriggerResultSchema, {
10882
+ kind: "mutation",
10883
+ auth: "admin"
10884
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10799
10885
  kind: "mutation",
10800
10886
  auth: "admin"
10801
10887
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11512,6 +11598,14 @@ method(object({
11512
11598
  }), object({ success: literal(true) }), {
11513
11599
  kind: "mutation",
11514
11600
  auth: "admin"
11601
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11602
+ derivedStreamsDeleted: array(string()).readonly(),
11603
+ assignmentsPurged: boolean(),
11604
+ probeSnapshotsDropped: number().int().nonnegative(),
11605
+ rtspTokenRowsDeleted: number().int().nonnegative()
11606
+ }), {
11607
+ kind: "mutation",
11608
+ auth: "admin"
11515
11609
  }), method(object({
11516
11610
  deviceId: number(),
11517
11611
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -12768,7 +12862,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12768
12862
  id: string(),
12769
12863
  name: string(),
12770
12864
  type: string()
12771
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12865
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12866
+ kind: "mutation",
12867
+ timeoutMs: 3 * 6e4
12868
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12772
12869
  kind: "mutation",
12773
12870
  auth: "admin"
12774
12871
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -13049,7 +13146,8 @@ method(object({
13049
13146
  targetId: number()
13050
13147
  }), MigrateDeviceResultSchema, {
13051
13148
  kind: "mutation",
13052
- auth: "admin"
13149
+ auth: "admin",
13150
+ timeoutMs: 12 * 6e4
13053
13151
  }), 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({
13054
13152
  deviceId: number(),
13055
13153
  name: string()
@@ -29670,6 +29768,12 @@ Object.freeze({
29670
29768
  addonId: null,
29671
29769
  access: "create"
29672
29770
  },
29771
+ "backup.cancel": {
29772
+ capName: "backup",
29773
+ capScope: "system",
29774
+ addonId: null,
29775
+ access: "create"
29776
+ },
29673
29777
  "backup.delete": {
29674
29778
  capName: "backup",
29675
29779
  capScope: "system",
@@ -29712,6 +29816,12 @@ Object.freeze({
29712
29816
  addonId: null,
29713
29817
  access: "view"
29714
29818
  },
29819
+ "backup.listRuns": {
29820
+ capName: "backup",
29821
+ capScope: "system",
29822
+ addonId: null,
29823
+ access: "view"
29824
+ },
29715
29825
  "backup.listSchedules": {
29716
29826
  capName: "backup",
29717
29827
  capScope: "system",
@@ -30912,6 +31022,12 @@ Object.freeze({
30912
31022
  addonId: null,
30913
31023
  access: "view"
30914
31024
  },
31025
+ "deviceProvider.reloadDevice": {
31026
+ capName: "device-provider",
31027
+ capScope: "system",
31028
+ addonId: null,
31029
+ access: "create"
31030
+ },
30915
31031
  "deviceProvider.start": {
30916
31032
  capName: "device-provider",
30917
31033
  capScope: "system",
@@ -34278,6 +34394,12 @@ Object.freeze({
34278
34394
  addonId: null,
34279
34395
  access: "create"
34280
34396
  },
34397
+ "streamBroker.forgetDeviceHardware": {
34398
+ capName: "stream-broker",
34399
+ capScope: "system",
34400
+ addonId: null,
34401
+ access: "delete"
34402
+ },
34281
34403
  "streamBroker.getAllRtspEntries": {
34282
34404
  capName: "stream-broker",
34283
34405
  capScope: "system",
@@ -36736,6 +36858,11 @@ Object.freeze({
36736
36858
  form: "single",
36737
36859
  optional: false
36738
36860
  }],
36861
+ "streamBroker.forgetDeviceHardware": [{
36862
+ name: "deviceId",
36863
+ form: "single",
36864
+ optional: false
36865
+ }],
36739
36866
  "streamBroker.getDeviceAudioMute": [{
36740
36867
  name: "deviceId",
36741
36868
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.64",
3
+ "version": "1.2.66",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",