@camstack/addon-static-turn 1.2.10 → 1.2.11

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.
@@ -18235,6 +18235,22 @@ var TerminalProfileInfoSchema = object({
18235
18235
  label: string(),
18236
18236
  description: string().optional()
18237
18237
  });
18238
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18239
+ seq: number().int().positive(),
18240
+ kind: literal("data"),
18241
+ data: string()
18242
+ }), object({
18243
+ seq: number().int().positive(),
18244
+ kind: literal("exit"),
18245
+ exitCode: number().int(),
18246
+ signal: number().int().optional()
18247
+ })]);
18248
+ var TerminalOutputBatchSchema = object({
18249
+ cursor: number().int().nonnegative(),
18250
+ reset: boolean(),
18251
+ snapshot: string().optional(),
18252
+ events: array(TerminalOutputEventSchema).readonly()
18253
+ });
18238
18254
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18239
18255
  profileId: string(),
18240
18256
  cols: number().int().positive(),
@@ -18249,6 +18265,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18249
18265
  }), _void(), {
18250
18266
  kind: "mutation",
18251
18267
  auth: "admin"
18268
+ }), method(object({
18269
+ sessionId: string(),
18270
+ afterSeq: number().int().nonnegative(),
18271
+ waitMs: number().int().min(0).max(2e3).default(0)
18272
+ }), TerminalOutputBatchSchema, {
18273
+ kind: "mutation",
18274
+ auth: "admin",
18275
+ timeoutMs: 15e3
18276
+ }), method(object({
18277
+ sessionId: string(),
18278
+ data: string().max(64 * 1024)
18279
+ }), _void(), {
18280
+ kind: "mutation",
18281
+ auth: "admin"
18252
18282
  }), method(object({ sessionId: string() }), _void(), {
18253
18283
  kind: "mutation",
18254
18284
  auth: "admin"
@@ -29153,12 +29183,24 @@ Object.freeze({
29153
29183
  addonId: null,
29154
29184
  access: "create"
29155
29185
  },
29186
+ "terminalSession.pullOutput": {
29187
+ capName: "terminal-session",
29188
+ capScope: "system",
29189
+ addonId: null,
29190
+ access: "create"
29191
+ },
29156
29192
  "terminalSession.resize": {
29157
29193
  capName: "terminal-session",
29158
29194
  capScope: "system",
29159
29195
  addonId: null,
29160
29196
  access: "create"
29161
29197
  },
29198
+ "terminalSession.writeInput": {
29199
+ capName: "terminal-session",
29200
+ capScope: "system",
29201
+ addonId: null,
29202
+ access: "create"
29203
+ },
29162
29204
  "toast.onToast": {
29163
29205
  capName: "toast",
29164
29206
  capScope: "system",
@@ -18234,6 +18234,22 @@ var TerminalProfileInfoSchema = object({
18234
18234
  label: string(),
18235
18235
  description: string().optional()
18236
18236
  });
18237
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18238
+ seq: number().int().positive(),
18239
+ kind: literal("data"),
18240
+ data: string()
18241
+ }), object({
18242
+ seq: number().int().positive(),
18243
+ kind: literal("exit"),
18244
+ exitCode: number().int(),
18245
+ signal: number().int().optional()
18246
+ })]);
18247
+ var TerminalOutputBatchSchema = object({
18248
+ cursor: number().int().nonnegative(),
18249
+ reset: boolean(),
18250
+ snapshot: string().optional(),
18251
+ events: array(TerminalOutputEventSchema).readonly()
18252
+ });
18237
18253
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18238
18254
  profileId: string(),
18239
18255
  cols: number().int().positive(),
@@ -18248,6 +18264,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18248
18264
  }), _void(), {
18249
18265
  kind: "mutation",
18250
18266
  auth: "admin"
18267
+ }), method(object({
18268
+ sessionId: string(),
18269
+ afterSeq: number().int().nonnegative(),
18270
+ waitMs: number().int().min(0).max(2e3).default(0)
18271
+ }), TerminalOutputBatchSchema, {
18272
+ kind: "mutation",
18273
+ auth: "admin",
18274
+ timeoutMs: 15e3
18275
+ }), method(object({
18276
+ sessionId: string(),
18277
+ data: string().max(64 * 1024)
18278
+ }), _void(), {
18279
+ kind: "mutation",
18280
+ auth: "admin"
18251
18281
  }), method(object({ sessionId: string() }), _void(), {
18252
18282
  kind: "mutation",
18253
18283
  auth: "admin"
@@ -29152,12 +29182,24 @@ Object.freeze({
29152
29182
  addonId: null,
29153
29183
  access: "create"
29154
29184
  },
29185
+ "terminalSession.pullOutput": {
29186
+ capName: "terminal-session",
29187
+ capScope: "system",
29188
+ addonId: null,
29189
+ access: "create"
29190
+ },
29155
29191
  "terminalSession.resize": {
29156
29192
  capName: "terminal-session",
29157
29193
  capScope: "system",
29158
29194
  addonId: null,
29159
29195
  access: "create"
29160
29196
  },
29197
+ "terminalSession.writeInput": {
29198
+ capName: "terminal-session",
29199
+ capScope: "system",
29200
+ addonId: null,
29201
+ access: "create"
29202
+ },
29161
29203
  "toast.onToast": {
29162
29204
  capName: "toast",
29163
29205
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-static-turn",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "Static / self-hosted (coturn) TURN provider for CamStack",
5
5
  "keywords": [
6
6
  "camstack",