@haex-space/vault-sdk 2.6.4 → 2.6.7
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/{client-BW9GSwtY.d.ts → client-CScVlK1m.d.ts} +17 -2
- package/dist/{client-Cgt1hI4U.d.mts → client-DvH4bGGw.d.mts} +17 -2
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +9 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +9 -0
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +1 -1
- package/dist/runtime/nuxt.plugin.client.d.ts +1 -1
- package/dist/runtime/nuxt.plugin.client.js +9 -0
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +9 -0
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +9 -0
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +9 -0
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +9 -0
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +9 -0
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -939,7 +939,13 @@ declare class LocalSendAPI {
|
|
|
939
939
|
cancelSend(sessionId: string): Promise<void>;
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
|
|
942
|
+
declare const SpaceRoles: {
|
|
943
|
+
readonly OWNER: "owner";
|
|
944
|
+
readonly ADMIN: "admin";
|
|
945
|
+
readonly MEMBER: "member";
|
|
946
|
+
readonly READER: "reader";
|
|
947
|
+
};
|
|
948
|
+
type SpaceRole = (typeof SpaceRoles)[keyof typeof SpaceRoles];
|
|
943
949
|
interface SharedSpace {
|
|
944
950
|
id: string;
|
|
945
951
|
ownerId: string;
|
|
@@ -1119,9 +1125,18 @@ interface ShellExitEvent {
|
|
|
1119
1125
|
sessionId: string;
|
|
1120
1126
|
exitCode: number | null;
|
|
1121
1127
|
}
|
|
1128
|
+
interface ShellInfo {
|
|
1129
|
+
name: string;
|
|
1130
|
+
path: string;
|
|
1131
|
+
}
|
|
1122
1132
|
declare class ShellAPI {
|
|
1123
1133
|
private readonly sdk;
|
|
1124
1134
|
constructor(sdk: HaexVaultSdk);
|
|
1135
|
+
/**
|
|
1136
|
+
* List available shell environments on the host system.
|
|
1137
|
+
* No filesystem permission required.
|
|
1138
|
+
*/
|
|
1139
|
+
listAvailable(): Promise<ShellInfo[]>;
|
|
1125
1140
|
/**
|
|
1126
1141
|
* Create a new PTY shell session.
|
|
1127
1142
|
* Returns a session ID used for subsequent write/resize/close operations.
|
|
@@ -1239,4 +1254,4 @@ declare class HaexVaultSdk {
|
|
|
1239
1254
|
private log;
|
|
1240
1255
|
}
|
|
1241
1256
|
|
|
1242
|
-
export { type SpaceMemberInfo as $, type AuthorizedClient as A, type BlockedClient as B, type RequestedExtension as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type SelectFileOptions as G, HaexVaultSdk as H, type SelectFolderOptions as I, type ServerInfo as J, type ServerStatus as K, LOCALSEND_EVENTS as L, type SessionAuthorization as M, type SharedSpace as N, ShellAPI as O, type PendingAuthorization as P, type ShellCreateOptions as Q, RemoteStorageAPI as R, StorageAPI as S, type ShellCreateResponse as T, type UpdateBackendRequest as U, type ShellExitEvent as V, type ShellOutputEvent as W, type SpaceAccessTokenInfo as X, type SpaceAssignment as Y, type SpaceInvite as Z, type SpaceKeyGrantInfo as _, type SpaceRole as a,
|
|
1257
|
+
export { type SpaceMemberInfo as $, type AuthorizedClient as A, type BlockedClient as B, type RequestedExtension as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type SelectFileOptions as G, HaexVaultSdk as H, type SelectFolderOptions as I, type ServerInfo as J, type ServerStatus as K, LOCALSEND_EVENTS as L, type SessionAuthorization as M, type SharedSpace as N, ShellAPI as O, type PendingAuthorization as P, type ShellCreateOptions as Q, RemoteStorageAPI as R, StorageAPI as S, type ShellCreateResponse as T, type UpdateBackendRequest as U, type ShellExitEvent as V, type ShellOutputEvent as W, type SpaceAccessTokenInfo as X, type SpaceAssignment as Y, type SpaceInvite as Z, type SpaceKeyGrantInfo as _, type SpaceRole as a, SpaceRoles as a0, SpacesAPI as a1, type SyncBackendInfo as a2, type TransferDirection as a3, type TransferProgress as a4, type TransferState as a5, WebAPI as a6, canExternalClientSendRequests as a7, isExternalClientConnected as a8, type DecryptedSpace as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, LocalSendAPI as p, type LocalSendEvent as q, type FileInfo as r, type LocalSendSettings as s, type PendingTransfer as t, PermissionsAPI as u, type AddBackendRequest as v, type S3Config as w, type S3PublicConfig as x, type StorageBackendInfo as y, type StorageObjectInfo as z };
|
|
@@ -939,7 +939,13 @@ declare class LocalSendAPI {
|
|
|
939
939
|
cancelSend(sessionId: string): Promise<void>;
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
|
|
942
|
+
declare const SpaceRoles: {
|
|
943
|
+
readonly OWNER: "owner";
|
|
944
|
+
readonly ADMIN: "admin";
|
|
945
|
+
readonly MEMBER: "member";
|
|
946
|
+
readonly READER: "reader";
|
|
947
|
+
};
|
|
948
|
+
type SpaceRole = (typeof SpaceRoles)[keyof typeof SpaceRoles];
|
|
943
949
|
interface SharedSpace {
|
|
944
950
|
id: string;
|
|
945
951
|
ownerId: string;
|
|
@@ -1119,9 +1125,18 @@ interface ShellExitEvent {
|
|
|
1119
1125
|
sessionId: string;
|
|
1120
1126
|
exitCode: number | null;
|
|
1121
1127
|
}
|
|
1128
|
+
interface ShellInfo {
|
|
1129
|
+
name: string;
|
|
1130
|
+
path: string;
|
|
1131
|
+
}
|
|
1122
1132
|
declare class ShellAPI {
|
|
1123
1133
|
private readonly sdk;
|
|
1124
1134
|
constructor(sdk: HaexVaultSdk);
|
|
1135
|
+
/**
|
|
1136
|
+
* List available shell environments on the host system.
|
|
1137
|
+
* No filesystem permission required.
|
|
1138
|
+
*/
|
|
1139
|
+
listAvailable(): Promise<ShellInfo[]>;
|
|
1125
1140
|
/**
|
|
1126
1141
|
* Create a new PTY shell session.
|
|
1127
1142
|
* Returns a session ID used for subsequent write/resize/close operations.
|
|
@@ -1239,4 +1254,4 @@ declare class HaexVaultSdk {
|
|
|
1239
1254
|
private log;
|
|
1240
1255
|
}
|
|
1241
1256
|
|
|
1242
|
-
export { type SpaceMemberInfo as $, type AuthorizedClient as A, type BlockedClient as B, type RequestedExtension as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type SelectFileOptions as G, HaexVaultSdk as H, type SelectFolderOptions as I, type ServerInfo as J, type ServerStatus as K, LOCALSEND_EVENTS as L, type SessionAuthorization as M, type SharedSpace as N, ShellAPI as O, type PendingAuthorization as P, type ShellCreateOptions as Q, RemoteStorageAPI as R, StorageAPI as S, type ShellCreateResponse as T, type UpdateBackendRequest as U, type ShellExitEvent as V, type ShellOutputEvent as W, type SpaceAccessTokenInfo as X, type SpaceAssignment as Y, type SpaceInvite as Z, type SpaceKeyGrantInfo as _, type SpaceRole as a,
|
|
1257
|
+
export { type SpaceMemberInfo as $, type AuthorizedClient as A, type BlockedClient as B, type RequestedExtension as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type SelectFileOptions as G, HaexVaultSdk as H, type SelectFolderOptions as I, type ServerInfo as J, type ServerStatus as K, LOCALSEND_EVENTS as L, type SessionAuthorization as M, type SharedSpace as N, ShellAPI as O, type PendingAuthorization as P, type ShellCreateOptions as Q, RemoteStorageAPI as R, StorageAPI as S, type ShellCreateResponse as T, type UpdateBackendRequest as U, type ShellExitEvent as V, type ShellOutputEvent as W, type SpaceAccessTokenInfo as X, type SpaceAssignment as Y, type SpaceInvite as Z, type SpaceKeyGrantInfo as _, type SpaceRole as a, SpaceRoles as a0, SpacesAPI as a1, type SyncBackendInfo as a2, type TransferDirection as a3, type TransferProgress as a4, type TransferState as a5, WebAPI as a6, canExternalClientSendRequests as a7, isExternalClientConnected as a8, type DecryptedSpace as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, LocalSendAPI as p, type LocalSendEvent as q, type FileInfo as r, type LocalSendSettings as s, type PendingTransfer as t, PermissionsAPI as u, type AddBackendRequest as v, type S3Config as w, type S3PublicConfig as x, type StorageBackendInfo as y, type StorageObjectInfo as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SpaceRole, H as HaexVaultSdk } from './client-
|
|
2
|
-
export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, L as LOCALSEND_EVENTS, p as LocalSendAPI, q as LocalSendEvent, r as LocalSendFileInfo, s as LocalSendSettings, P as PendingAuthorization, t as PendingTransfer, u as PermissionsAPI, v as RemoteAddBackendRequest, w as RemoteS3Config, x as RemoteS3PublicConfig, R as RemoteStorageAPI, y as RemoteStorageBackendInfo, z as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, C as RequestedExtension, G as SelectFileOptions, I as SelectFolderOptions, J as ServerInfo, K as ServerStatus, M as SessionAuthorization, N as SharedSpace, O as ShellAPI, Q as ShellCreateOptions, T as ShellCreateResponse, V as ShellExitEvent, W as ShellOutputEvent, X as SpaceAccessTokenInfo, Y as SpaceAssignment, Z as SpaceInvite, _ as SpaceKeyGrantInfo, $ as SpaceMemberInfo, a0 as
|
|
1
|
+
import { a as SpaceRole, H as HaexVaultSdk } from './client-DvH4bGGw.mjs';
|
|
2
|
+
export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, L as LOCALSEND_EVENTS, p as LocalSendAPI, q as LocalSendEvent, r as LocalSendFileInfo, s as LocalSendSettings, P as PendingAuthorization, t as PendingTransfer, u as PermissionsAPI, v as RemoteAddBackendRequest, w as RemoteS3Config, x as RemoteS3PublicConfig, R as RemoteStorageAPI, y as RemoteStorageBackendInfo, z as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, C as RequestedExtension, G as SelectFileOptions, I as SelectFolderOptions, J as ServerInfo, K as ServerStatus, M as SessionAuthorization, N as SharedSpace, O as ShellAPI, Q as ShellCreateOptions, T as ShellCreateResponse, V as ShellExitEvent, W as ShellOutputEvent, X as SpaceAccessTokenInfo, Y as SpaceAssignment, Z as SpaceInvite, _ as SpaceKeyGrantInfo, $ as SpaceMemberInfo, a0 as SpaceRoles, a1 as SpacesAPI, a2 as SyncBackendInfo, a3 as TransferDirection, a4 as TransferProgress, a5 as TransferState, a6 as WebAPI, a7 as canExternalClientSendRequests, a8 as isExternalClientConnected } from './client-DvH4bGGw.mjs';
|
|
3
3
|
import { E as ExtensionManifest, h as SignedClaimPresentation, H as HaexHubConfig } from './types-B1O6KckK.mjs';
|
|
4
4
|
export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, a as ExtensionInfo, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, I as IdentityClaim, B as ManifestI18nEntry, G as PermissionDeniedError, J as PermissionErrorBase, K as PermissionErrorCode, L as PermissionPromptError, P as PermissionResponse, N as PermissionStatus, O as SHELL_EVENTS, Q as SearchQuery, R as SearchRequestEvent, S as SearchResult, T as ShellEvent, U as SyncTablesUpdatedEvent, V as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, X as getTableName, Y as isPermissionDeniedError, Z as isPermissionError, _ as isPermissionPromptError } from './types-B1O6KckK.mjs';
|
|
5
5
|
export { H as HaextensionConfig } from './config-D_HXjsEV.mjs';
|
|
@@ -537,6 +537,8 @@ type SpaceCommand = (typeof SPACE_COMMANDS)[keyof typeof SPACE_COMMANDS];
|
|
|
537
537
|
* Naming convention: `extension_shell_<action>`
|
|
538
538
|
*/
|
|
539
539
|
declare const SHELL_COMMANDS: {
|
|
540
|
+
/** List available shell environments (no permission required) */
|
|
541
|
+
readonly listAvailable: "extension_shell_list_available";
|
|
540
542
|
/** Create a new PTY shell session */
|
|
541
543
|
readonly create: "extension_shell_create";
|
|
542
544
|
/** Write data to a shell session's stdin */
|
|
@@ -674,6 +676,7 @@ declare const TAURI_COMMANDS: {
|
|
|
674
676
|
readonly listBackends: "extension_space_list_backends";
|
|
675
677
|
};
|
|
676
678
|
readonly shell: {
|
|
679
|
+
readonly listAvailable: "extension_shell_list_available";
|
|
677
680
|
readonly create: "extension_shell_create";
|
|
678
681
|
readonly write: "extension_shell_write";
|
|
679
682
|
readonly resize: "extension_shell_resize";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SpaceRole, H as HaexVaultSdk } from './client-
|
|
2
|
-
export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, L as LOCALSEND_EVENTS, p as LocalSendAPI, q as LocalSendEvent, r as LocalSendFileInfo, s as LocalSendSettings, P as PendingAuthorization, t as PendingTransfer, u as PermissionsAPI, v as RemoteAddBackendRequest, w as RemoteS3Config, x as RemoteS3PublicConfig, R as RemoteStorageAPI, y as RemoteStorageBackendInfo, z as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, C as RequestedExtension, G as SelectFileOptions, I as SelectFolderOptions, J as ServerInfo, K as ServerStatus, M as SessionAuthorization, N as SharedSpace, O as ShellAPI, Q as ShellCreateOptions, T as ShellCreateResponse, V as ShellExitEvent, W as ShellOutputEvent, X as SpaceAccessTokenInfo, Y as SpaceAssignment, Z as SpaceInvite, _ as SpaceKeyGrantInfo, $ as SpaceMemberInfo, a0 as
|
|
1
|
+
import { a as SpaceRole, H as HaexVaultSdk } from './client-CScVlK1m.js';
|
|
2
|
+
export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, L as LOCALSEND_EVENTS, p as LocalSendAPI, q as LocalSendEvent, r as LocalSendFileInfo, s as LocalSendSettings, P as PendingAuthorization, t as PendingTransfer, u as PermissionsAPI, v as RemoteAddBackendRequest, w as RemoteS3Config, x as RemoteS3PublicConfig, R as RemoteStorageAPI, y as RemoteStorageBackendInfo, z as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, C as RequestedExtension, G as SelectFileOptions, I as SelectFolderOptions, J as ServerInfo, K as ServerStatus, M as SessionAuthorization, N as SharedSpace, O as ShellAPI, Q as ShellCreateOptions, T as ShellCreateResponse, V as ShellExitEvent, W as ShellOutputEvent, X as SpaceAccessTokenInfo, Y as SpaceAssignment, Z as SpaceInvite, _ as SpaceKeyGrantInfo, $ as SpaceMemberInfo, a0 as SpaceRoles, a1 as SpacesAPI, a2 as SyncBackendInfo, a3 as TransferDirection, a4 as TransferProgress, a5 as TransferState, a6 as WebAPI, a7 as canExternalClientSendRequests, a8 as isExternalClientConnected } from './client-CScVlK1m.js';
|
|
3
3
|
import { E as ExtensionManifest, h as SignedClaimPresentation, H as HaexHubConfig } from './types-B1O6KckK.js';
|
|
4
4
|
export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, a as ExtensionInfo, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, I as IdentityClaim, B as ManifestI18nEntry, G as PermissionDeniedError, J as PermissionErrorBase, K as PermissionErrorCode, L as PermissionPromptError, P as PermissionResponse, N as PermissionStatus, O as SHELL_EVENTS, Q as SearchQuery, R as SearchRequestEvent, S as SearchResult, T as ShellEvent, U as SyncTablesUpdatedEvent, V as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, X as getTableName, Y as isPermissionDeniedError, Z as isPermissionError, _ as isPermissionPromptError } from './types-B1O6KckK.js';
|
|
5
5
|
export { H as HaextensionConfig } from './config-D_HXjsEV.js';
|
|
@@ -537,6 +537,8 @@ type SpaceCommand = (typeof SPACE_COMMANDS)[keyof typeof SPACE_COMMANDS];
|
|
|
537
537
|
* Naming convention: `extension_shell_<action>`
|
|
538
538
|
*/
|
|
539
539
|
declare const SHELL_COMMANDS: {
|
|
540
|
+
/** List available shell environments (no permission required) */
|
|
541
|
+
readonly listAvailable: "extension_shell_list_available";
|
|
540
542
|
/** Create a new PTY shell session */
|
|
541
543
|
readonly create: "extension_shell_create";
|
|
542
544
|
/** Write data to a shell session's stdin */
|
|
@@ -674,6 +676,7 @@ declare const TAURI_COMMANDS: {
|
|
|
674
676
|
readonly listBackends: "extension_space_list_backends";
|
|
675
677
|
};
|
|
676
678
|
readonly shell: {
|
|
679
|
+
readonly listAvailable: "extension_shell_list_available";
|
|
677
680
|
readonly create: "extension_shell_create";
|
|
678
681
|
readonly write: "extension_shell_write";
|
|
679
682
|
readonly resize: "extension_shell_resize";
|
package/dist/index.js
CHANGED
|
@@ -1001,6 +1001,8 @@ var SPACE_COMMANDS = {
|
|
|
1001
1001
|
|
|
1002
1002
|
// src/commands/shell.ts
|
|
1003
1003
|
var SHELL_COMMANDS = {
|
|
1004
|
+
/** List available shell environments (no permission required) */
|
|
1005
|
+
listAvailable: "extension_shell_list_available",
|
|
1004
1006
|
/** Create a new PTY shell session */
|
|
1005
1007
|
create: "extension_shell_create",
|
|
1006
1008
|
/** Write data to a shell session's stdin */
|
|
@@ -1898,6 +1900,13 @@ var ShellAPI = class {
|
|
|
1898
1900
|
constructor(sdk) {
|
|
1899
1901
|
this.sdk = sdk;
|
|
1900
1902
|
}
|
|
1903
|
+
/**
|
|
1904
|
+
* List available shell environments on the host system.
|
|
1905
|
+
* No filesystem permission required.
|
|
1906
|
+
*/
|
|
1907
|
+
async listAvailable() {
|
|
1908
|
+
return await this.sdk.request(SHELL_COMMANDS.listAvailable, {});
|
|
1909
|
+
}
|
|
1901
1910
|
/**
|
|
1902
1911
|
* Create a new PTY shell session.
|
|
1903
1912
|
* Returns a session ID used for subsequent write/resize/close operations.
|
|
@@ -2950,6 +2959,14 @@ function canExternalClientSendRequests(state) {
|
|
|
2950
2959
|
return state === "paired" /* PAIRED */;
|
|
2951
2960
|
}
|
|
2952
2961
|
|
|
2962
|
+
// src/types/spaces.ts
|
|
2963
|
+
var SpaceRoles = {
|
|
2964
|
+
OWNER: "owner",
|
|
2965
|
+
ADMIN: "admin",
|
|
2966
|
+
MEMBER: "member",
|
|
2967
|
+
READER: "reader"
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2953
2970
|
// src/crypto/verify.ts
|
|
2954
2971
|
function sortObjectKeysRecursively(obj) {
|
|
2955
2972
|
if (typeof obj !== "object" || obj === null) {
|
|
@@ -3588,6 +3605,7 @@ exports.RemoteStorageAPI = RemoteStorageAPI;
|
|
|
3588
3605
|
exports.SHELL_EVENTS = SHELL_EVENTS;
|
|
3589
3606
|
exports.SPACE_COMMANDS = SPACE_COMMANDS;
|
|
3590
3607
|
exports.ShellAPI = ShellAPI;
|
|
3608
|
+
exports.SpaceRoles = SpaceRoles;
|
|
3591
3609
|
exports.SpacesAPI = SpacesAPI;
|
|
3592
3610
|
exports.TABLE_SEPARATOR = TABLE_SEPARATOR;
|
|
3593
3611
|
exports.TAURI_COMMANDS = TAURI_COMMANDS;
|