Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update protobuf in JS SDK
Tomas Valenta4fa514d3acad
diff --git a/.changeset/stale-eels-drive.md b/.changeset/stale-eels-drive.mdnew file mode 100644index 000000000..7ef26e519--- /dev/null+++ b/.changeset/stale-eels-drive.md@@ -0,0 +1,5 @@+---+'e2b': patch+---++Update protobuf versiondiff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex cbf586f7d..14afe1e04 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -79,9 +79,9 @@"typescript"],"dependencies": {- "@bufbuild/protobuf": "^1.10.0",- "@connectrpc/connect": "^1.4.0",- "@connectrpc/connect-web": "^1.4.0",+ "@bufbuild/protobuf": "^2.2.2",+ "@connectrpc/connect": "2.0.0-rc.3",+ "@connectrpc/connect-web": "2.0.0-rc.3","compare-versions": "^6.1.0","openapi-fetch": "^0.9.7","platform": "^1.3.6"diff --git a/packages/js-sdk/src/envd/api.ts b/packages/js-sdk/src/envd/api.tsindex e201c9dd3..0ae3a6389 100644--- a/packages/js-sdk/src/envd/api.ts+++ b/packages/js-sdk/src/envd/api.ts@@ -11,7 +11,7 @@ import {formatSandboxTimeoutError,AuthenticationError,} from '../errors'-import { StartResponse } from './process/process_pb'+import { StartResponse, ConnectResponse } from './process/process_pb'import { Code, ConnectError } from '@connectrpc/connect'import { WatchDirResponse } from './filesystem/filesystem_pb'@@ -48,9 +48,9 @@ export async function handleEnvdApiError<A, B, C extends `${string}/${string}`>(}export async function handleProcessStartEvent(- events: AsyncIterable<StartResponse>+ events: AsyncIterable<StartResponse | ConnectResponse>) {- let startEvent: StartResponse+ let startEvent: StartResponse | ConnectResponsetry {startEvent = (await events[Symbol.asyncIterator]().next()).valuediff --git a/packages/js-sdk/src/envd/filesystem/filesystem_connect.ts b/packages/js-sdk/src/envd/filesystem/filesystem_connect.tsindex 0bf7b717b..67a84f4af 100644--- a/packages/js-sdk/src/envd/filesystem/filesystem_connect.ts+++ b/packages/js-sdk/src/envd/filesystem/filesystem_connect.ts@@ -1,4 +1,4 @@-// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"+// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"// @generated from file filesystem/filesystem.proto (package filesystem, syntax proto3)/* eslint-disable */// @ts-nocheckdiff --git a/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts b/packages/js-sdk/src/envd/filesystem/filesystem_pb.tsindex b250cba13..10082f531 100644--- a/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts+++ b/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts@@ -1,584 +1,258 @@-// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"+// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"// @generated from file filesystem/filesystem.proto (package filesystem, syntax proto3)/* eslint-disable */-// @ts-nocheck-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";-import { Message, proto3 } from "@bufbuild/protobuf";+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";+import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";+import type { Message } from "@bufbuild/protobuf";/**- * @generated from enum filesystem.FileType+ * Describes the file filesystem/filesystem.proto.*/-export enum FileType {- /**- * @generated from enum value: FILE_TYPE_UNSPECIFIED = 0;- */- UNSPECIFIED = 0,-- /**- * @generated from enum value: FILE_TYPE_FILE = 1;- */- FILE = 1,-- /**- * @generated from enum value: FILE_TYPE_DIRECTORY = 2;- */- DIRECTORY = 2,-}-// Retrieve enum metadata with: proto3.getEnumType(FileType)-proto3.util.setEnumType(FileType, "filesystem.FileType", [- { no: 0, name: "FILE_TYPE_UNSPECIFIED" },- { no: 1, name: "FILE_TYPE_FILE" },- { no: 2, name: "FILE_TYPE_DIRECTORY" },-]);--/**- * @generated from enum filesystem.EventType- */-export enum EventType {- /**- * @generated from enum value: EVENT_TYPE_UNSPECIFIED = 0;- */- UNSPECIFIED = 0,-- /**- * @generated from enum value: EVENT_TYPE_CREATE = 1;- */- CREATE = 1,-- /**- * @generated from enum value: EVENT_TYPE_WRITE = 2;- */- WRITE = 2,-- /**- * @generated from enum value: EVENT_TYPE_REMOVE = 3;- */- REMOVE = 3,-- /**- * @generated from enum value: EVENT_TYPE_RENAME = 4;- */- RENAME = 4,-- /**- * @generated from enum value: EVENT_TYPE_CHMOD = 5;- */- CHMOD = 5,-}-// Retrieve enum metadata with: proto3.getEnumType(EventType)-proto3.util.setEnumType(EventType, "filesystem.EventType", [- { no: 0, name: "EVENT_TYPE_UNSPECIFIED" },- { no: 1, name: "EVENT_TYPE_CREATE" },- { no: 2, name: "EVENT_TYPE_WRITE" },- { no: 3, name: "EVENT_TYPE_REMOVE" },- { no: 4, name: "EVENT_TYPE_RENAME" },- { no: 5, name: "EVENT_TYPE_CHMOD" },-]);+export const file_filesystem_filesystem: GenFile = /*@__PURE__*/+ fileDesc("ChtmaWxlc3lzdGVtL2ZpbGVzeXN0ZW0ucHJvdG8SCmZpbGVzeXN0ZW0iMgoLTW92ZVJlcXVlc3QSDgoGc291cmNlGAEgASgJEhMKC2Rlc3RpbmF0aW9uGAIgASgJIjQKDE1vdmVSZXNwb25zZRIkCgVlbnRyeRgBIAEoCzIVLmZpbGVzeXN0ZW0uRW50cnlJbmZvIh4KDk1ha2VEaXJSZXF1ZXN0EgwKBHBhdGgYASABKAkiNwoPTWFrZURpclJlc3BvbnNlEiQKBWVudHJ5GAEgASgLMhUuZmlsZXN5c3RlbS5FbnRyeUluZm8iHQoNUmVtb3ZlUmVxdWVzdBIMCgRwYXRoGAEgASgJIhAKDlJlbW92ZVJlc3BvbnNlIhsKC1N0YXRSZXF1ZXN0EgwKBHBhdGgYASABKAkiNAoMU3RhdFJlc3BvbnNlEiQKBWVudHJ5GAEgASgLMhUuZmlsZXN5c3RlbS5FbnRyeUluZm8iSwoJRW50cnlJbmZvEgwKBG5hbWUYASABKAkSIgoEdHlwZRgCIAEoDjIULmZpbGVzeXN0ZW0uRmlsZVR5cGUSDAoEcGF0aBgDIAEoCSIeCg5MaXN0RGlyUmVxdWVzdBIMCgRwYXRoGAEgASgJIjkKD0xpc3REaXJSZXNwb25zZRImCgdlbnRyaWVzGAEgAygLMhUuZmlsZXN5c3RlbS5FbnRyeUluZm8iHwoPV2F0Y2hEaXJSZXF1ZXN0EgwKBHBhdGgYASABKAkiRAoPRmlsZXN5c3RlbUV2ZW50EgwKBG5hbWUYASABKAkSIwoEdHlwZRgCIAEoDjIVLmZpbGVzeXN0ZW0uRXZlbnRUeXBlIuABChBXYXRjaERpclJlc3BvbnNlEjgKBXN0YXJ0GAEgASgLMicuZmlsZXN5c3RlbS5XYXRjaERpclJlc3BvbnNlLlN0YXJ0RXZlbnRIABIxCgpmaWxlc3lzdGVtGAIgASgLMhsuZmlsZXN5c3RlbS5GaWxlc3lzdGVtRXZlbnRIABI7CglrZWVwYWxpdmUYAyABKAsyJi5maWxlc3lzdGVtLldhdGNoRGlyUmVzcG9uc2UuS2VlcEFsaXZlSAAaDAoKU3RhcnRFdmVudBoLCglLZWVwQWxpdmVCBwoFZXZlbnQiJAoUQ3JlYXRlV2F0Y2hlclJlcXVlc3QSDAoEcGF0aBgBIAEoCSIrChVDcmVhdGVXYXRjaGVyUmVzcG9uc2USEgoKd2F0Y2hlcl9pZBgBIAEoCSItChdHZXRXYXRjaGVyRXZlbnRzUmVxdWVzdBISCgp3YXRjaGVyX2lkGAEgASgJIkcKGEdldFdhdGNoZXJFdmVudHNSZXNwb25zZRIrCgZldmVudHMYASADKAsyGy5maWxlc3lzdGVtLkZpbGVzeXN0ZW1FdmVudCIqChRSZW1vdmVXYXRjaGVyUmVxdWVzdBISCgp3YXRjaGVyX2lkGAEgASgJIhcKFVJlbW92ZVdhdGNoZXJSZXNwb25zZSpSCghGaWxlVHlwZRIZChVGSUxFX1RZUEVfVU5TUEVDSUZJRUQQABISCg5GSUxFX1RZUEVfRklMRRABEhcKE0ZJTEVfVFlQRV9ESVJFQ1RPUlkQAiqYAQoJRXZlbnRUeXBlEhoKFkVWRU5UX1RZUEVfVU5TUEVDSUZJRUQQABIVChFFVkVOVF9UWVBFX0NSRUFURRABEhQKEEVWRU5UX1RZUEVfV1JJVEUQAhIVChFFVkVOVF9UWVBFX1JFTU9WRRADEhUKEUVWRU5UX1RZUEVfUkVOQU1FEAQSFAoQRVZFTlRfVFlQRV9DSE1PRBAFMp8FCgpGaWxlc3lzdGVtEjkKBFN0YXQSFy5maWxlc3lzdGVtLlN0YXRSZXF1ZXN0GhguZmlsZXN5c3RlbS5TdGF0UmVzcG9uc2USQgoHTWFrZURpchIaLmZpbGVzeXN0ZW0uTWFrZURpclJlcXVlc3QaGy5maWxlc3lzdGVtLk1ha2VEaXJSZXNwb25zZRI5CgRNb3ZlEhcuZmlsZXN5c3RlbS5Nb3ZlUmVxdWVzdBoYLmZpbGVzeXN0ZW0uTW92ZVJlc3BvbnNlEkIKB0xpc3REaXISGi5maWxlc3lzdGVtLkxpc3REaXJSZXF1ZXN0GhsuZmlsZXN5c3RlbS5MaXN0RGlyUmVzcG9uc2USPwoGUmVtb3ZlEhkuZmlsZXN5c3RlbS5SZW1vdmVSZXF1ZXN0GhouZmlsZXN5c3RlbS5SZW1vdmVSZXNwb25zZRJHCghXYXRjaERpchIbLmZpbGVzeXN0ZW0uV2F0Y2hEaXJSZXF1ZXN0GhwuZmlsZXN5c3RlbS5XYXRjaERpclJlc3BvbnNlMAESVAoNQ3JlYXRlV2F0Y2hlchIgLmZpbGVzeXN0ZW0uQ3JlYXRlV2F0Y2hlclJlcXVlc3QaIS5maWxlc3lzdGVtLkNyZWF0ZVdhdGNoZXJSZXNwb25zZRJdChBHZXRXYXRjaGVyRXZlbnRzEiMuZmlsZXN5c3RlbS5HZXRXYXRjaGVyRXZlbnRzUmVxdWVzdBokLmZpbGVzeXN0ZW0uR2V0V2F0Y2hlckV2ZW50c1Jlc3BvbnNlElQKDVJlbW92ZVdhdGNoZXISIC5maWxlc3lzdGVtLlJlbW92ZVdhdGNoZXJSZXF1ZXN0GiEuZmlsZXN5c3RlbS5SZW1vdmVXYXRjaGVyUmVzcG9uc2VCaQoOY29tLmZpbGVzeXN0ZW1CD0ZpbGVzeXN0ZW1Qcm90b1ABogIDRlhYqgIKRmlsZXN5c3RlbcoCCkZpbGVzeXN0ZW3iAhZGaWxlc3lzdGVtXEdQQk1ldGFkYXRh6gIKRmlsZXN5c3RlbWIGcHJvdG8z");/*** @generated from message filesystem.MoveRequest*/-export class MoveRequest extends Message<MoveRequest> {+export type MoveRequest = Message<"filesystem.MoveRequest"> & {/*** @generated from field: string source = 1;*/- source = "";+ source: string;/*** @generated from field: string destination = 2;*/- destination = "";-- constructor(data?: PartialMessage<MoveRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.MoveRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },- { no: 2, name: "destination", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);+ destination: string;+};- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MoveRequest {- return new MoveRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MoveRequest {- return new MoveRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MoveRequest {- return new MoveRequest().fromJsonString(jsonString, options);- }-- static equals(a: MoveRequest | PlainMessage<MoveRequest> | undefined, b: MoveRequest | PlainMessage<MoveRequest> | undefined): boolean {- return proto3.util.equals(MoveRequest, a, b);- }-}+/**+ * Describes the message filesystem.MoveRequest.+ * Use `create(MoveRequestSchema)` to create a new message.+ */+export const MoveRequestSchema: GenMessage<MoveRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 0);/*** @generated from message filesystem.MoveResponse*/-export class MoveResponse extends Message<MoveResponse> {+export type MoveResponse = Message<"filesystem.MoveResponse"> & {/*** @generated from field: filesystem.EntryInfo entry = 1;*/entry?: EntryInfo;+};- constructor(data?: PartialMessage<MoveResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.MoveResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "entry", kind: "message", T: EntryInfo },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MoveResponse {- return new MoveResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MoveResponse {- return new MoveResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MoveResponse {- return new MoveResponse().fromJsonString(jsonString, options);- }-- static equals(a: MoveResponse | PlainMessage<MoveResponse> | undefined, b: MoveResponse | PlainMessage<MoveResponse> | undefined): boolean {- return proto3.util.equals(MoveResponse, a, b);- }-}+/**+ * Describes the message filesystem.MoveResponse.+ * Use `create(MoveResponseSchema)` to create a new message.+ */+export const MoveResponseSchema: GenMessage<MoveResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 1);/*** @generated from message filesystem.MakeDirRequest*/-export class MakeDirRequest extends Message<MakeDirRequest> {+export type MakeDirRequest = Message<"filesystem.MakeDirRequest"> & {/*** @generated from field: string path = 1;*/- path = "";-- constructor(data?: PartialMessage<MakeDirRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.MakeDirRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MakeDirRequest {- return new MakeDirRequest().fromBinary(bytes, options);- }+ path: string;+};- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MakeDirRequest {- return new MakeDirRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MakeDirRequest {- return new MakeDirRequest().fromJsonString(jsonString, options);- }-- static equals(a: MakeDirRequest | PlainMessage<MakeDirRequest> | undefined, b: MakeDirRequest | PlainMessage<MakeDirRequest> | undefined): boolean {- return proto3.util.equals(MakeDirRequest, a, b);- }-}+/**+ * Describes the message filesystem.MakeDirRequest.+ * Use `create(MakeDirRequestSchema)` to create a new message.+ */+export const MakeDirRequestSchema: GenMessage<MakeDirRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 2);/*** @generated from message filesystem.MakeDirResponse*/-export class MakeDirResponse extends Message<MakeDirResponse> {+export type MakeDirResponse = Message<"filesystem.MakeDirResponse"> & {/*** @generated from field: filesystem.EntryInfo entry = 1;*/entry?: EntryInfo;+};- constructor(data?: PartialMessage<MakeDirResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.MakeDirResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "entry", kind: "message", T: EntryInfo },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MakeDirResponse {- return new MakeDirResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MakeDirResponse {- return new MakeDirResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MakeDirResponse {- return new MakeDirResponse().fromJsonString(jsonString, options);- }-- static equals(a: MakeDirResponse | PlainMessage<MakeDirResponse> | undefined, b: MakeDirResponse | PlainMessage<MakeDirResponse> | undefined): boolean {- return proto3.util.equals(MakeDirResponse, a, b);- }-}+/**+ * Describes the message filesystem.MakeDirResponse.+ * Use `create(MakeDirResponseSchema)` to create a new message.+ */+export const MakeDirResponseSchema: GenMessage<MakeDirResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 3);/*** @generated from message filesystem.RemoveRequest*/-export class RemoveRequest extends Message<RemoveRequest> {+export type RemoveRequest = Message<"filesystem.RemoveRequest"> & {/*** @generated from field: string path = 1;*/- path = "";-- constructor(data?: PartialMessage<RemoveRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.RemoveRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveRequest {- return new RemoveRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveRequest {- return new RemoveRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveRequest {- return new RemoveRequest().fromJsonString(jsonString, options);- }+ path: string;+};- static equals(a: RemoveRequest | PlainMessage<RemoveRequest> | undefined, b: RemoveRequest | PlainMessage<RemoveRequest> | undefined): boolean {- return proto3.util.equals(RemoveRequest, a, b);- }-}+/**+ * Describes the message filesystem.RemoveRequest.+ * Use `create(RemoveRequestSchema)` to create a new message.+ */+export const RemoveRequestSchema: GenMessage<RemoveRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 4);/*** @generated from message filesystem.RemoveResponse*/-export class RemoveResponse extends Message<RemoveResponse> {- constructor(data?: PartialMessage<RemoveResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.RemoveResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveResponse {- return new RemoveResponse().fromBinary(bytes, options);- }+export type RemoveResponse = Message<"filesystem.RemoveResponse"> & {+};- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveResponse {- return new RemoveResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveResponse {- return new RemoveResponse().fromJsonString(jsonString, options);- }-- static equals(a: RemoveResponse | PlainMessage<RemoveResponse> | undefined, b: RemoveResponse | PlainMessage<RemoveResponse> | undefined): boolean {- return proto3.util.equals(RemoveResponse, a, b);- }-}+/**+ * Describes the message filesystem.RemoveResponse.+ * Use `create(RemoveResponseSchema)` to create a new message.+ */+export const RemoveResponseSchema: GenMessage<RemoveResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 5);/*** @generated from message filesystem.StatRequest*/-export class StatRequest extends Message<StatRequest> {+export type StatRequest = Message<"filesystem.StatRequest"> & {/*** @generated from field: string path = 1;*/- path = "";-- constructor(data?: PartialMessage<StatRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.StatRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StatRequest {- return new StatRequest().fromBinary(bytes, options);- }+ path: string;+};- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StatRequest {- return new StatRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StatRequest {- return new StatRequest().fromJsonString(jsonString, options);- }-- static equals(a: StatRequest | PlainMessage<StatRequest> | undefined, b: StatRequest | PlainMessage<StatRequest> | undefined): boolean {- return proto3.util.equals(StatRequest, a, b);- }-}+/**+ * Describes the message filesystem.StatRequest.+ * Use `create(StatRequestSchema)` to create a new message.+ */+export const StatRequestSchema: GenMessage<StatRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 6);/*** @generated from message filesystem.StatResponse*/-export class StatResponse extends Message<StatResponse> {+export type StatResponse = Message<"filesystem.StatResponse"> & {/*** @generated from field: filesystem.EntryInfo entry = 1;*/entry?: EntryInfo;+};- constructor(data?: PartialMessage<StatResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.StatResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "entry", kind: "message", T: EntryInfo },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StatResponse {- return new StatResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StatResponse {- return new StatResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StatResponse {- return new StatResponse().fromJsonString(jsonString, options);- }-- static equals(a: StatResponse | PlainMessage<StatResponse> | undefined, b: StatResponse | PlainMessage<StatResponse> | undefined): boolean {- return proto3.util.equals(StatResponse, a, b);- }-}+/**+ * Describes the message filesystem.StatResponse.+ * Use `create(StatResponseSchema)` to create a new message.+ */+export const StatResponseSchema: GenMessage<StatResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 7);/*** @generated from message filesystem.EntryInfo*/-export class EntryInfo extends Message<EntryInfo> {+export type EntryInfo = Message<"filesystem.EntryInfo"> & {/*** @generated from field: string name = 1;*/- name = "";+ name: string;/*** @generated from field: filesystem.FileType type = 2;*/- type = FileType.UNSPECIFIED;+ type: FileType;/*** @generated from field: string path = 3;*/- path = "";+ path: string;+};- constructor(data?: PartialMessage<EntryInfo>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.EntryInfo";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(FileType) },- { no: 3, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntryInfo {- return new EntryInfo().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntryInfo {- return new EntryInfo().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntryInfo {- return new EntryInfo().fromJsonString(jsonString, options);- }-- static equals(a: EntryInfo | PlainMessage<EntryInfo> | undefined, b: EntryInfo | PlainMessage<EntryInfo> | undefined): boolean {- return proto3.util.equals(EntryInfo, a, b);- }-}+/**+ * Describes the message filesystem.EntryInfo.+ * Use `create(EntryInfoSchema)` to create a new message.+ */+export const EntryInfoSchema: GenMessage<EntryInfo> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 8);/*** @generated from message filesystem.ListDirRequest*/-export class ListDirRequest extends Message<ListDirRequest> {+export type ListDirRequest = Message<"filesystem.ListDirRequest"> & {/*** @generated from field: string path = 1;*/- path = "";-- constructor(data?: PartialMessage<ListDirRequest>) {- super();- proto3.util.initPartial(data, this);- }+ path: string;+};- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.ListDirRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDirRequest {- return new ListDirRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDirRequest {- return new ListDirRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDirRequest {- return new ListDirRequest().fromJsonString(jsonString, options);- }-- static equals(a: ListDirRequest | PlainMessage<ListDirRequest> | undefined, b: ListDirRequest | PlainMessage<ListDirRequest> | undefined): boolean {- return proto3.util.equals(ListDirRequest, a, b);- }-}+/**+ * Describes the message filesystem.ListDirRequest.+ * Use `create(ListDirRequestSchema)` to create a new message.+ */+export const ListDirRequestSchema: GenMessage<ListDirRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 9);/*** @generated from message filesystem.ListDirResponse*/-export class ListDirResponse extends Message<ListDirResponse> {+export type ListDirResponse = Message<"filesystem.ListDirResponse"> & {/*** @generated from field: repeated filesystem.EntryInfo entries = 1;*/- entries: EntryInfo[] = [];-- constructor(data?: PartialMessage<ListDirResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.ListDirResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "entries", kind: "message", T: EntryInfo, repeated: true },- ]);+ entries: EntryInfo[];+};- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDirResponse {- return new ListDirResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDirResponse {- return new ListDirResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDirResponse {- return new ListDirResponse().fromJsonString(jsonString, options);- }-- static equals(a: ListDirResponse | PlainMessage<ListDirResponse> | undefined, b: ListDirResponse | PlainMessage<ListDirResponse> | undefined): boolean {- return proto3.util.equals(ListDirResponse, a, b);- }-}+/**+ * Describes the message filesystem.ListDirResponse.+ * Use `create(ListDirResponseSchema)` to create a new message.+ */+export const ListDirResponseSchema: GenMessage<ListDirResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 10);/*** @generated from message filesystem.WatchDirRequest*/-export class WatchDirRequest extends Message<WatchDirRequest> {+export type WatchDirRequest = Message<"filesystem.WatchDirRequest"> & {/*** @generated from field: string path = 1;*/- path = "";-- constructor(data?: PartialMessage<WatchDirRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.WatchDirRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);+ path: string;+};- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDirRequest {- return new WatchDirRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDirRequest {- return new WatchDirRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDirRequest {- return new WatchDirRequest().fromJsonString(jsonString, options);- }-- static equals(a: WatchDirRequest | PlainMessage<WatchDirRequest> | undefined, b: WatchDirRequest | PlainMessage<WatchDirRequest> | undefined): boolean {- return proto3.util.equals(WatchDirRequest, a, b);- }-}+/**+ * Describes the message filesystem.WatchDirRequest.+ * Use `create(WatchDirRequestSchema)` to create a new message.+ */+export const WatchDirRequestSchema: GenMessage<WatchDirRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 11);/*** @generated from message filesystem.FilesystemEvent*/-export class FilesystemEvent extends Message<FilesystemEvent> {+export type FilesystemEvent = Message<"filesystem.FilesystemEvent"> & {/*** @generated from field: string name = 1;*/- name = "";+ name: string;/*** @generated from field: filesystem.EventType type = 2;*/- type = EventType.UNSPECIFIED;-- constructor(data?: PartialMessage<FilesystemEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.FilesystemEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(EventType) },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FilesystemEvent {- return new FilesystemEvent().fromBinary(bytes, options);- }+ type: EventType;+};- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FilesystemEvent {- return new FilesystemEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FilesystemEvent {- return new FilesystemEvent().fromJsonString(jsonString, options);- }-- static equals(a: FilesystemEvent | PlainMessage<FilesystemEvent> | undefined, b: FilesystemEvent | PlainMessage<FilesystemEvent> | undefined): boolean {- return proto3.util.equals(FilesystemEvent, a, b);- }-}+/**+ * Describes the message filesystem.FilesystemEvent.+ * Use `create(FilesystemEventSchema)` to create a new message.+ */+export const FilesystemEventSchema: GenMessage<FilesystemEvent> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 12);/*** @generated from message filesystem.WatchDirResponse*/-export class WatchDirResponse extends Message<WatchDirResponse> {+export type WatchDirResponse = Message<"filesystem.WatchDirResponse"> & {/*** @generated from oneof filesystem.WatchDirResponse.event*/@@ -600,313 +274,285 @@ export class WatchDirResponse extends Message<WatchDirResponse> {*/value: WatchDirResponse_KeepAlive;case: "keepalive";- } | { case: undefined; value?: undefined } = { case: undefined };-- constructor(data?: PartialMessage<WatchDirResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.WatchDirResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "start", kind: "message", T: WatchDirResponse_StartEvent, oneof: "event" },- { no: 2, name: "filesystem", kind: "message", T: FilesystemEvent, oneof: "event" },- { no: 3, name: "keepalive", kind: "message", T: WatchDirResponse_KeepAlive, oneof: "event" },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDirResponse {- return new WatchDirResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDirResponse {- return new WatchDirResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDirResponse {- return new WatchDirResponse().fromJsonString(jsonString, options);- }-- static equals(a: WatchDirResponse | PlainMessage<WatchDirResponse> | undefined, b: WatchDirResponse | PlainMessage<WatchDirResponse> | undefined): boolean {- return proto3.util.equals(WatchDirResponse, a, b);- }-}+ } | { case: undefined; value?: undefined };+};/**- * @generated from message filesystem.WatchDirResponse.StartEvent+ * Describes the message filesystem.WatchDirResponse.+ * Use `create(WatchDirResponseSchema)` to create a new message.*/-export class WatchDirResponse_StartEvent extends Message<WatchDirResponse_StartEvent> {- constructor(data?: PartialMessage<WatchDirResponse_StartEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.WatchDirResponse.StartEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDirResponse_StartEvent {- return new WatchDirResponse_StartEvent().fromBinary(bytes, options);- }+export const WatchDirResponseSchema: GenMessage<WatchDirResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 13);- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDirResponse_StartEvent {- return new WatchDirResponse_StartEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDirResponse_StartEvent {- return new WatchDirResponse_StartEvent().fromJsonString(jsonString, options);- }+/**+ * @generated from message filesystem.WatchDirResponse.StartEvent+ */+export type WatchDirResponse_StartEvent = Message<"filesystem.WatchDirResponse.StartEvent"> & {+};- static equals(a: WatchDirResponse_StartEvent | PlainMessage<WatchDirResponse_StartEvent> | undefined, b: WatchDirResponse_StartEvent | PlainMessage<WatchDirResponse_StartEvent> | undefined): boolean {- return proto3.util.equals(WatchDirResponse_StartEvent, a, b);- }-}+/**+ * Describes the message filesystem.WatchDirResponse.StartEvent.+ * Use `create(WatchDirResponse_StartEventSchema)` to create a new message.+ */+export const WatchDirResponse_StartEventSchema: GenMessage<WatchDirResponse_StartEvent> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 13, 0);/*** @generated from message filesystem.WatchDirResponse.KeepAlive*/-export class WatchDirResponse_KeepAlive extends Message<WatchDirResponse_KeepAlive> {- constructor(data?: PartialMessage<WatchDirResponse_KeepAlive>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.WatchDirResponse.KeepAlive";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDirResponse_KeepAlive {- return new WatchDirResponse_KeepAlive().fromBinary(bytes, options);- }+export type WatchDirResponse_KeepAlive = Message<"filesystem.WatchDirResponse.KeepAlive"> & {+};- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDirResponse_KeepAlive {- return new WatchDirResponse_KeepAlive().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDirResponse_KeepAlive {- return new WatchDirResponse_KeepAlive().fromJsonString(jsonString, options);- }-- static equals(a: WatchDirResponse_KeepAlive | PlainMessage<WatchDirResponse_KeepAlive> | undefined, b: WatchDirResponse_KeepAlive | PlainMessage<WatchDirResponse_KeepAlive> | undefined): boolean {- return proto3.util.equals(WatchDirResponse_KeepAlive, a, b);- }-}+/**+ * Describes the message filesystem.WatchDirResponse.KeepAlive.+ * Use `create(WatchDirResponse_KeepAliveSchema)` to create a new message.+ */+export const WatchDirResponse_KeepAliveSchema: GenMessage<WatchDirResponse_KeepAlive> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 13, 1);/*** @generated from message filesystem.CreateWatcherRequest*/-export class CreateWatcherRequest extends Message<CreateWatcherRequest> {+export type CreateWatcherRequest = Message<"filesystem.CreateWatcherRequest"> & {/*** @generated from field: string path = 1;*/- path = "";-- constructor(data?: PartialMessage<CreateWatcherRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.CreateWatcherRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateWatcherRequest {- return new CreateWatcherRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateWatcherRequest {- return new CreateWatcherRequest().fromJson(jsonValue, options);- }+ path: string;+};- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateWatcherRequest {- return new CreateWatcherRequest().fromJsonString(jsonString, options);- }-- static equals(a: CreateWatcherRequest | PlainMessage<CreateWatcherRequest> | undefined, b: CreateWatcherRequest | PlainMessage<CreateWatcherRequest> | undefined): boolean {- return proto3.util.equals(CreateWatcherRequest, a, b);- }-}+/**+ * Describes the message filesystem.CreateWatcherRequest.+ * Use `create(CreateWatcherRequestSchema)` to create a new message.+ */+export const CreateWatcherRequestSchema: GenMessage<CreateWatcherRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 14);/*** @generated from message filesystem.CreateWatcherResponse*/-export class CreateWatcherResponse extends Message<CreateWatcherResponse> {+export type CreateWatcherResponse = Message<"filesystem.CreateWatcherResponse"> & {/*** @generated from field: string watcher_id = 1;*/- watcherId = "";-- constructor(data?: PartialMessage<CreateWatcherResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.CreateWatcherResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "watcher_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateWatcherResponse {- return new CreateWatcherResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateWatcherResponse {- return new CreateWatcherResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateWatcherResponse {- return new CreateWatcherResponse().fromJsonString(jsonString, options);- }+ watcherId: string;+};- static equals(a: CreateWatcherResponse | PlainMessage<CreateWatcherResponse> | undefined, b: CreateWatcherResponse | PlainMessage<CreateWatcherResponse> | undefined): boolean {- return proto3.util.equals(CreateWatcherResponse, a, b);- }-}+/**+ * Describes the message filesystem.CreateWatcherResponse.+ * Use `create(CreateWatcherResponseSchema)` to create a new message.+ */+export const CreateWatcherResponseSchema: GenMessage<CreateWatcherResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 15);/*** @generated from message filesystem.GetWatcherEventsRequest*/-export class GetWatcherEventsRequest extends Message<GetWatcherEventsRequest> {+export type GetWatcherEventsRequest = Message<"filesystem.GetWatcherEventsRequest"> & {/*** @generated from field: string watcher_id = 1;*/- watcherId = "";-- constructor(data?: PartialMessage<GetWatcherEventsRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.GetWatcherEventsRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "watcher_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);+ watcherId: string;+};- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWatcherEventsRequest {- return new GetWatcherEventsRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWatcherEventsRequest {- return new GetWatcherEventsRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWatcherEventsRequest {- return new GetWatcherEventsRequest().fromJsonString(jsonString, options);- }-- static equals(a: GetWatcherEventsRequest | PlainMessage<GetWatcherEventsRequest> | undefined, b: GetWatcherEventsRequest | PlainMessage<GetWatcherEventsRequest> | undefined): boolean {- return proto3.util.equals(GetWatcherEventsRequest, a, b);- }-}+/**+ * Describes the message filesystem.GetWatcherEventsRequest.+ * Use `create(GetWatcherEventsRequestSchema)` to create a new message.+ */+export const GetWatcherEventsRequestSchema: GenMessage<GetWatcherEventsRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 16);/*** @generated from message filesystem.GetWatcherEventsResponse*/-export class GetWatcherEventsResponse extends Message<GetWatcherEventsResponse> {+export type GetWatcherEventsResponse = Message<"filesystem.GetWatcherEventsResponse"> & {/*** @generated from field: repeated filesystem.FilesystemEvent events = 1;*/- events: FilesystemEvent[] = [];-- constructor(data?: PartialMessage<GetWatcherEventsResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.GetWatcherEventsResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "events", kind: "message", T: FilesystemEvent, repeated: true },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWatcherEventsResponse {- return new GetWatcherEventsResponse().fromBinary(bytes, options);- }+ events: FilesystemEvent[];+};- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWatcherEventsResponse {- return new GetWatcherEventsResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWatcherEventsResponse {- return new GetWatcherEventsResponse().fromJsonString(jsonString, options);- }-- static equals(a: GetWatcherEventsResponse | PlainMessage<GetWatcherEventsResponse> | undefined, b: GetWatcherEventsResponse | PlainMessage<GetWatcherEventsResponse> | undefined): boolean {- return proto3.util.equals(GetWatcherEventsResponse, a, b);- }-}+/**+ * Describes the message filesystem.GetWatcherEventsResponse.+ * Use `create(GetWatcherEventsResponseSchema)` to create a new message.+ */+export const GetWatcherEventsResponseSchema: GenMessage<GetWatcherEventsResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 17);/*** @generated from message filesystem.RemoveWatcherRequest*/-export class RemoveWatcherRequest extends Message<RemoveWatcherRequest> {+export type RemoveWatcherRequest = Message<"filesystem.RemoveWatcherRequest"> & {/*** @generated from field: string watcher_id = 1;*/- watcherId = "";+ watcherId: string;+};- constructor(data?: PartialMessage<RemoveWatcherRequest>) {- super();- proto3.util.initPartial(data, this);- }+/**+ * Describes the message filesystem.RemoveWatcherRequest.+ * Use `create(RemoveWatcherRequestSchema)` to create a new message.+ */+export const RemoveWatcherRequestSchema: GenMessage<RemoveWatcherRequest> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 18);- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.RemoveWatcherRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "watcher_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },- ]);+/**+ * @generated from message filesystem.RemoveWatcherResponse+ */+export type RemoveWatcherResponse = Message<"filesystem.RemoveWatcherResponse"> & {+};- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveWatcherRequest {- return new RemoveWatcherRequest().fromBinary(bytes, options);- }+/**+ * Describes the message filesystem.RemoveWatcherResponse.+ * Use `create(RemoveWatcherResponseSchema)` to create a new message.+ */+export const RemoveWatcherResponseSchema: GenMessage<RemoveWatcherResponse> = /*@__PURE__*/+ messageDesc(file_filesystem_filesystem, 19);- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveWatcherRequest {- return new RemoveWatcherRequest().fromJson(jsonValue, options);- }+/**+ * @generated from enum filesystem.FileType+ */+export enum FileType {+ /**+ * @generated from enum value: FILE_TYPE_UNSPECIFIED = 0;+ */+ UNSPECIFIED = 0,- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveWatcherRequest {- return new RemoveWatcherRequest().fromJsonString(jsonString, options);- }+ /**+ * @generated from enum value: FILE_TYPE_FILE = 1;+ */+ FILE = 1,- static equals(a: RemoveWatcherRequest | PlainMessage<RemoveWatcherRequest> | undefined, b: RemoveWatcherRequest | PlainMessage<RemoveWatcherRequest> | undefined): boolean {- return proto3.util.equals(RemoveWatcherRequest, a, b);- }+ /**+ * @generated from enum value: FILE_TYPE_DIRECTORY = 2;+ */+ DIRECTORY = 2,}/**- * @generated from message filesystem.RemoveWatcherResponse+ * Describes the enum filesystem.FileType.*/-export class RemoveWatcherResponse extends Message<RemoveWatcherResponse> {- constructor(data?: PartialMessage<RemoveWatcherResponse>) {- super();- proto3.util.initPartial(data, this);- }+export const FileTypeSchema: GenEnum<FileType> = /*@__PURE__*/+ enumDesc(file_filesystem_filesystem, 0);- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.RemoveWatcherResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);+/**+ * @generated from enum filesystem.EventType+ */+export enum EventType {+ /**+ * @generated from enum value: EVENT_TYPE_UNSPECIFIED = 0;+ */+ UNSPECIFIED = 0,- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveWatcherResponse {- return new RemoveWatcherResponse().fromBinary(bytes, options);- }+ /**+ * @generated from enum value: EVENT_TYPE_CREATE = 1;+ */+ CREATE = 1,++ /**+ * @generated from enum value: EVENT_TYPE_WRITE = 2;+ */+ WRITE = 2,- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveWatcherResponse {- return new RemoveWatcherResponse().fromJson(jsonValue, options);- }+ /**+ * @generated from enum value: EVENT_TYPE_REMOVE = 3;+ */+ REMOVE = 3,- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveWatcherResponse {- return new RemoveWatcherResponse().fromJsonString(jsonString, options);- }+ /**+ * @generated from enum value: EVENT_TYPE_RENAME = 4;+ */+ RENAME = 4,- static equals(a: RemoveWatcherResponse | PlainMessage<RemoveWatcherResponse> | undefined, b: RemoveWatcherResponse | PlainMessage<RemoveWatcherResponse> | undefined): boolean {- return proto3.util.equals(RemoveWatcherResponse, a, b);- }+ /**+ * @generated from enum value: EVENT_TYPE_CHMOD = 5;+ */+ CHMOD = 5,}+/**+ * Describes the enum filesystem.EventType.+ */+export const EventTypeSchema: GenEnum<EventType> = /*@__PURE__*/+ enumDesc(file_filesystem_filesystem, 1);++/**+ * @generated from service filesystem.Filesystem+ */+export const Filesystem: GenService<{+ /**+ * @generated from rpc filesystem.Filesystem.Stat+ */+ stat: {+ methodKind: "unary";+ input: typeof StatRequestSchema;+ output: typeof StatResponseSchema;+ },+ /**+ * @generated from rpc filesystem.Filesystem.MakeDir+ */+ makeDir: {+ methodKind: "unary";+ input: typeof MakeDirRequestSchema;+ output: typeof MakeDirResponseSchema;+ },+ /**+ * @generated from rpc filesystem.Filesystem.Move+ */+ move: {+ methodKind: "unary";+ input: typeof MoveRequestSchema;+ output: typeof MoveResponseSchema;+ },+ /**+ * @generated from rpc filesystem.Filesystem.ListDir+ */+ listDir: {+ methodKind: "unary";+ input: typeof ListDirRequestSchema;+ output: typeof ListDirResponseSchema;+ },+ /**+ * @generated from rpc filesystem.Filesystem.Remove+ */+ remove: {+ methodKind: "unary";+ input: typeof RemoveRequestSchema;+ output: typeof RemoveResponseSchema;+ },+ /**+ * @generated from rpc filesystem.Filesystem.WatchDir+ */+ watchDir: {+ methodKind: "server_streaming";+ input: typeof WatchDirRequestSchema;+ output: typeof WatchDirResponseSchema;+ },+ /**+ * Non-streaming versions of WatchDir+ *+ * @generated from rpc filesystem.Filesystem.CreateWatcher+ */+ createWatcher: {+ methodKind: "unary";+ input: typeof CreateWatcherRequestSchema;+ output: typeof CreateWatcherResponseSchema;+ },+ /**+ * @generated from rpc filesystem.Filesystem.GetWatcherEvents+ */+ getWatcherEvents: {+ methodKind: "unary";+ input: typeof GetWatcherEventsRequestSchema;+ output: typeof GetWatcherEventsResponseSchema;+ },+ /**+ * @generated from rpc filesystem.Filesystem.RemoveWatcher+ */+ removeWatcher: {+ methodKind: "unary";+ input: typeof RemoveWatcherRequestSchema;+ output: typeof RemoveWatcherResponseSchema;+ },+}> = /*@__PURE__*/+ serviceDesc(file_filesystem_filesystem, 0);+diff --git a/packages/js-sdk/src/envd/process/process_connect.ts b/packages/js-sdk/src/envd/process/process_connect.tsindex d80c84948..bff817f86 100644--- a/packages/js-sdk/src/envd/process/process_connect.ts+++ b/packages/js-sdk/src/envd/process/process_connect.ts@@ -1,4 +1,4 @@-// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"+// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"// @generated from file process/process.proto (package process, syntax proto3)/* eslint-disable */// @ts-nocheckdiff --git a/packages/js-sdk/src/envd/process/process_pb.ts b/packages/js-sdk/src/envd/process/process_pb.tsindex 5effe5c8e..2e9564ac8 100644--- a/packages/js-sdk/src/envd/process/process_pb.ts+++ b/packages/js-sdk/src/envd/process/process_pb.ts@@ -1,207 +1,105 @@-// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"+// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"// @generated from file process/process.proto (package process, syntax proto3)/* eslint-disable */-// @ts-nocheck-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";-import { Message, proto3 } from "@bufbuild/protobuf";+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";+import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";+import type { Message } from "@bufbuild/protobuf";/**- * @generated from enum process.Signal+ * Describes the file process/process.proto.*/-export enum Signal {- /**- * @generated from enum value: SIGNAL_UNSPECIFIED = 0;- */- UNSPECIFIED = 0,-- /**- * @generated from enum value: SIGNAL_SIGTERM = 15;- */- SIGTERM = 15,-- /**- * @generated from enum value: SIGNAL_SIGKILL = 9;- */- SIGKILL = 9,-}-// Retrieve enum metadata with: proto3.getEnumType(Signal)-proto3.util.setEnumType(Signal, "process.Signal", [- { no: 0, name: "SIGNAL_UNSPECIFIED" },- { no: 15, name: "SIGNAL_SIGTERM" },- { no: 9, name: "SIGNAL_SIGKILL" },-]);+export const file_process_process: GenFile = /*@__PURE__*/+ fileDesc("ChVwcm9jZXNzL3Byb2Nlc3MucHJvdG8SB3Byb2Nlc3MiSgoDUFRZEh8KBHNpemUYASABKAsyES5wcm9jZXNzLlBUWS5TaXplGiIKBFNpemUSDAoEY29scxgBIAEoDRIMCgRyb3dzGAIgASgNIqEBCg1Qcm9jZXNzQ29uZmlnEgsKA2NtZBgBIAEoCRIMCgRhcmdzGAIgAygJEi4KBGVudnMYAyADKAsyIC5wcm9jZXNzLlByb2Nlc3NDb25maWcuRW52c0VudHJ5EhAKA2N3ZBgEIAEoCUgAiAEBGisKCUVudnNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQgYKBF9jd2QiDQoLTGlzdFJlcXVlc3QiXAoLUHJvY2Vzc0luZm8SJgoGY29uZmlnGAEgASgLMhYucHJvY2Vzcy5Qcm9jZXNzQ29uZmlnEgsKA3BpZBgCIAEoDRIQCgN0YWcYAyABKAlIAIgBAUIGCgRfdGFnIjcKDExpc3RSZXNwb25zZRInCglwcm9jZXNzZXMYASADKAsyFC5wcm9jZXNzLlByb2Nlc3NJbmZvInkKDFN0YXJ0UmVxdWVzdBInCgdwcm9jZXNzGAEgASgLMhYucHJvY2Vzcy5Qcm9jZXNzQ29uZmlnEh4KA3B0eRgCIAEoCzIMLnByb2Nlc3MuUFRZSACIAQESEAoDdGFnGAMgASgJSAGIAQFCBgoEX3B0eUIGCgRfdGFnImIKDVVwZGF0ZVJlcXVlc3QSKQoHcHJvY2VzcxgBIAEoCzIYLnByb2Nlc3MuUHJvY2Vzc1NlbGVjdG9yEh4KA3B0eRgCIAEoCzIMLnByb2Nlc3MuUFRZSACIAQFCBgoEX3B0eSIQCg5VcGRhdGVSZXNwb25zZSKvAwoMUHJvY2Vzc0V2ZW50EjEKBXN0YXJ0GAEgASgLMiAucHJvY2Vzcy5Qcm9jZXNzRXZlbnQuU3RhcnRFdmVudEgAEi8KBGRhdGEYAiABKAsyHy5wcm9jZXNzLlByb2Nlc3NFdmVudC5EYXRhRXZlbnRIABItCgNlbmQYAyABKAsyHi5wcm9jZXNzLlByb2Nlc3NFdmVudC5FbmRFdmVudEgAEjQKCWtlZXBhbGl2ZRgEIAEoCzIfLnByb2Nlc3MuUHJvY2Vzc0V2ZW50LktlZXBBbGl2ZUgAGhkKClN0YXJ0RXZlbnQSCwoDcGlkGAEgASgNGkgKCURhdGFFdmVudBIQCgZzdGRvdXQYASABKAxIABIQCgZzdGRlcnIYAiABKAxIABINCgNwdHkYAyABKAxIAEIICgZvdXRwdXQaWwoIRW5kRXZlbnQSEQoJZXhpdF9jb2RlGAEgASgREg4KBmV4aXRlZBgCIAEoCBIOCgZzdGF0dXMYAyABKAkSEgoFZXJyb3IYBCABKAlIAIgBAUIICgZfZXJyb3IaCwoJS2VlcEFsaXZlQgcKBWV2ZW50IjUKDVN0YXJ0UmVzcG9uc2USJAoFZXZlbnQYASABKAsyFS5wcm9jZXNzLlByb2Nlc3NFdmVudCI3Cg9Db25uZWN0UmVzcG9uc2USJAoFZXZlbnQYASABKAsyFS5wcm9jZXNzLlByb2Nlc3NFdmVudCJjChBTZW5kSW5wdXRSZXF1ZXN0EikKB3Byb2Nlc3MYASABKAsyGC5wcm9jZXNzLlByb2Nlc3NTZWxlY3RvchIkCgVpbnB1dBgCIAEoCzIVLnByb2Nlc3MuUHJvY2Vzc0lucHV0IhMKEVNlbmRJbnB1dFJlc3BvbnNlIjcKDFByb2Nlc3NJbnB1dBIPCgVzdGRpbhgBIAEoDEgAEg0KA3B0eRgCIAEoDEgAQgcKBWlucHV0IsICChJTdHJlYW1JbnB1dFJlcXVlc3QSNwoFc3RhcnQYASABKAsyJi5wcm9jZXNzLlN0cmVhbUlucHV0UmVxdWVzdC5TdGFydEV2ZW50SAASNQoEZGF0YRgCIAEoCzIlLnByb2Nlc3MuU3RyZWFtSW5wdXRSZXF1ZXN0LkRhdGFFdmVudEgAEjoKCWtlZXBhbGl2ZRgDIAEoCzIlLnByb2Nlc3MuU3RyZWFtSW5wdXRSZXF1ZXN0LktlZXBBbGl2ZUgAGjcKClN0YXJ0RXZlbnQSKQoHcHJvY2VzcxgBIAEoCzIYLnByb2Nlc3MuUHJvY2Vzc1NlbGVjdG9yGjEKCURhdGFFdmVudBIkCgVpbnB1dBgCIAEoCzIVLnByb2Nlc3MuUHJvY2Vzc0lucHV0GgsKCUtlZXBBbGl2ZUIHCgVldmVudCIVChNTdHJlYW1JbnB1dFJlc3BvbnNlIl8KEVNlbmRTaWduYWxSZXF1ZXN0EikKB3Byb2Nlc3MYASABKAsyGC5wcm9jZXNzLlByb2Nlc3NTZWxlY3RvchIfCgZzaWduYWwYAiABKA4yDy5wcm9jZXNzLlNpZ25hbCIUChJTZW5kU2lnbmFsUmVzcG9uc2UiOwoOQ29ubmVjdFJlcXVlc3QSKQoHcHJvY2VzcxgBIAEoCzIYLnByb2Nlc3MuUHJvY2Vzc1NlbGVjdG9yIjsKD1Byb2Nlc3NTZWxlY3RvchINCgNwaWQYASABKA1IABINCgN0YWcYAiABKAlIAEIKCghzZWxlY3RvcipICgZTaWduYWwSFgoSU0lHTkFMX1VOU1BFQ0lGSUVEEAASEgoOU0lHTkFMX1NJR1RFUk0QDxISCg5TSUdOQUxfU0lHS0lMTBAJMsoDCgdQcm9jZXNzEjMKBExpc3QSFC5wcm9jZXNzLkxpc3RSZXF1ZXN0GhUucHJvY2Vzcy5MaXN0UmVzcG9uc2USPgoHQ29ubmVjdBIXLnByb2Nlc3MuQ29ubmVjdFJlcXVlc3QaGC5wcm9jZXNzLkNvbm5lY3RSZXNwb25zZTABEjgKBVN0YXJ0EhUucHJvY2Vzcy5TdGFydFJlcXVlc3QaFi5wcm9jZXNzLlN0YXJ0UmVzcG9uc2UwARI5CgZVcGRhdGUSFi5wcm9jZXNzLlVwZGF0ZVJlcXVlc3QaFy5wcm9jZXNzLlVwZGF0ZVJlc3BvbnNlEkoKC1N0cmVhbUlucHV0EhsucHJvY2Vzcy5TdHJlYW1JbnB1dFJlcXVlc3QaHC5wcm9jZXNzLlN0cmVhbUlucHV0UmVzcG9uc2UoARJCCglTZW5kSW5wdXQSGS5wcm9jZXNzLlNlbmRJbnB1dFJlcXVlc3QaGi5wcm9jZXNzLlNlbmRJbnB1dFJlc3BvbnNlEkUKClNlbmRTaWduYWwSGi5wcm9jZXNzLlNlbmRTaWduYWxSZXF1ZXN0GhsucHJvY2Vzcy5TZW5kU2lnbmFsUmVzcG9uc2VCVwoLY29tLnByb2Nlc3NCDFByb2Nlc3NQcm90b1ABogIDUFhYqgIHUHJvY2Vzc8oCB1Byb2Nlc3PiAhNQcm9jZXNzXEdQQk1ldGFkYXRh6gIHUHJvY2Vzc2IGcHJvdG8z");/*** @generated from message process.PTY*/-export class PTY extends Message<PTY> {+export type PTY = Message<"process.PTY"> & {/*** @generated from field: process.PTY.Size size = 1;*/size?: PTY_Size;+};- constructor(data?: PartialMessage<PTY>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.PTY";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "size", kind: "message", T: PTY_Size },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PTY {- return new PTY().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PTY {- return new PTY().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PTY {- return new PTY().fromJsonString(jsonString, options);- }-- static equals(a: PTY | PlainMessage<PTY> | undefined, b: PTY | PlainMessage<PTY> | undefined): boolean {- return proto3.util.equals(PTY, a, b);- }-}+/**+ * Describes the message process.PTY.+ * Use `create(PTYSchema)` to create a new message.+ */+export const PTYSchema: GenMessage<PTY> = /*@__PURE__*/+ messageDesc(file_process_process, 0);/*** @generated from message process.PTY.Size*/-export class PTY_Size extends Message<PTY_Size> {+export type PTY_Size = Message<"process.PTY.Size"> & {/*** @generated from field: uint32 cols = 1;*/- cols = 0;+ cols: number;/*** @generated from field: uint32 rows = 2;*/- rows = 0;-- constructor(data?: PartialMessage<PTY_Size>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.PTY.Size";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "cols", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },- { no: 2, name: "rows", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PTY_Size {- return new PTY_Size().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PTY_Size {- return new PTY_Size().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PTY_Size {- return new PTY_Size().fromJsonString(jsonString, options);- }-- static equals(a: PTY_Size | PlainMessage<PTY_Size> | undefined, b: PTY_Size | PlainMessage<PTY_Size> | undefined): boolean {- return proto3.util.equals(PTY_Size, a, b);- }-}+ rows: number;+};++/**+ * Describes the message process.PTY.Size.+ * Use `create(PTY_SizeSchema)` to create a new message.+ */+export const PTY_SizeSchema: GenMessage<PTY_Size> = /*@__PURE__*/+ messageDesc(file_process_process, 0, 0);/*** @generated from message process.ProcessConfig*/-export class ProcessConfig extends Message<ProcessConfig> {+export type ProcessConfig = Message<"process.ProcessConfig"> & {/*** @generated from field: string cmd = 1;*/- cmd = "";+ cmd: string;/*** @generated from field: repeated string args = 2;*/- args: string[] = [];+ args: string[];/*** @generated from field: map<string, string> envs = 3;*/- envs: { [key: string]: string } = {};+ envs: { [key: string]: string };/*** @generated from field: optional string cwd = 4;*/cwd?: string;+};- constructor(data?: PartialMessage<ProcessConfig>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessConfig";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "cmd", kind: "scalar", T: 9 /* ScalarType.STRING */ },- { no: 2, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },- { no: 3, name: "envs", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },- { no: 4, name: "cwd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessConfig {- return new ProcessConfig().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessConfig {- return new ProcessConfig().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessConfig {- return new ProcessConfig().fromJsonString(jsonString, options);- }-- static equals(a: ProcessConfig | PlainMessage<ProcessConfig> | undefined, b: ProcessConfig | PlainMessage<ProcessConfig> | undefined): boolean {- return proto3.util.equals(ProcessConfig, a, b);- }-}+/**+ * Describes the message process.ProcessConfig.+ * Use `create(ProcessConfigSchema)` to create a new message.+ */+export const ProcessConfigSchema: GenMessage<ProcessConfig> = /*@__PURE__*/+ messageDesc(file_process_process, 1);/*** @generated from message process.ListRequest*/-export class ListRequest extends Message<ListRequest> {- constructor(data?: PartialMessage<ListRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ListRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRequest {- return new ListRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRequest {- return new ListRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRequest {- return new ListRequest().fromJsonString(jsonString, options);- }-- static equals(a: ListRequest | PlainMessage<ListRequest> | undefined, b: ListRequest | PlainMessage<ListRequest> | undefined): boolean {- return proto3.util.equals(ListRequest, a, b);- }-}+export type ListRequest = Message<"process.ListRequest"> & {+};++/**+ * Describes the message process.ListRequest.+ * Use `create(ListRequestSchema)` to create a new message.+ */+export const ListRequestSchema: GenMessage<ListRequest> = /*@__PURE__*/+ messageDesc(file_process_process, 2);/*** @generated from message process.ProcessInfo*/-export class ProcessInfo extends Message<ProcessInfo> {+export type ProcessInfo = Message<"process.ProcessInfo"> & {/*** @generated from field: process.ProcessConfig config = 1;*/@@ -210,84 +108,42 @@ export class ProcessInfo extends Message<ProcessInfo> {/*** @generated from field: uint32 pid = 2;*/- pid = 0;+ pid: number;/*** @generated from field: optional string tag = 3;*/tag?: string;+};- constructor(data?: PartialMessage<ProcessInfo>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessInfo";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "config", kind: "message", T: ProcessConfig },- { no: 2, name: "pid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },- { no: 3, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessInfo {- return new ProcessInfo().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessInfo {- return new ProcessInfo().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessInfo {- return new ProcessInfo().fromJsonString(jsonString, options);- }-- static equals(a: ProcessInfo | PlainMessage<ProcessInfo> | undefined, b: ProcessInfo | PlainMessage<ProcessInfo> | undefined): boolean {- return proto3.util.equals(ProcessInfo, a, b);- }-}+/**+ * Describes the message process.ProcessInfo.+ * Use `create(ProcessInfoSchema)` to create a new message.+ */+export const ProcessInfoSchema: GenMessage<ProcessInfo> = /*@__PURE__*/+ messageDesc(file_process_process, 3);/*** @generated from message process.ListResponse*/-export class ListResponse extends Message<ListResponse> {+export type ListResponse = Message<"process.ListResponse"> & {/*** @generated from field: repeated process.ProcessInfo processes = 1;*/- processes: ProcessInfo[] = [];-- constructor(data?: PartialMessage<ListResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ListResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "processes", kind: "message", T: ProcessInfo, repeated: true },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListResponse {- return new ListResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListResponse {- return new ListResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListResponse {- return new ListResponse().fromJsonString(jsonString, options);- }-- static equals(a: ListResponse | PlainMessage<ListResponse> | undefined, b: ListResponse | PlainMessage<ListResponse> | undefined): boolean {- return proto3.util.equals(ListResponse, a, b);- }-}+ processes: ProcessInfo[];+};++/**+ * Describes the message process.ListResponse.+ * Use `create(ListResponseSchema)` to create a new message.+ */+export const ListResponseSchema: GenMessage<ListResponse> = /*@__PURE__*/+ messageDesc(file_process_process, 4);/*** @generated from message process.StartRequest*/-export class StartRequest extends Message<StartRequest> {+export type StartRequest = Message<"process.StartRequest"> & {/*** @generated from field: process.ProcessConfig process = 1;*/@@ -302,41 +158,19 @@ export class StartRequest extends Message<StartRequest> {* @generated from field: optional string tag = 3;*/tag?: string;+};- constructor(data?: PartialMessage<StartRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.StartRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "process", kind: "message", T: ProcessConfig },- { no: 2, name: "pty", kind: "message", T: PTY, opt: true },- { no: 3, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartRequest {- return new StartRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartRequest {- return new StartRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartRequest {- return new StartRequest().fromJsonString(jsonString, options);- }-- static equals(a: StartRequest | PlainMessage<StartRequest> | undefined, b: StartRequest | PlainMessage<StartRequest> | undefined): boolean {- return proto3.util.equals(StartRequest, a, b);- }-}+/**+ * Describes the message process.StartRequest.+ * Use `create(StartRequestSchema)` to create a new message.+ */+export const StartRequestSchema: GenMessage<StartRequest> = /*@__PURE__*/+ messageDesc(file_process_process, 5);/*** @generated from message process.UpdateRequest*/-export class UpdateRequest extends Message<UpdateRequest> {+export type UpdateRequest = Message<"process.UpdateRequest"> & {/*** @generated from field: process.ProcessSelector process = 1;*/@@ -346,71 +180,32 @@ export class UpdateRequest extends Message<UpdateRequest> {* @generated from field: optional process.PTY pty = 2;*/pty?: PTY;+};- constructor(data?: PartialMessage<UpdateRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.UpdateRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "process", kind: "message", T: ProcessSelector },- { no: 2, name: "pty", kind: "message", T: PTY, opt: true },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateRequest {- return new UpdateRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateRequest {- return new UpdateRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateRequest {- return new UpdateRequest().fromJsonString(jsonString, options);- }-- static equals(a: UpdateRequest | PlainMessage<UpdateRequest> | undefined, b: UpdateRequest | PlainMessage<UpdateRequest> | undefined): boolean {- return proto3.util.equals(UpdateRequest, a, b);- }-}+/**+ * Describes the message process.UpdateRequest.+ * Use `create(UpdateRequestSchema)` to create a new message.+ */+export const UpdateRequestSchema: GenMessage<UpdateRequest> = /*@__PURE__*/+ messageDesc(file_process_process, 6);/*** @generated from message process.UpdateResponse*/-export class UpdateResponse extends Message<UpdateResponse> {- constructor(data?: PartialMessage<UpdateResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.UpdateResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateResponse {- return new UpdateResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateResponse {- return new UpdateResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateResponse {- return new UpdateResponse().fromJsonString(jsonString, options);- }-- static equals(a: UpdateResponse | PlainMessage<UpdateResponse> | undefined, b: UpdateResponse | PlainMessage<UpdateResponse> | undefined): boolean {- return proto3.util.equals(UpdateResponse, a, b);- }-}+export type UpdateResponse = Message<"process.UpdateResponse"> & {+};++/**+ * Describes the message process.UpdateResponse.+ * Use `create(UpdateResponseSchema)` to create a new message.+ */+export const UpdateResponseSchema: GenMessage<UpdateResponse> = /*@__PURE__*/+ messageDesc(file_process_process, 7);/*** @generated from message process.ProcessEvent*/-export class ProcessEvent extends Message<ProcessEvent> {+export type ProcessEvent = Message<"process.ProcessEvent"> & {/*** @generated from oneof process.ProcessEvent.event*/@@ -438,80 +233,37 @@ export class ProcessEvent extends Message<ProcessEvent> {*/value: ProcessEvent_KeepAlive;case: "keepalive";- } | { case: undefined; value?: undefined } = { case: undefined };-- constructor(data?: PartialMessage<ProcessEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "start", kind: "message", T: ProcessEvent_StartEvent, oneof: "event" },- { no: 2, name: "data", kind: "message", T: ProcessEvent_DataEvent, oneof: "event" },- { no: 3, name: "end", kind: "message", T: ProcessEvent_EndEvent, oneof: "event" },- { no: 4, name: "keepalive", kind: "message", T: ProcessEvent_KeepAlive, oneof: "event" },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessEvent {- return new ProcessEvent().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessEvent {- return new ProcessEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessEvent {- return new ProcessEvent().fromJsonString(jsonString, options);- }-- static equals(a: ProcessEvent | PlainMessage<ProcessEvent> | undefined, b: ProcessEvent | PlainMessage<ProcessEvent> | undefined): boolean {- return proto3.util.equals(ProcessEvent, a, b);- }-}+ } | { case: undefined; value?: undefined };+};++/**+ * Describes the message process.ProcessEvent.+ * Use `create(ProcessEventSchema)` to create a new message.+ */+export const ProcessEventSchema: GenMessage<ProcessEvent> = /*@__PURE__*/+ messageDesc(file_process_process, 8);/*** @generated from message process.ProcessEvent.StartEvent*/-export class ProcessEvent_StartEvent extends Message<ProcessEvent_StartEvent> {+export type ProcessEvent_StartEvent = Message<"process.ProcessEvent.StartEvent"> & {/*** @generated from field: uint32 pid = 1;*/- pid = 0;-- constructor(data?: PartialMessage<ProcessEvent_StartEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessEvent.StartEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "pid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessEvent_StartEvent {- return new ProcessEvent_StartEvent().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessEvent_StartEvent {- return new ProcessEvent_StartEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessEvent_StartEvent {- return new ProcessEvent_StartEvent().fromJsonString(jsonString, options);- }-- static equals(a: ProcessEvent_StartEvent | PlainMessage<ProcessEvent_StartEvent> | undefined, b: ProcessEvent_StartEvent | PlainMessage<ProcessEvent_StartEvent> | undefined): boolean {- return proto3.util.equals(ProcessEvent_StartEvent, a, b);- }-}+ pid: number;+};++/**+ * Describes the message process.ProcessEvent.StartEvent.+ * Use `create(ProcessEvent_StartEventSchema)` to create a new message.+ */+export const ProcessEvent_StartEventSchema: GenMessage<ProcessEvent_StartEvent> = /*@__PURE__*/+ messageDesc(file_process_process, 8, 0);/*** @generated from message process.ProcessEvent.DataEvent*/-export class ProcessEvent_DataEvent extends Message<ProcessEvent_DataEvent> {+export type ProcessEvent_DataEvent = Message<"process.ProcessEvent.DataEvent"> & {/*** @generated from oneof process.ProcessEvent.DataEvent.output*/@@ -533,202 +285,99 @@ export class ProcessEvent_DataEvent extends Message<ProcessEvent_DataEvent> {*/value: Uint8Array;case: "pty";- } | { case: undefined; value?: undefined } = { case: undefined };-- constructor(data?: PartialMessage<ProcessEvent_DataEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessEvent.DataEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "stdout", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "output" },- { no: 2, name: "stderr", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "output" },- { no: 3, name: "pty", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "output" },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessEvent_DataEvent {- return new ProcessEvent_DataEvent().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessEvent_DataEvent {- return new ProcessEvent_DataEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessEvent_DataEvent {- return new ProcessEvent_DataEvent().fromJsonString(jsonString, options);- }-- static equals(a: ProcessEvent_DataEvent | PlainMessage<ProcessEvent_DataEvent> | undefined, b: ProcessEvent_DataEvent | PlainMessage<ProcessEvent_DataEvent> | undefined): boolean {- return proto3.util.equals(ProcessEvent_DataEvent, a, b);- }-}+ } | { case: undefined; value?: undefined };+};++/**+ * Describes the message process.ProcessEvent.DataEvent.+ * Use `create(ProcessEvent_DataEventSchema)` to create a new message.+ */+export const ProcessEvent_DataEventSchema: GenMessage<ProcessEvent_DataEvent> = /*@__PURE__*/+ messageDesc(file_process_process, 8, 1);/*** @generated from message process.ProcessEvent.EndEvent*/-export class ProcessEvent_EndEvent extends Message<ProcessEvent_EndEvent> {+export type ProcessEvent_EndEvent = Message<"process.ProcessEvent.EndEvent"> & {/*** @generated from field: sint32 exit_code = 1;*/- exitCode = 0;+ exitCode: number;/*** @generated from field: bool exited = 2;*/- exited = false;+ exited: boolean;/*** @generated from field: string status = 3;*/- status = "";+ status: string;/*** @generated from field: optional string error = 4;*/error?: string;+};- constructor(data?: PartialMessage<ProcessEvent_EndEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessEvent.EndEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "exit_code", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },- { no: 2, name: "exited", kind: "scalar", T: 8 /* ScalarType.BOOL */ },- { no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },- { no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessEvent_EndEvent {- return new ProcessEvent_EndEvent().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessEvent_EndEvent {- return new ProcessEvent_EndEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessEvent_EndEvent {- return new ProcessEvent_EndEvent().fromJsonString(jsonString, options);- }-- static equals(a: ProcessEvent_EndEvent | PlainMessage<ProcessEvent_EndEvent> | undefined, b: ProcessEvent_EndEvent | PlainMessage<ProcessEvent_EndEvent> | undefined): boolean {- return proto3.util.equals(ProcessEvent_EndEvent, a, b);- }-}+/**+ * Describes the message process.ProcessEvent.EndEvent.+ * Use `create(ProcessEvent_EndEventSchema)` to create a new message.+ */+export const ProcessEvent_EndEventSchema: GenMessage<ProcessEvent_EndEvent> = /*@__PURE__*/+ messageDesc(file_process_process, 8, 2);/*** @generated from message process.ProcessEvent.KeepAlive*/-export class ProcessEvent_KeepAlive extends Message<ProcessEvent_KeepAlive> {- constructor(data?: PartialMessage<ProcessEvent_KeepAlive>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessEvent.KeepAlive";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessEvent_KeepAlive {- return new ProcessEvent_KeepAlive().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessEvent_KeepAlive {- return new ProcessEvent_KeepAlive().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessEvent_KeepAlive {- return new ProcessEvent_KeepAlive().fromJsonString(jsonString, options);- }-- static equals(a: ProcessEvent_KeepAlive | PlainMessage<ProcessEvent_KeepAlive> | undefined, b: ProcessEvent_KeepAlive | PlainMessage<ProcessEvent_KeepAlive> | undefined): boolean {- return proto3.util.equals(ProcessEvent_KeepAlive, a, b);- }-}+export type ProcessEvent_KeepAlive = Message<"process.ProcessEvent.KeepAlive"> & {+};++/**+ * Describes the message process.ProcessEvent.KeepAlive.+ * Use `create(ProcessEvent_KeepAliveSchema)` to create a new message.+ */+export const ProcessEvent_KeepAliveSchema: GenMessage<ProcessEvent_KeepAlive> = /*@__PURE__*/+ messageDesc(file_process_process, 8, 3);/*** @generated from message process.StartResponse*/-export class StartResponse extends Message<StartResponse> {+export type StartResponse = Message<"process.StartResponse"> & {/*** @generated from field: process.ProcessEvent event = 1;*/event?: ProcessEvent;+};- constructor(data?: PartialMessage<StartResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.StartResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "event", kind: "message", T: ProcessEvent },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartResponse {- return new StartResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartResponse {- return new StartResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartResponse {- return new StartResponse().fromJsonString(jsonString, options);- }-- static equals(a: StartResponse | PlainMessage<StartResponse> | undefined, b: StartResponse | PlainMessage<StartResponse> | undefined): boolean {- return proto3.util.equals(StartResponse, a, b);- }-}+/**+ * Describes the message process.StartResponse.+ * Use `create(StartResponseSchema)` to create a new message.+ */+export const StartResponseSchema: GenMessage<StartResponse> = /*@__PURE__*/+ messageDesc(file_process_process, 9);/*** @generated from message process.ConnectResponse*/-export class ConnectResponse extends Message<ConnectResponse> {+export type ConnectResponse = Message<"process.ConnectResponse"> & {/*** @generated from field: process.ProcessEvent event = 1;*/event?: ProcessEvent;+};- constructor(data?: PartialMessage<ConnectResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ConnectResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "event", kind: "message", T: ProcessEvent },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectResponse {- return new ConnectResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectResponse {- return new ConnectResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectResponse {- return new ConnectResponse().fromJsonString(jsonString, options);- }-- static equals(a: ConnectResponse | PlainMessage<ConnectResponse> | undefined, b: ConnectResponse | PlainMessage<ConnectResponse> | undefined): boolean {- return proto3.util.equals(ConnectResponse, a, b);- }-}+/**+ * Describes the message process.ConnectResponse.+ * Use `create(ConnectResponseSchema)` to create a new message.+ */+export const ConnectResponseSchema: GenMessage<ConnectResponse> = /*@__PURE__*/+ messageDesc(file_process_process, 10);/*** @generated from message process.SendInputRequest*/-export class SendInputRequest extends Message<SendInputRequest> {+export type SendInputRequest = Message<"process.SendInputRequest"> & {/*** @generated from field: process.ProcessSelector process = 1;*/@@ -738,71 +387,32 @@ export class SendInputRequest extends Message<SendInputRequest> {* @generated from field: process.ProcessInput input = 2;*/input?: ProcessInput;+};- constructor(data?: PartialMessage<SendInputRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.SendInputRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "process", kind: "message", T: ProcessSelector },- { no: 2, name: "input", kind: "message", T: ProcessInput },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendInputRequest {- return new SendInputRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendInputRequest {- return new SendInputRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendInputRequest {- return new SendInputRequest().fromJsonString(jsonString, options);- }-- static equals(a: SendInputRequest | PlainMessage<SendInputRequest> | undefined, b: SendInputRequest | PlainMessage<SendInputRequest> | undefined): boolean {- return proto3.util.equals(SendInputRequest, a, b);- }-}+/**+ * Describes the message process.SendInputRequest.+ * Use `create(SendInputRequestSchema)` to create a new message.+ */+export const SendInputRequestSchema: GenMessage<SendInputRequest> = /*@__PURE__*/+ messageDesc(file_process_process, 11);/*** @generated from message process.SendInputResponse*/-export class SendInputResponse extends Message<SendInputResponse> {- constructor(data?: PartialMessage<SendInputResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.SendInputResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendInputResponse {- return new SendInputResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendInputResponse {- return new SendInputResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendInputResponse {- return new SendInputResponse().fromJsonString(jsonString, options);- }-- static equals(a: SendInputResponse | PlainMessage<SendInputResponse> | undefined, b: SendInputResponse | PlainMessage<SendInputResponse> | undefined): boolean {- return proto3.util.equals(SendInputResponse, a, b);- }-}+export type SendInputResponse = Message<"process.SendInputResponse"> & {+};++/**+ * Describes the message process.SendInputResponse.+ * Use `create(SendInputResponseSchema)` to create a new message.+ */+export const SendInputResponseSchema: GenMessage<SendInputResponse> = /*@__PURE__*/+ messageDesc(file_process_process, 12);/*** @generated from message process.ProcessInput*/-export class ProcessInput extends Message<ProcessInput> {+export type ProcessInput = Message<"process.ProcessInput"> & {/*** @generated from oneof process.ProcessInput.input*/@@ -818,41 +428,20 @@ export class ProcessInput extends Message<ProcessInput> {*/value: Uint8Array;case: "pty";- } | { case: undefined; value?: undefined } = { case: undefined };-- constructor(data?: PartialMessage<ProcessInput>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessInput";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "stdin", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "input" },- { no: 2, name: "pty", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "input" },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessInput {- return new ProcessInput().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessInput {- return new ProcessInput().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessInput {- return new ProcessInput().fromJsonString(jsonString, options);- }-- static equals(a: ProcessInput | PlainMessage<ProcessInput> | undefined, b: ProcessInput | PlainMessage<ProcessInput> | undefined): boolean {- return proto3.util.equals(ProcessInput, a, b);- }-}+ } | { case: undefined; value?: undefined };+};++/**+ * Describes the message process.ProcessInput.+ * Use `create(ProcessInputSchema)` to create a new message.+ */+export const ProcessInputSchema: GenMessage<ProcessInput> = /*@__PURE__*/+ messageDesc(file_process_process, 13);/*** @generated from message process.StreamInputRequest*/-export class StreamInputRequest extends Message<StreamInputRequest> {+export type StreamInputRequest = Message<"process.StreamInputRequest"> & {/*** @generated from oneof process.StreamInputRequest.event*/@@ -874,178 +463,80 @@ export class StreamInputRequest extends Message<StreamInputRequest> {*/value: StreamInputRequest_KeepAlive;case: "keepalive";- } | { case: undefined; value?: undefined } = { case: undefined };-- constructor(data?: PartialMessage<StreamInputRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.StreamInputRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "start", kind: "message", T: StreamInputRequest_StartEvent, oneof: "event" },- { no: 2, name: "data", kind: "message", T: StreamInputRequest_DataEvent, oneof: "event" },- { no: 3, name: "keepalive", kind: "message", T: StreamInputRequest_KeepAlive, oneof: "event" },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamInputRequest {- return new StreamInputRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamInputRequest {- return new StreamInputRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamInputRequest {- return new StreamInputRequest().fromJsonString(jsonString, options);- }-- static equals(a: StreamInputRequest | PlainMessage<StreamInputRequest> | undefined, b: StreamInputRequest | PlainMessage<StreamInputRequest> | undefined): boolean {- return proto3.util.equals(StreamInputRequest, a, b);- }-}+ } | { case: undefined; value?: undefined };+};++/**+ * Describes the message process.StreamInputRequest.+ * Use `create(StreamInputRequestSchema)` to create a new message.+ */+export const StreamInputRequestSchema: GenMessage<StreamInputRequest> = /*@__PURE__*/+ messageDesc(file_process_process, 14);/*** @generated from message process.StreamInputRequest.StartEvent*/-export class StreamInputRequest_StartEvent extends Message<StreamInputRequest_StartEvent> {+export type StreamInputRequest_StartEvent = Message<"process.StreamInputRequest.StartEvent"> & {/*** @generated from field: process.ProcessSelector process = 1;*/process?: ProcessSelector;+};- constructor(data?: PartialMessage<StreamInputRequest_StartEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.StreamInputRequest.StartEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "process", kind: "message", T: ProcessSelector },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamInputRequest_StartEvent {- return new StreamInputRequest_StartEvent().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamInputRequest_StartEvent {- return new StreamInputRequest_StartEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamInputRequest_StartEvent {- return new StreamInputRequest_StartEvent().fromJsonString(jsonString, options);- }-- static equals(a: StreamInputRequest_StartEvent | PlainMessage<StreamInputRequest_StartEvent> | undefined, b: StreamInputRequest_StartEvent | PlainMessage<StreamInputRequest_StartEvent> | undefined): boolean {- return proto3.util.equals(StreamInputRequest_StartEvent, a, b);- }-}+/**+ * Describes the message process.StreamInputRequest.StartEvent.+ * Use `create(StreamInputRequest_StartEventSchema)` to create a new message.+ */+export const StreamInputRequest_StartEventSchema: GenMessage<StreamInputRequest_StartEvent> = /*@__PURE__*/+ messageDesc(file_process_process, 14, 0);/*** @generated from message process.StreamInputRequest.DataEvent*/-export class StreamInputRequest_DataEvent extends Message<StreamInputRequest_DataEvent> {+export type StreamInputRequest_DataEvent = Message<"process.StreamInputRequest.DataEvent"> & {/*** @generated from field: process.ProcessInput input = 2;*/input?: ProcessInput;+};- constructor(data?: PartialMessage<StreamInputRequest_DataEvent>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.StreamInputRequest.DataEvent";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 2, name: "input", kind: "message", T: ProcessInput },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamInputRequest_DataEvent {- return new StreamInputRequest_DataEvent().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamInputRequest_DataEvent {- return new StreamInputRequest_DataEvent().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamInputRequest_DataEvent {- return new StreamInputRequest_DataEvent().fromJsonString(jsonString, options);- }-- static equals(a: StreamInputRequest_DataEvent | PlainMessage<StreamInputRequest_DataEvent> | undefined, b: StreamInputRequest_DataEvent | PlainMessage<StreamInputRequest_DataEvent> | undefined): boolean {- return proto3.util.equals(StreamInputRequest_DataEvent, a, b);- }-}+/**+ * Describes the message process.StreamInputRequest.DataEvent.+ * Use `create(StreamInputRequest_DataEventSchema)` to create a new message.+ */+export const StreamInputRequest_DataEventSchema: GenMessage<StreamInputRequest_DataEvent> = /*@__PURE__*/+ messageDesc(file_process_process, 14, 1);/*** @generated from message process.StreamInputRequest.KeepAlive*/-export class StreamInputRequest_KeepAlive extends Message<StreamInputRequest_KeepAlive> {- constructor(data?: PartialMessage<StreamInputRequest_KeepAlive>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.StreamInputRequest.KeepAlive";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamInputRequest_KeepAlive {- return new StreamInputRequest_KeepAlive().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamInputRequest_KeepAlive {- return new StreamInputRequest_KeepAlive().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamInputRequest_KeepAlive {- return new StreamInputRequest_KeepAlive().fromJsonString(jsonString, options);- }-- static equals(a: StreamInputRequest_KeepAlive | PlainMessage<StreamInputRequest_KeepAlive> | undefined, b: StreamInputRequest_KeepAlive | PlainMessage<StreamInputRequest_KeepAlive> | undefined): boolean {- return proto3.util.equals(StreamInputRequest_KeepAlive, a, b);- }-}+export type StreamInputRequest_KeepAlive = Message<"process.StreamInputRequest.KeepAlive"> & {+};++/**+ * Describes the message process.StreamInputRequest.KeepAlive.+ * Use `create(StreamInputRequest_KeepAliveSchema)` to create a new message.+ */+export const StreamInputRequest_KeepAliveSchema: GenMessage<StreamInputRequest_KeepAlive> = /*@__PURE__*/+ messageDesc(file_process_process, 14, 2);/*** @generated from message process.StreamInputResponse*/-export class StreamInputResponse extends Message<StreamInputResponse> {- constructor(data?: PartialMessage<StreamInputResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.StreamInputResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamInputResponse {- return new StreamInputResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamInputResponse {- return new StreamInputResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamInputResponse {- return new StreamInputResponse().fromJsonString(jsonString, options);- }-- static equals(a: StreamInputResponse | PlainMessage<StreamInputResponse> | undefined, b: StreamInputResponse | PlainMessage<StreamInputResponse> | undefined): boolean {- return proto3.util.equals(StreamInputResponse, a, b);- }-}+export type StreamInputResponse = Message<"process.StreamInputResponse"> & {+};++/**+ * Describes the message process.StreamInputResponse.+ * Use `create(StreamInputResponseSchema)` to create a new message.+ */+export const StreamInputResponseSchema: GenMessage<StreamInputResponse> = /*@__PURE__*/+ messageDesc(file_process_process, 15);/*** @generated from message process.SendSignalRequest*/-export class SendSignalRequest extends Message<SendSignalRequest> {+export type SendSignalRequest = Message<"process.SendSignalRequest"> & {/*** @generated from field: process.ProcessSelector process = 1;*/@@ -1054,109 +545,50 @@ export class SendSignalRequest extends Message<SendSignalRequest> {/*** @generated from field: process.Signal signal = 2;*/- signal = Signal.UNSPECIFIED;-- constructor(data?: PartialMessage<SendSignalRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.SendSignalRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "process", kind: "message", T: ProcessSelector },- { no: 2, name: "signal", kind: "enum", T: proto3.getEnumType(Signal) },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendSignalRequest {- return new SendSignalRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendSignalRequest {- return new SendSignalRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendSignalRequest {- return new SendSignalRequest().fromJsonString(jsonString, options);- }-- static equals(a: SendSignalRequest | PlainMessage<SendSignalRequest> | undefined, b: SendSignalRequest | PlainMessage<SendSignalRequest> | undefined): boolean {- return proto3.util.equals(SendSignalRequest, a, b);- }-}+ signal: Signal;+};++/**+ * Describes the message process.SendSignalRequest.+ * Use `create(SendSignalRequestSchema)` to create a new message.+ */+export const SendSignalRequestSchema: GenMessage<SendSignalRequest> = /*@__PURE__*/+ messageDesc(file_process_process, 16);/*** @generated from message process.SendSignalResponse*/-export class SendSignalResponse extends Message<SendSignalResponse> {- constructor(data?: PartialMessage<SendSignalResponse>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.SendSignalResponse";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendSignalResponse {- return new SendSignalResponse().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendSignalResponse {- return new SendSignalResponse().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendSignalResponse {- return new SendSignalResponse().fromJsonString(jsonString, options);- }-- static equals(a: SendSignalResponse | PlainMessage<SendSignalResponse> | undefined, b: SendSignalResponse | PlainMessage<SendSignalResponse> | undefined): boolean {- return proto3.util.equals(SendSignalResponse, a, b);- }-}+export type SendSignalResponse = Message<"process.SendSignalResponse"> & {+};++/**+ * Describes the message process.SendSignalResponse.+ * Use `create(SendSignalResponseSchema)` to create a new message.+ */+export const SendSignalResponseSchema: GenMessage<SendSignalResponse> = /*@__PURE__*/+ messageDesc(file_process_process, 17);/*** @generated from message process.ConnectRequest*/-export class ConnectRequest extends Message<ConnectRequest> {+export type ConnectRequest = Message<"process.ConnectRequest"> & {/*** @generated from field: process.ProcessSelector process = 1;*/process?: ProcessSelector;+};- constructor(data?: PartialMessage<ConnectRequest>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ConnectRequest";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "process", kind: "message", T: ProcessSelector },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectRequest {- return new ConnectRequest().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectRequest {- return new ConnectRequest().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectRequest {- return new ConnectRequest().fromJsonString(jsonString, options);- }-- static equals(a: ConnectRequest | PlainMessage<ConnectRequest> | undefined, b: ConnectRequest | PlainMessage<ConnectRequest> | undefined): boolean {- return proto3.util.equals(ConnectRequest, a, b);- }-}+/**+ * Describes the message process.ConnectRequest.+ * Use `create(ConnectRequestSchema)` to create a new message.+ */+export const ConnectRequestSchema: GenMessage<ConnectRequest> = /*@__PURE__*/+ messageDesc(file_process_process, 18);/*** @generated from message process.ProcessSelector*/-export class ProcessSelector extends Message<ProcessSelector> {+export type ProcessSelector = Message<"process.ProcessSelector"> & {/*** @generated from oneof process.ProcessSelector.selector*/@@ -1172,34 +604,104 @@ export class ProcessSelector extends Message<ProcessSelector> {*/value: string;case: "tag";- } | { case: undefined; value?: undefined } = { case: undefined };-- constructor(data?: PartialMessage<ProcessSelector>) {- super();- proto3.util.initPartial(data, this);- }-- static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "process.ProcessSelector";- static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "pid", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "selector" },- { no: 2, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "selector" },- ]);-- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessSelector {- return new ProcessSelector().fromBinary(bytes, options);- }-- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessSelector {- return new ProcessSelector().fromJson(jsonValue, options);- }-- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessSelector {- return new ProcessSelector().fromJsonString(jsonString, options);- }-- static equals(a: ProcessSelector | PlainMessage<ProcessSelector> | undefined, b: ProcessSelector | PlainMessage<ProcessSelector> | undefined): boolean {- return proto3.util.equals(ProcessSelector, a, b);- }+ } | { case: undefined; value?: undefined };+};++/**+ * Describes the message process.ProcessSelector.+ * Use `create(ProcessSelectorSchema)` to create a new message.+ */+export const ProcessSelectorSchema: GenMessage<ProcessSelector> = /*@__PURE__*/+ messageDesc(file_process_process, 19);++/**+ * @generated from enum process.Signal+ */+export enum Signal {+ /**+ * @generated from enum value: SIGNAL_UNSPECIFIED = 0;+ */+ UNSPECIFIED = 0,++ /**+ * @generated from enum value: SIGNAL_SIGTERM = 15;+ */+ SIGTERM = 15,++ /**+ * @generated from enum value: SIGNAL_SIGKILL = 9;+ */+ SIGKILL = 9,}+/**+ * Describes the enum process.Signal.+ */+export const SignalSchema: GenEnum<Signal> = /*@__PURE__*/+ enumDesc(file_process_process, 0);++/**+ * @generated from service process.Process+ */+export const Process: GenService<{+ /**+ * @generated from rpc process.Process.List+ */+ list: {+ methodKind: "unary";+ input: typeof ListRequestSchema;+ output: typeof ListResponseSchema;+ },+ /**+ * @generated from rpc process.Process.Connect+ */+ connect: {+ methodKind: "server_streaming";+ input: typeof ConnectRequestSchema;+ output: typeof ConnectResponseSchema;+ },+ /**+ * @generated from rpc process.Process.Start+ */+ start: {+ methodKind: "server_streaming";+ input: typeof StartRequestSchema;+ output: typeof StartResponseSchema;+ },+ /**+ * @generated from rpc process.Process.Update+ */+ update: {+ methodKind: "unary";+ input: typeof UpdateRequestSchema;+ output: typeof UpdateResponseSchema;+ },+ /**+ * Client input stream ensures ordering of messages+ *+ * @generated from rpc process.Process.StreamInput+ */+ streamInput: {+ methodKind: "client_streaming";+ input: typeof StreamInputRequestSchema;+ output: typeof StreamInputResponseSchema;+ },+ /**+ * @generated from rpc process.Process.SendInput+ */+ sendInput: {+ methodKind: "unary";+ input: typeof SendInputRequestSchema;+ output: typeof SendInputResponseSchema;+ },+ /**+ * @generated from rpc process.Process.SendSignal+ */+ sendSignal: {+ methodKind: "unary";+ input: typeof SendSignalRequestSchema;+ output: typeof SendSignalResponseSchema;+ },+}> = /*@__PURE__*/+ serviceDesc(file_process_process, 0);+diff --git a/packages/js-sdk/src/sandbox/commands/index.ts b/packages/js-sdk/src/sandbox/commands/index.tsindex 8ba6d4723..edbc0a38b 100644--- a/packages/js-sdk/src/sandbox/commands/index.ts+++ b/packages/js-sdk/src/sandbox/commands/index.ts@@ -1,13 +1,12 @@import {Code,ConnectError,- createPromiseClient,- PromiseClient,+ createClient,+ Client,Transport,} from '@connectrpc/connect'-import { Process as ProcessService } from '../../envd/process/process_connect'-import { Signal } from '../../envd/process/process_pb'+import { Signal, Process as ProcessService } from '../../envd/process/process_pb'import {ConnectionConfig,Username,@@ -115,7 +114,7 @@ export interface ProcessInfo {* Module for starting and interacting with commands in the sandbox.*/export class Commands {- protected readonly rpc: PromiseClient<typeof ProcessService>+ protected readonly rpc: Client<typeof ProcessService>private readonly defaultProcessConnectionTimeout = 60_000 // 60 seconds@@ -123,7 +122,7 @@ export class Commands {transport: Transport,private readonly connectionConfig: ConnectionConfig) {- this.rpc = createPromiseClient(ProcessService, transport)+ this.rpc = createClient(ProcessService, transport)}/**diff --git a/packages/js-sdk/src/sandbox/commands/pty.ts b/packages/js-sdk/src/sandbox/commands/pty.tsindex d0cb0ff59..ee9dd61ea 100644--- a/packages/js-sdk/src/sandbox/commands/pty.ts+++ b/packages/js-sdk/src/sandbox/commands/pty.ts@@ -1,13 +1,12 @@import {Code,ConnectError,- createPromiseClient,- PromiseClient,+ createClient,+ Client,Transport,} from '@connectrpc/connect'-import { Process as ProcessService } from '../../envd/process/process_connect'-import { Signal } from '../../envd/process/process_pb'+import { Signal, Process as ProcessService } from '../../envd/process/process_pb'import {ConnectionConfig,ConnectionOpts,@@ -63,13 +62,13 @@ export interface PtyCreateOpts* Module for interacting with PTYs (pseudo-terminals) in the sandbox.*/export class Pty {- private readonly rpc: PromiseClient<typeof ProcessService>+ private readonly rpc: Client<typeof ProcessService>constructor(private readonly transport: Transport,private readonly connectionConfig: ConnectionConfig) {- this.rpc = createPromiseClient(ProcessService, this.transport)+ this.rpc = createClient(ProcessService, this.transport)}/**diff --git a/packages/js-sdk/src/sandbox/filesystem/index.ts b/packages/js-sdk/src/sandbox/filesystem/index.tsindex 62184d9b8..f65003ae8 100644--- a/packages/js-sdk/src/sandbox/filesystem/index.ts+++ b/packages/js-sdk/src/sandbox/filesystem/index.ts@@ -1,7 +1,7 @@import {- createPromiseClient,+ createClient,Transport,- PromiseClient,+ Client,ConnectError,Code,} from '@connectrpc/connect'@@ -18,8 +18,7 @@ import { handleEnvdApiError, handleWatchDirStartEvent } from '../../envd/api'import { authenticationHeader, handleRpcError } from '../../envd/rpc'import { EnvdApiClient } from '../../envd/api'-import { Filesystem as FilesystemService } from '../../envd/filesystem/filesystem_connect'-import { FileType as FsFileType } from '../../envd/filesystem/filesystem_pb'+import { FileType as FsFileType, Filesystem as FilesystemService } from '../../envd/filesystem/filesystem_pb'import { WatchHandle, FilesystemEvent } from './watchHandle'@@ -97,7 +96,7 @@ export interface WatchOpts extends FilesystemRequestOpts {* Module for interacting with the sandbox filesystem.*/export class Filesystem {- private readonly rpc: PromiseClient<typeof FilesystemService>+ private readonly rpc: Client<typeof FilesystemService>private readonly defaultWatchTimeout = 60_000 // 60 seconds@@ -106,7 +105,7 @@ export class Filesystem {private readonly envdApi: EnvdApiClient,private readonly connectionConfig: ConnectionConfig) {- this.rpc = createPromiseClient(FilesystemService, transport)+ this.rpc = createClient(FilesystemService, transport)}/**@@ -442,8 +441,8 @@ export class Filesystem {const reqTimeout = requestTimeoutMs? setTimeout(() => {- controller.abort()- }, requestTimeoutMs)+ controller.abort()+ }, requestTimeoutMs): undefinedconst events = this.rpc.watchDir(diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2d0f4b328..a547a05d7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -318,14 +318,14 @@ importers:packages/js-sdk:dependencies:'@bufbuild/protobuf':- specifier: ^1.10.0- version: 1.10.0+ specifier: ^2.2.2+ version: 2.2.2'@connectrpc/connect':- specifier: ^1.4.0- version: 1.5.0(@bufbuild/[email protected])+ specifier: 2.0.0-rc.3+ version: 2.0.0-rc.3(@bufbuild/[email protected])'@connectrpc/connect-web':- specifier: ^1.4.0- version: 1.5.0(@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))+ specifier: 2.0.0-rc.3+ version: 2.0.0-rc.3(@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))compare-versions:specifier: ^6.1.0version: 6.1.1@@ -650,6 +650,9 @@ packages:'@bufbuild/[email protected]':resolution: {integrity: sha512-QDdVFLoN93Zjg36NoQPZfsVH9tZew7wKDKyV5qRdj8ntT4wQCOradQjRaTdwMhWUYsgKsvCINKKm87FdEk96Ag==}+ '@bufbuild/[email protected]':+ resolution: {integrity: sha512-UNtPCbrwrenpmrXuRwn9jYpPoweNXj8X5sMvYgsqYyaH8jQ6LfUJSk3dJLnBK+6sfYPrF4iAIo5sd5HQ+tg75A==}+'@bundled-es-modules/[email protected]':resolution: {integrity: sha512-Or6YHg/kamKHpxULAdSqhGqnWFneIXu1NKvvfBBzKGwpVsYuFIQ5aBPHDnnoR3ghW1nvSkALd+EF9iMtY7Vjxw==}@@ -721,11 +724,22 @@ packages:'@bufbuild/protobuf': ^1.10.0'@connectrpc/connect': 1.5.0- '@connectrpc/[email protected]':- resolution: {integrity: sha512-1gGg0M6c2Y3lnr5itis9dNj9r8hbOIuBMqoGSbUy7L7Vjw4MAttjJzJfj9HCDgytGCJkGanYEYI6MQVDijdVQw==}+ '@connectrpc/[email protected]':+ resolution: {integrity: sha512-w88P8Lsn5CCsA7MFRl2e6oLY4J/5toiNtJns/YJrlyQaWOy3RO8pDgkz+iIkG98RPMhj2thuBvsd3Cn4DKKCkw==}+ peerDependencies:+ '@bufbuild/protobuf': ^2.2.0+ '@connectrpc/connect': 2.0.0-rc.3++ '@connectrpc/[email protected]':+ resolution: {integrity: sha512-KchMDNtU4CDTdkyf0qG7ugJ6qHTOR/aI7XebYn3OTCNagaDYWiZUVKgRgwH79yeMkpNgvEUaXSK7wKjaBK9b/Q==}peerDependencies:'@bufbuild/protobuf': ^1.10.0+ '@connectrpc/[email protected]':+ resolution: {integrity: sha512-ARBt64yEyKbanyRETTjcjJuHr2YXorzQo0etyS5+P6oSeW8xEuzajA9g+zDnMcj1hlX2dQE93foIWQGfpru7gQ==}+ peerDependencies:+ '@bufbuild/protobuf': ^2.2.0+'@emotion/[email protected]':resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==}@@ -3068,6 +3082,7 @@ packages:resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==}+ deprecated: package has been renamed to acorn-import-attributespeerDependencies:acorn: ^8@@ -3162,6 +3177,7 @@ packages:resolution: {integrity: sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==}engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ deprecated: This package is no longer supported.resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}@@ -4154,6 +4170,7 @@ packages:resolution: {integrity: sha512-jw03ENfm6VJI0jA9U+8H5zfl5b+FvuU3YYvZRdZHOlU2ggJkxrlkJH4HcDrZpj6YwD8kuYqvQM8LyesoazrSOQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.hasBin: true@@ -4410,6 +4427,7 @@ packages:resolution: {integrity: sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==}engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ deprecated: This package is no longer supported.resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}@@ -4474,6 +4492,7 @@ packages:resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}+ deprecated: Glob versions prior to v9 are no longer supportedresolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}@@ -4716,6 +4735,7 @@ packages:resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}+ deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}@@ -5863,6 +5883,7 @@ packages:resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==}engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ deprecated: This package is no longer supported.resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}@@ -6455,6 +6476,7 @@ packages:resolution: {integrity: sha512-AEtWXYfopBj2z5N5PbkAOeNHRPUg5q+Nen7QLxV8M2zJq1ym6/lCz3fYNTCXe19puu2d06jfHhrP7v/S2PtMMw==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ deprecated: This package is no longer supported. Please use @npmcli/package-json instead.resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}@@ -8252,6 +8274,8 @@ snapshots:'@bufbuild/[email protected]': {}+ '@bufbuild/[email protected]': {}+'@bundled-es-modules/[email protected]':dependencies:cookie: 0.5.0@@ -8417,15 +8441,24 @@ snapshots:'@colors/[email protected]':optional: true- '@connectrpc/[email protected](@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))':+ '@connectrpc/[email protected](@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))':dependencies:'@bufbuild/protobuf': 1.10.0- '@connectrpc/connect': 1.5.0(@bufbuild/[email protected])+ '@connectrpc/connect': 1.6.1(@bufbuild/[email protected])- '@connectrpc/[email protected](@bufbuild/[email protected])':+ '@connectrpc/[email protected](@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))':+ dependencies:+ '@bufbuild/protobuf': 2.2.2+ '@connectrpc/connect': 2.0.0-rc.3(@bufbuild/[email protected])++ '@connectrpc/[email protected](@bufbuild/[email protected])':dependencies:'@bufbuild/protobuf': 1.10.0+ '@connectrpc/[email protected](@bufbuild/[email protected])':+ dependencies:+ '@bufbuild/protobuf': 2.2.2+'@emotion/[email protected]':dependencies:'@emotion/memoize': 0.7.4@@ -11957,8 +11990,8 @@ snapshots:dependencies:'@bufbuild/protobuf': 1.10.0- '@connectrpc/connect': 1.5.0(@bufbuild/[email protected])- '@connectrpc/connect-web': 1.5.0(@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))+ '@connectrpc/connect': 1.6.1(@bufbuild/[email protected])+ '@connectrpc/connect-web': 1.5.0(@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))compare-versions: 6.1.1openapi-fetch: 0.9.8platform: 1.3.6@@ -12250,16 +12283,6 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):- dependencies:- debug: 3.2.7- optionalDependencies:- '@typescript-eslint/parser': 6.7.2([email protected])([email protected])- eslint: 8.57.1- eslint-import-resolver-node: 0.3.9- transitivePeerDependencies:- - supports-color-[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected]):dependencies:debug: 3.2.7@@ -12281,7 +12304,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.1eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])has: 1.0.3is-core-module: 2.13.0is-glob: 4.0.3