@camstack/addon-remote-storage 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.
package/dist/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-EioeELYE.js");
5
+ const require_shared = require("./shared-BwQMDLbh.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-CkUj94Yk.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-Dm3P5Qop.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-EioeELYE.js");
5
+ const require_shared = require("./shared-BwQMDLbh.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CkUj94Yk.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Dm3P5Qop.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -18304,6 +18304,22 @@ var TerminalProfileInfoSchema = object({
18304
18304
  label: string(),
18305
18305
  description: string().optional()
18306
18306
  });
18307
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18308
+ seq: number().int().positive(),
18309
+ kind: literal("data"),
18310
+ data: string()
18311
+ }), object({
18312
+ seq: number().int().positive(),
18313
+ kind: literal("exit"),
18314
+ exitCode: number().int(),
18315
+ signal: number().int().optional()
18316
+ })]);
18317
+ var TerminalOutputBatchSchema = object({
18318
+ cursor: number().int().nonnegative(),
18319
+ reset: boolean(),
18320
+ snapshot: string().optional(),
18321
+ events: array(TerminalOutputEventSchema).readonly()
18322
+ });
18307
18323
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18308
18324
  profileId: string(),
18309
18325
  cols: number().int().positive(),
@@ -18318,6 +18334,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18318
18334
  }), _void(), {
18319
18335
  kind: "mutation",
18320
18336
  auth: "admin"
18337
+ }), method(object({
18338
+ sessionId: string(),
18339
+ afterSeq: number().int().nonnegative(),
18340
+ waitMs: number().int().min(0).max(2e3).default(0)
18341
+ }), TerminalOutputBatchSchema, {
18342
+ kind: "mutation",
18343
+ auth: "admin",
18344
+ timeoutMs: 15e3
18345
+ }), method(object({
18346
+ sessionId: string(),
18347
+ data: string().max(64 * 1024)
18348
+ }), _void(), {
18349
+ kind: "mutation",
18350
+ auth: "admin"
18321
18351
  }), method(object({ sessionId: string() }), _void(), {
18322
18352
  kind: "mutation",
18323
18353
  auth: "admin"
@@ -29199,12 +29229,24 @@ Object.freeze({
29199
29229
  addonId: null,
29200
29230
  access: "create"
29201
29231
  },
29232
+ "terminalSession.pullOutput": {
29233
+ capName: "terminal-session",
29234
+ capScope: "system",
29235
+ addonId: null,
29236
+ access: "create"
29237
+ },
29202
29238
  "terminalSession.resize": {
29203
29239
  capName: "terminal-session",
29204
29240
  capScope: "system",
29205
29241
  addonId: null,
29206
29242
  access: "create"
29207
29243
  },
29244
+ "terminalSession.writeInput": {
29245
+ capName: "terminal-session",
29246
+ capScope: "system",
29247
+ addonId: null,
29248
+ access: "create"
29249
+ },
29208
29250
  "toast.onToast": {
29209
29251
  capName: "toast",
29210
29252
  capScope: "system",
@@ -18281,6 +18281,22 @@ var TerminalProfileInfoSchema = object({
18281
18281
  label: string(),
18282
18282
  description: string().optional()
18283
18283
  });
18284
+ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
18285
+ seq: number().int().positive(),
18286
+ kind: literal("data"),
18287
+ data: string()
18288
+ }), object({
18289
+ seq: number().int().positive(),
18290
+ kind: literal("exit"),
18291
+ exitCode: number().int(),
18292
+ signal: number().int().optional()
18293
+ })]);
18294
+ var TerminalOutputBatchSchema = object({
18295
+ cursor: number().int().nonnegative(),
18296
+ reset: boolean(),
18297
+ snapshot: string().optional(),
18298
+ events: array(TerminalOutputEventSchema).readonly()
18299
+ });
18284
18300
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
18285
18301
  profileId: string(),
18286
18302
  cols: number().int().positive(),
@@ -18295,6 +18311,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
18295
18311
  }), _void(), {
18296
18312
  kind: "mutation",
18297
18313
  auth: "admin"
18314
+ }), method(object({
18315
+ sessionId: string(),
18316
+ afterSeq: number().int().nonnegative(),
18317
+ waitMs: number().int().min(0).max(2e3).default(0)
18318
+ }), TerminalOutputBatchSchema, {
18319
+ kind: "mutation",
18320
+ auth: "admin",
18321
+ timeoutMs: 15e3
18322
+ }), method(object({
18323
+ sessionId: string(),
18324
+ data: string().max(64 * 1024)
18325
+ }), _void(), {
18326
+ kind: "mutation",
18327
+ auth: "admin"
18298
18328
  }), method(object({ sessionId: string() }), _void(), {
18299
18329
  kind: "mutation",
18300
18330
  auth: "admin"
@@ -29176,12 +29206,24 @@ Object.freeze({
29176
29206
  addonId: null,
29177
29207
  access: "create"
29178
29208
  },
29209
+ "terminalSession.pullOutput": {
29210
+ capName: "terminal-session",
29211
+ capScope: "system",
29212
+ addonId: null,
29213
+ access: "create"
29214
+ },
29179
29215
  "terminalSession.resize": {
29180
29216
  capName: "terminal-session",
29181
29217
  capScope: "system",
29182
29218
  addonId: null,
29183
29219
  access: "create"
29184
29220
  },
29221
+ "terminalSession.writeInput": {
29222
+ capName: "terminal-session",
29223
+ capScope: "system",
29224
+ addonId: null,
29225
+ access: "create"
29226
+ },
29185
29227
  "toast.onToast": {
29186
29228
  capName: "toast",
29187
29229
  capScope: "system",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-EioeELYE.js");
5
+ const require_shared = require("./shared-BwQMDLbh.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CkUj94Yk.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Dm3P5Qop.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",