@camstack/addon-provider-petkit 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
@@ -19695,6 +19695,22 @@ var TerminalProfileInfoSchema = object({
19695
19695
  label: string(),
19696
19696
  description: string().optional()
19697
19697
  });
19698
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
19699
+ seq: number().int().positive(),
19700
+ kind: literal("data"),
19701
+ data: string()
19702
+ }), object({
19703
+ seq: number().int().positive(),
19704
+ kind: literal("exit"),
19705
+ exitCode: number().int(),
19706
+ signal: number().int().optional()
19707
+ })]);
19708
+ var TerminalOutputBatchSchema = object({
19709
+ cursor: number().int().nonnegative(),
19710
+ reset: boolean(),
19711
+ snapshot: string().optional(),
19712
+ events: array(TerminalOutputEventSchema).readonly()
19713
+ });
19698
19714
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
19699
19715
  profileId: string(),
19700
19716
  cols: number().int().positive(),
@@ -19709,6 +19725,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
19709
19725
  }), _void(), {
19710
19726
  kind: "mutation",
19711
19727
  auth: "admin"
19728
+ }), method(object({
19729
+ sessionId: string(),
19730
+ afterSeq: number().int().nonnegative(),
19731
+ waitMs: number().int().min(0).max(2e3).default(0)
19732
+ }), TerminalOutputBatchSchema, {
19733
+ kind: "mutation",
19734
+ auth: "admin",
19735
+ timeoutMs: 15e3
19736
+ }), method(object({
19737
+ sessionId: string(),
19738
+ data: string().max(64 * 1024)
19739
+ }), _void(), {
19740
+ kind: "mutation",
19741
+ auth: "admin"
19712
19742
  }), method(object({ sessionId: string() }), _void(), {
19713
19743
  kind: "mutation",
19714
19744
  auth: "admin"
@@ -33315,12 +33345,24 @@ Object.freeze({
33315
33345
  addonId: null,
33316
33346
  access: "create"
33317
33347
  },
33348
+ "terminalSession.pullOutput": {
33349
+ capName: "terminal-session",
33350
+ capScope: "system",
33351
+ addonId: null,
33352
+ access: "create"
33353
+ },
33318
33354
  "terminalSession.resize": {
33319
33355
  capName: "terminal-session",
33320
33356
  capScope: "system",
33321
33357
  addonId: null,
33322
33358
  access: "create"
33323
33359
  },
33360
+ "terminalSession.writeInput": {
33361
+ capName: "terminal-session",
33362
+ capScope: "system",
33363
+ addonId: null,
33364
+ access: "create"
33365
+ },
33324
33366
  "toast.onToast": {
33325
33367
  capName: "toast",
33326
33368
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -19694,6 +19694,22 @@ var TerminalProfileInfoSchema = object({
19694
19694
  label: string(),
19695
19695
  description: string().optional()
19696
19696
  });
19697
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
19698
+ seq: number().int().positive(),
19699
+ kind: literal("data"),
19700
+ data: string()
19701
+ }), object({
19702
+ seq: number().int().positive(),
19703
+ kind: literal("exit"),
19704
+ exitCode: number().int(),
19705
+ signal: number().int().optional()
19706
+ })]);
19707
+ var TerminalOutputBatchSchema = object({
19708
+ cursor: number().int().nonnegative(),
19709
+ reset: boolean(),
19710
+ snapshot: string().optional(),
19711
+ events: array(TerminalOutputEventSchema).readonly()
19712
+ });
19697
19713
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
19698
19714
  profileId: string(),
19699
19715
  cols: number().int().positive(),
@@ -19708,6 +19724,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
19708
19724
  }), _void(), {
19709
19725
  kind: "mutation",
19710
19726
  auth: "admin"
19727
+ }), method(object({
19728
+ sessionId: string(),
19729
+ afterSeq: number().int().nonnegative(),
19730
+ waitMs: number().int().min(0).max(2e3).default(0)
19731
+ }), TerminalOutputBatchSchema, {
19732
+ kind: "mutation",
19733
+ auth: "admin",
19734
+ timeoutMs: 15e3
19735
+ }), method(object({
19736
+ sessionId: string(),
19737
+ data: string().max(64 * 1024)
19738
+ }), _void(), {
19739
+ kind: "mutation",
19740
+ auth: "admin"
19711
19741
  }), method(object({ sessionId: string() }), _void(), {
19712
19742
  kind: "mutation",
19713
19743
  auth: "admin"
@@ -33314,12 +33344,24 @@ Object.freeze({
33314
33344
  addonId: null,
33315
33345
  access: "create"
33316
33346
  },
33347
+ "terminalSession.pullOutput": {
33348
+ capName: "terminal-session",
33349
+ capScope: "system",
33350
+ addonId: null,
33351
+ access: "create"
33352
+ },
33317
33353
  "terminalSession.resize": {
33318
33354
  capName: "terminal-session",
33319
33355
  capScope: "system",
33320
33356
  addonId: null,
33321
33357
  access: "create"
33322
33358
  },
33359
+ "terminalSession.writeInput": {
33360
+ capName: "terminal-session",
33361
+ capScope: "system",
33362
+ addonId: null,
33363
+ access: "create"
33364
+ },
33323
33365
  "toast.onToast": {
33324
33366
  capName: "toast",
33325
33367
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",