@camstack/addon-mqtt-broker 1.2.11 → 1.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.
@@ -18348,6 +18348,22 @@ var TerminalProfileInfoSchema = object({
18348
18348
  label: string(),
18349
18349
  description: string().optional()
18350
18350
  });
18351
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18352
+ seq: number().int().positive(),
18353
+ kind: literal("data"),
18354
+ data: string()
18355
+ }), object({
18356
+ seq: number().int().positive(),
18357
+ kind: literal("exit"),
18358
+ exitCode: number().int(),
18359
+ signal: number().int().optional()
18360
+ })]);
18361
+ var TerminalOutputBatchSchema = object({
18362
+ cursor: number().int().nonnegative(),
18363
+ reset: boolean(),
18364
+ snapshot: string().optional(),
18365
+ events: array(TerminalOutputEventSchema).readonly()
18366
+ });
18351
18367
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18352
18368
  profileId: string(),
18353
18369
  cols: number().int().positive(),
@@ -18362,6 +18378,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18362
18378
  }), _void(), {
18363
18379
  kind: "mutation",
18364
18380
  auth: "admin"
18381
+ }), method(object({
18382
+ sessionId: string(),
18383
+ afterSeq: number().int().nonnegative(),
18384
+ waitMs: number().int().min(0).max(2e3).default(0)
18385
+ }), TerminalOutputBatchSchema, {
18386
+ kind: "mutation",
18387
+ auth: "admin",
18388
+ timeoutMs: 15e3
18389
+ }), method(object({
18390
+ sessionId: string(),
18391
+ data: string().max(64 * 1024)
18392
+ }), _void(), {
18393
+ kind: "mutation",
18394
+ auth: "admin"
18365
18395
  }), method(object({ sessionId: string() }), _void(), {
18366
18396
  kind: "mutation",
18367
18397
  auth: "admin"
@@ -29243,12 +29273,24 @@ Object.freeze({
29243
29273
  addonId: null,
29244
29274
  access: "create"
29245
29275
  },
29276
+ "terminalSession.pullOutput": {
29277
+ capName: "terminal-session",
29278
+ capScope: "system",
29279
+ addonId: null,
29280
+ access: "create"
29281
+ },
29246
29282
  "terminalSession.resize": {
29247
29283
  capName: "terminal-session",
29248
29284
  capScope: "system",
29249
29285
  addonId: null,
29250
29286
  access: "create"
29251
29287
  },
29288
+ "terminalSession.writeInput": {
29289
+ capName: "terminal-session",
29290
+ capScope: "system",
29291
+ addonId: null,
29292
+ access: "create"
29293
+ },
29252
29294
  "toast.onToast": {
29253
29295
  capName: "toast",
29254
29296
  capScope: "system",
@@ -18343,6 +18343,22 @@ var TerminalProfileInfoSchema = object({
18343
18343
  label: string(),
18344
18344
  description: string().optional()
18345
18345
  });
18346
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18347
+ seq: number().int().positive(),
18348
+ kind: literal("data"),
18349
+ data: string()
18350
+ }), object({
18351
+ seq: number().int().positive(),
18352
+ kind: literal("exit"),
18353
+ exitCode: number().int(),
18354
+ signal: number().int().optional()
18355
+ })]);
18356
+ var TerminalOutputBatchSchema = object({
18357
+ cursor: number().int().nonnegative(),
18358
+ reset: boolean(),
18359
+ snapshot: string().optional(),
18360
+ events: array(TerminalOutputEventSchema).readonly()
18361
+ });
18346
18362
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18347
18363
  profileId: string(),
18348
18364
  cols: number().int().positive(),
@@ -18357,6 +18373,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18357
18373
  }), _void(), {
18358
18374
  kind: "mutation",
18359
18375
  auth: "admin"
18376
+ }), method(object({
18377
+ sessionId: string(),
18378
+ afterSeq: number().int().nonnegative(),
18379
+ waitMs: number().int().min(0).max(2e3).default(0)
18380
+ }), TerminalOutputBatchSchema, {
18381
+ kind: "mutation",
18382
+ auth: "admin",
18383
+ timeoutMs: 15e3
18384
+ }), method(object({
18385
+ sessionId: string(),
18386
+ data: string().max(64 * 1024)
18387
+ }), _void(), {
18388
+ kind: "mutation",
18389
+ auth: "admin"
18360
18390
  }), method(object({ sessionId: string() }), _void(), {
18361
18391
  kind: "mutation",
18362
18392
  auth: "admin"
@@ -29238,12 +29268,24 @@ Object.freeze({
29238
29268
  addonId: null,
29239
29269
  access: "create"
29240
29270
  },
29271
+ "terminalSession.pullOutput": {
29272
+ capName: "terminal-session",
29273
+ capScope: "system",
29274
+ addonId: null,
29275
+ access: "create"
29276
+ },
29241
29277
  "terminalSession.resize": {
29242
29278
  capName: "terminal-session",
29243
29279
  capScope: "system",
29244
29280
  addonId: null,
29245
29281
  access: "create"
29246
29282
  },
29283
+ "terminalSession.writeInput": {
29284
+ capName: "terminal-session",
29285
+ capScope: "system",
29286
+ addonId: null,
29287
+ access: "create"
29288
+ },
29247
29289
  "toast.onToast": {
29248
29290
  capName: "toast",
29249
29291
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",