@camstack/addon-provider-tuya 0.2.11 → 0.2.12

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
@@ -19413,6 +19413,22 @@ var TerminalProfileInfoSchema = object({
19413
19413
  label: string(),
19414
19414
  description: string().optional()
19415
19415
  });
19416
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
19417
+ seq: number().int().positive(),
19418
+ kind: literal("data"),
19419
+ data: string()
19420
+ }), object({
19421
+ seq: number().int().positive(),
19422
+ kind: literal("exit"),
19423
+ exitCode: number().int(),
19424
+ signal: number().int().optional()
19425
+ })]);
19426
+ var TerminalOutputBatchSchema = object({
19427
+ cursor: number().int().nonnegative(),
19428
+ reset: boolean(),
19429
+ snapshot: string().optional(),
19430
+ events: array(TerminalOutputEventSchema).readonly()
19431
+ });
19416
19432
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
19417
19433
  profileId: string(),
19418
19434
  cols: number().int().positive(),
@@ -19427,6 +19443,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
19427
19443
  }), _void(), {
19428
19444
  kind: "mutation",
19429
19445
  auth: "admin"
19446
+ }), method(object({
19447
+ sessionId: string(),
19448
+ afterSeq: number().int().nonnegative(),
19449
+ waitMs: number().int().min(0).max(2e3).default(0)
19450
+ }), TerminalOutputBatchSchema, {
19451
+ kind: "mutation",
19452
+ auth: "admin",
19453
+ timeoutMs: 15e3
19454
+ }), method(object({
19455
+ sessionId: string(),
19456
+ data: string().max(64 * 1024)
19457
+ }), _void(), {
19458
+ kind: "mutation",
19459
+ auth: "admin"
19430
19460
  }), method(object({ sessionId: string() }), _void(), {
19431
19461
  kind: "mutation",
19432
19462
  auth: "admin"
@@ -33033,12 +33063,24 @@ Object.freeze({
33033
33063
  addonId: null,
33034
33064
  access: "create"
33035
33065
  },
33066
+ "terminalSession.pullOutput": {
33067
+ capName: "terminal-session",
33068
+ capScope: "system",
33069
+ addonId: null,
33070
+ access: "create"
33071
+ },
33036
33072
  "terminalSession.resize": {
33037
33073
  capName: "terminal-session",
33038
33074
  capScope: "system",
33039
33075
  addonId: null,
33040
33076
  access: "create"
33041
33077
  },
33078
+ "terminalSession.writeInput": {
33079
+ capName: "terminal-session",
33080
+ capScope: "system",
33081
+ addonId: null,
33082
+ access: "create"
33083
+ },
33042
33084
  "toast.onToast": {
33043
33085
  capName: "toast",
33044
33086
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -19412,6 +19412,22 @@ var TerminalProfileInfoSchema = object({
19412
19412
  label: string(),
19413
19413
  description: string().optional()
19414
19414
  });
19415
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
19416
+ seq: number().int().positive(),
19417
+ kind: literal("data"),
19418
+ data: string()
19419
+ }), object({
19420
+ seq: number().int().positive(),
19421
+ kind: literal("exit"),
19422
+ exitCode: number().int(),
19423
+ signal: number().int().optional()
19424
+ })]);
19425
+ var TerminalOutputBatchSchema = object({
19426
+ cursor: number().int().nonnegative(),
19427
+ reset: boolean(),
19428
+ snapshot: string().optional(),
19429
+ events: array(TerminalOutputEventSchema).readonly()
19430
+ });
19415
19431
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
19416
19432
  profileId: string(),
19417
19433
  cols: number().int().positive(),
@@ -19426,6 +19442,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
19426
19442
  }), _void(), {
19427
19443
  kind: "mutation",
19428
19444
  auth: "admin"
19445
+ }), method(object({
19446
+ sessionId: string(),
19447
+ afterSeq: number().int().nonnegative(),
19448
+ waitMs: number().int().min(0).max(2e3).default(0)
19449
+ }), TerminalOutputBatchSchema, {
19450
+ kind: "mutation",
19451
+ auth: "admin",
19452
+ timeoutMs: 15e3
19453
+ }), method(object({
19454
+ sessionId: string(),
19455
+ data: string().max(64 * 1024)
19456
+ }), _void(), {
19457
+ kind: "mutation",
19458
+ auth: "admin"
19429
19459
  }), method(object({ sessionId: string() }), _void(), {
19430
19460
  kind: "mutation",
19431
19461
  auth: "admin"
@@ -33032,12 +33062,24 @@ Object.freeze({
33032
33062
  addonId: null,
33033
33063
  access: "create"
33034
33064
  },
33065
+ "terminalSession.pullOutput": {
33066
+ capName: "terminal-session",
33067
+ capScope: "system",
33068
+ addonId: null,
33069
+ access: "create"
33070
+ },
33035
33071
  "terminalSession.resize": {
33036
33072
  capName: "terminal-session",
33037
33073
  capScope: "system",
33038
33074
  addonId: null,
33039
33075
  access: "create"
33040
33076
  },
33077
+ "terminalSession.writeInput": {
33078
+ capName: "terminal-session",
33079
+ capScope: "system",
33080
+ addonId: null,
33081
+ access: "create"
33082
+ },
33041
33083
  "toast.onToast": {
33042
33084
  capName: "toast",
33043
33085
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",