@camstack/addon-provider-amcrest 0.2.12 → 0.2.13

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
@@ -18646,6 +18646,22 @@ var TerminalProfileInfoSchema = object({
18646
18646
  label: string(),
18647
18647
  description: string().optional()
18648
18648
  });
18649
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18650
+ seq: number().int().positive(),
18651
+ kind: literal("data"),
18652
+ data: string()
18653
+ }), object({
18654
+ seq: number().int().positive(),
18655
+ kind: literal("exit"),
18656
+ exitCode: number().int(),
18657
+ signal: number().int().optional()
18658
+ })]);
18659
+ var TerminalOutputBatchSchema = object({
18660
+ cursor: number().int().nonnegative(),
18661
+ reset: boolean(),
18662
+ snapshot: string().optional(),
18663
+ events: array(TerminalOutputEventSchema).readonly()
18664
+ });
18649
18665
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18650
18666
  profileId: string(),
18651
18667
  cols: number().int().positive(),
@@ -18660,6 +18676,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18660
18676
  }), _void(), {
18661
18677
  kind: "mutation",
18662
18678
  auth: "admin"
18679
+ }), method(object({
18680
+ sessionId: string(),
18681
+ afterSeq: number().int().nonnegative(),
18682
+ waitMs: number().int().min(0).max(2e3).default(0)
18683
+ }), TerminalOutputBatchSchema, {
18684
+ kind: "mutation",
18685
+ auth: "admin",
18686
+ timeoutMs: 15e3
18687
+ }), method(object({
18688
+ sessionId: string(),
18689
+ data: string().max(64 * 1024)
18690
+ }), _void(), {
18691
+ kind: "mutation",
18692
+ auth: "admin"
18663
18693
  }), method(object({ sessionId: string() }), _void(), {
18664
18694
  kind: "mutation",
18665
18695
  auth: "admin"
@@ -32688,12 +32718,24 @@ Object.freeze({
32688
32718
  addonId: null,
32689
32719
  access: "create"
32690
32720
  },
32721
+ "terminalSession.pullOutput": {
32722
+ capName: "terminal-session",
32723
+ capScope: "system",
32724
+ addonId: null,
32725
+ access: "create"
32726
+ },
32691
32727
  "terminalSession.resize": {
32692
32728
  capName: "terminal-session",
32693
32729
  capScope: "system",
32694
32730
  addonId: null,
32695
32731
  access: "create"
32696
32732
  },
32733
+ "terminalSession.writeInput": {
32734
+ capName: "terminal-session",
32735
+ capScope: "system",
32736
+ addonId: null,
32737
+ access: "create"
32738
+ },
32697
32739
  "toast.onToast": {
32698
32740
  capName: "toast",
32699
32741
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18647,6 +18647,22 @@ var TerminalProfileInfoSchema = object({
18647
18647
  label: string(),
18648
18648
  description: string().optional()
18649
18649
  });
18650
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18651
+ seq: number().int().positive(),
18652
+ kind: literal("data"),
18653
+ data: string()
18654
+ }), object({
18655
+ seq: number().int().positive(),
18656
+ kind: literal("exit"),
18657
+ exitCode: number().int(),
18658
+ signal: number().int().optional()
18659
+ })]);
18660
+ var TerminalOutputBatchSchema = object({
18661
+ cursor: number().int().nonnegative(),
18662
+ reset: boolean(),
18663
+ snapshot: string().optional(),
18664
+ events: array(TerminalOutputEventSchema).readonly()
18665
+ });
18650
18666
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18651
18667
  profileId: string(),
18652
18668
  cols: number().int().positive(),
@@ -18661,6 +18677,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18661
18677
  }), _void(), {
18662
18678
  kind: "mutation",
18663
18679
  auth: "admin"
18680
+ }), method(object({
18681
+ sessionId: string(),
18682
+ afterSeq: number().int().nonnegative(),
18683
+ waitMs: number().int().min(0).max(2e3).default(0)
18684
+ }), TerminalOutputBatchSchema, {
18685
+ kind: "mutation",
18686
+ auth: "admin",
18687
+ timeoutMs: 15e3
18688
+ }), method(object({
18689
+ sessionId: string(),
18690
+ data: string().max(64 * 1024)
18691
+ }), _void(), {
18692
+ kind: "mutation",
18693
+ auth: "admin"
18664
18694
  }), method(object({ sessionId: string() }), _void(), {
18665
18695
  kind: "mutation",
18666
18696
  auth: "admin"
@@ -32689,12 +32719,24 @@ Object.freeze({
32689
32719
  addonId: null,
32690
32720
  access: "create"
32691
32721
  },
32722
+ "terminalSession.pullOutput": {
32723
+ capName: "terminal-session",
32724
+ capScope: "system",
32725
+ addonId: null,
32726
+ access: "create"
32727
+ },
32692
32728
  "terminalSession.resize": {
32693
32729
  capName: "terminal-session",
32694
32730
  capScope: "system",
32695
32731
  addonId: null,
32696
32732
  access: "create"
32697
32733
  },
32734
+ "terminalSession.writeInput": {
32735
+ capName: "terminal-session",
32736
+ capScope: "system",
32737
+ addonId: null,
32738
+ access: "create"
32739
+ },
32698
32740
  "toast.onToast": {
32699
32741
  capName: "toast",
32700
32742
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",