@swipt/cli 0.1.0-nightly.79 → 0.1.0-nightly.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js.map +1 -1
- package/dist/connection.js +17 -17
- package/dist/connection.js.map +1 -1
- package/dist/device.js +4 -4
- package/dist/device.js.map +1 -1
- package/dist/output.js +9 -9
- package/dist/output.js.map +1 -1
- package/dist/proto/common_pb.js +3 -23
- package/dist/proto/common_pb.js.map +1 -1
- package/dist/proto/logs_pb.js +1 -1
- package/dist/proto/logs_pb.js.map +1 -1
- package/dist/proto/repl_pb.js +1 -1
- package/dist/proto/repl_pb.js.map +1 -1
- package/dist/proto/swiplets_pb.js +3 -11
- package/dist/proto/swiplets_pb.js.map +1 -1
- package/dist/proto/system_pb.js +1 -1
- package/dist/proto/system_pb.js.map +1 -1
- package/dist/sideload.js +3 -3
- package/dist/sideload.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common_pb.js","names":[],"sources":["../../src/proto/common_pb.js"],"sourcesContent":["// @generated by protoc-gen-es v2.16.0 with parameter \"target=js,import_extension=.js\"\n// @generated from file common.proto (package swipt, syntax proto3)\n/* eslint-disable */\n\nimport { enumDesc, fileDesc, messageDesc, tsEnum } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_google_protobuf_struct, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\n\n/**\n * Describes the file common.proto.\n */\nexport const file_common = /*@__PURE__*/\n fileDesc(\"Cgxjb21tb24ucHJvdG8SBXN3aXB0InIKCExvZ0VudHJ5EigKBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEh4KBWxldmVsGAIgASgOMg8uc3dpcHQuTG9nTGV2ZWwSCwoDdGFnGAMgASgJEg8KB21lc3NhZ2UYBCABKAkiZwoIRmlsZUluZm8SDAoEcGF0aBgBIAEoCRIRCglkaXJlY3RvcnkY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kVDVElPTl9TVEFURV9QUkVQQVJJTkcQAxIjCh9ERVZJQ0VfQ09OTkVDVElPTl9TVEFURV9SVU5OSU5HEAQSIgoeREVWSUNFX0NPTk5FQ1RJT05fU1RBVEVfRkFJTEVEEAUq9gMKF0RldmljZUNvbm5lY3Rpb25Qcm9ibGVtEikKJURFVklDRV9DT05ORUNUSU9OX1BST0JMRU1fVU5TUEVDSUZJRUQQABIpCiVERVZJQ0VfQ09OTkVDVElPTl9QUk9CTEVNX1VOUkVBQ0hBQkxFEAESLgoqREVWSUNFX0NPTk5FQ1RJT05fUFJPQkxFTV9QQUlSSU5HX1JFSkVDVEVEEAISMAosREVWSUNFX0NPTk5FQ1RJT05fUFJPQkxFTV9ERVZFTE9QRVJfTU9ERV9PRkYQAxIwCixERVZJQ0VfQ09OTkVDVElPTl9QUk9CTEVNX0RJU0tfSU1BR0VfTUlTU0lORxAEEjUKMURFVklDRV9DT05ORUNUSU9OX1BST0JMRU1fRElTS19JTUFHRV9NT1VOVF9GQUlMRUQQBRIwCixERVZJQ0VfQ09OTkVDVElPTl9QUk9CTEVNX0RFVklDRV9VTlNVUFBPUlRFRBAGEisKJ0RFVklDRV9DT05ORUNUSU9OX1BST0JMRU1fU0NSRUVOX0lOX1VTRRAHEjYKMkRFVklDRV9DT05ORUNUSU9OX1BST0JMRU1fVlBOX1BFRVJfQUREUkVTU19NSVNTSU5HEAgSIwofREVWSUNFX0NPTk5FQ1RJT05fUFJPQkxFTV9PVEhFUhAJQjJaMGdpdGh1Yi5jb20vc3dpcHQtYXV0b21hdGlvbi9zd2lwdC9pbnRlcm5hbC9wcm90b2IGcHJvdG8z\", [file_google_protobuf_struct, file_google_protobuf_timestamp]);\n\n/**\n * Describes the message swipt.LogEntry.\n * Use `create(LogEntrySchema)` to create a new message.\n */\nexport const LogEntrySchema = /*@__PURE__*/\n messageDesc(file_common, 0);\n\n/**\n * Describes the message swipt.FileInfo.\n * Use `create(FileInfoSchema)` to create a new message.\n */\nexport const FileInfoSchema = /*@__PURE__*/\n messageDesc(file_common, 1);\n\n/**\n * Describes the message swipt.FileChunk.\n * Use `create(FileChunkSchema)` to create a new message.\n */\nexport const FileChunkSchema = /*@__PURE__*/\n messageDesc(file_common, 2);\n\n/**\n * Describes the message swipt.StackFrame.\n * Use `create(StackFrameSchema)` to create a new message.\n */\nexport const StackFrameSchema = /*@__PURE__*/\n messageDesc(file_common, 3);\n\n/**\n * Describes the message swipt.ScriptError.\n * Use `create(ScriptErrorSchema)` to create a new message.\n */\nexport const ScriptErrorSchema = /*@__PURE__*/\n messageDesc(file_common, 4);\n\n/**\n * Describes the message swipt.ActionResult.\n * Use `create(ActionResultSchema)` to create a new message.\n */\nexport const ActionResultSchema = /*@__PURE__*/\n messageDesc(file_common, 5);\n\n/**\n * Describes the message swipt.DeviceConnection.\n * Use `create(DeviceConnectionSchema)` to create a new message.\n */\nexport const DeviceConnectionSchema = /*@__PURE__*/\n messageDesc(file_common, 6);\n\n/**\n * Describes the enum swipt.LogLevel.\n */\nexport const LogLevelSchema = /*@__PURE__*/\n enumDesc(file_common, 0);\n\n/**\n * @generated from enum swipt.LogLevel\n */\nexport const LogLevel = /*@__PURE__*/\n tsEnum(LogLevelSchema);\n\n/**\n * Describes the enum swipt.DeviceConnectionState.\n */\nexport const DeviceConnectionStateSchema = /*@__PURE__*/\n enumDesc(file_common, 1);\n\n/**\n * @generated from enum swipt.DeviceConnectionState\n */\nexport const DeviceConnectionState = /*@__PURE__*/\n tsEnum(DeviceConnectionStateSchema);\n\n/**\n * Describes the enum swipt.DeviceConnectionProblem.\n */\nexport const DeviceConnectionProblemSchema = /*@__PURE__*/\n enumDesc(file_common, 2);\n\n/**\n * @generated from enum swipt.DeviceConnectionProblem\n */\nexport const DeviceConnectionProblem = /*@__PURE__*/\n tsEnum(DeviceConnectionProblemSchema);\n\n"],"mappings":";;;;;;AAUA,MAAa,cACX,uBAAS,gpEAAgpE,CAAC,6BAA6B,8BAA8B,CAAC;;;;AAsDxtE,MAAa,iBACX,uBAAS,aAAa,CAAC;;;;AAKzB,MAAa,WACX,qBAAO,cAAc;;;;AAKvB,MAAa,8BACX,uBAAS,aAAa,CAAC;;;;AAKzB,MAAa,wBACX,qBAAO,2BAA2B;;;;AAKpC,MAAa,gCACX,uBAAS,aAAa,CAAC;;;;AAKzB,MAAa,0BACX,qBAAO,6BAA6B"}
|
|
1
|
+
{"version":3,"file":"common_pb.js","names":[],"sources":["../../src/proto/common_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.16.0 with parameter \"target=ts\"\n// @generated from file common.proto (package swipt, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp, Value } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_struct, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file common.proto.\n */\nexport const file_common: GenFile = /*@__PURE__*/\n fileDesc(\"Cgxjb21tb24ucHJvdG8SBXN3aXB0InIKCExvZ0VudHJ5EigKBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEh4KBWxldmVsGAIgASgOMg8uc3dpcHQuTG9nTGV2ZWwSCwoDdGFnGAMgASgJEg8KB21lc3NhZ2UYBCABKAkiZwoIRmlsZUluZm8SDAoEcGF0aBgBIAEoCRIRCglkaXJlY3RvcnkYAiABKAgSDAoEc2l6ZRgDIAEoAxIsCghtb2RpZmllZBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiNwoJRmlsZUNodW5rEgwKBHBhdGgYASABKAkSDgoGb2Zmc2V0GAIgASgDEgwKBGRhdGEYAyABKAwiSgoKU3RhY2tGcmFtZRIQCghmdW5jdGlvbhgBIAEoCRIMCgRmaWxlGAIgASgJEgwKBGxpbmU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fQ09OTkVDVElPTl9QUk9CTEVNX1VOUkVBQ0hBQkxFEAESLgoqREVWSUNFX0NPTk5FQ1RJT05fUFJPQkxFTV9QQUlSSU5HX1JFSkVDVEVEEAISMAosREVWSUNFX0NPTk5FQ1RJT05fUFJPQkxFTV9ERVZFTE9QRVJfTU9ERV9PRkYQAxIwCixERVZJQ0VfQ09OTkVDVElPTl9QUk9CTEVNX0RJU0tfSU1BR0VfTUlTU0lORxAEEjUKMURFVklDRV9DT05ORUNUSU9OX1BST0JMRU1fRElTS19JTUFHRV9NT1VOVF9GQUlMRUQQBRIwCixERVZJQ0VfQ09OTkVDVElPTl9QUk9CTEVNX0RFVklDRV9VTlNVUFBPUlRFRBAGEisKJ0RFVklDRV9DT05ORUNUSU9OX1BST0JMRU1fU0NSRUVOX0lOX1VTRRAHEjYKMkRFVklDRV9DT05ORUNUSU9OX1BST0JMRU1fVlBOX1BFRVJfQUREUkVTU19NSVNTSU5HEAgSIwofREVWSUNFX0NPTk5FQ1RJT05fUFJPQkxFTV9PVEhFUhAJQjJaMGdpdGh1Yi5jb20vc3dpcHQtYXV0b21hdGlvbi9zd2lwdC9pbnRlcm5hbC9wcm90b2IGcHJvdG8z\", [file_google_protobuf_struct, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message swipt.LogEntry\n */\nexport type LogEntry = Message<\"swipt.LogEntry\"> & {\n /**\n * @generated from field: google.protobuf.Timestamp time = 1;\n */\n time?: Timestamp | undefined;\n\n /**\n * @generated from field: swipt.LogLevel level = 2;\n */\n level: LogLevel;\n\n /**\n * @generated from field: string tag = 3;\n */\n tag: string;\n\n /**\n * @generated from field: string message = 4;\n */\n message: string;\n};\n\n/**\n * Describes the message swipt.LogEntry.\n * Use `create(LogEntrySchema)` to create a new message.\n */\nexport const LogEntrySchema: GenMessage<LogEntry> = /*@__PURE__*/\n messageDesc(file_common, 0);\n\n/**\n * @generated from message swipt.FileInfo\n */\nexport type FileInfo = Message<\"swipt.FileInfo\"> & {\n /**\n * @generated from field: string path = 1;\n */\n path: string;\n\n /**\n * @generated from field: bool directory = 2;\n */\n directory: boolean;\n\n /**\n * @generated from field: int64 size = 3;\n */\n size: bigint;\n\n /**\n * @generated from field: google.protobuf.Timestamp modified = 4;\n */\n modified?: Timestamp | undefined;\n};\n\n/**\n * Describes the message swipt.FileInfo.\n * Use `create(FileInfoSchema)` to create a new message.\n */\nexport const FileInfoSchema: GenMessage<FileInfo> = /*@__PURE__*/\n messageDesc(file_common, 1);\n\n/**\n * @generated from message swipt.FileChunk\n */\nexport type FileChunk = Message<\"swipt.FileChunk\"> & {\n /**\n * @generated from field: string path = 1;\n */\n path: string;\n\n /**\n * @generated from field: int64 offset = 2;\n */\n offset: bigint;\n\n /**\n * @generated from field: bytes data = 3;\n */\n data: Uint8Array;\n};\n\n/**\n * Describes the message swipt.FileChunk.\n * Use `create(FileChunkSchema)` to create a new message.\n */\nexport const FileChunkSchema: GenMessage<FileChunk> = /*@__PURE__*/\n messageDesc(file_common, 2);\n\n/**\n * @generated from message swipt.StackFrame\n */\nexport type StackFrame = Message<\"swipt.StackFrame\"> & {\n /**\n * @generated from field: string function = 1;\n */\n function: string;\n\n /**\n * @generated from field: string file = 2;\n */\n file: string;\n\n /**\n * @generated from field: uint32 line = 3;\n */\n line: number;\n\n /**\n * @generated from field: uint32 column = 4;\n */\n column: number;\n};\n\n/**\n * Describes the message swipt.StackFrame.\n * Use `create(StackFrameSchema)` to create a new message.\n */\nexport const StackFrameSchema: GenMessage<StackFrame> = /*@__PURE__*/\n messageDesc(file_common, 3);\n\n/**\n * @generated from message swipt.ScriptError\n */\nexport type ScriptError = Message<\"swipt.ScriptError\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * @generated from field: repeated swipt.StackFrame stack = 4;\n */\n stack: StackFrame[];\n};\n\n/**\n * Describes the message swipt.ScriptError.\n * Use `create(ScriptErrorSchema)` to create a new message.\n */\nexport const ScriptErrorSchema: GenMessage<ScriptError> = /*@__PURE__*/\n messageDesc(file_common, 4);\n\n/**\n * @generated from message swipt.ActionResult\n */\nexport type ActionResult = Message<\"swipt.ActionResult\"> & {\n /**\n * @generated from oneof swipt.ActionResult.outcome\n */\n outcome: {\n /**\n * @generated from field: google.protobuf.Value output = 1;\n */\n value: Value;\n case: \"output\";\n } | {\n /**\n * @generated from field: swipt.ScriptError error = 2;\n */\n value: ScriptError;\n case: \"error\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message swipt.ActionResult.\n * Use `create(ActionResultSchema)` to create a new message.\n */\nexport const ActionResultSchema: GenMessage<ActionResult> = /*@__PURE__*/\n messageDesc(file_common, 5);\n\n/**\n * @generated from message swipt.DeviceConnection\n */\nexport type DeviceConnection = Message<\"swipt.DeviceConnection\"> & {\n /**\n * @generated from field: swipt.DeviceConnectionState state = 1;\n */\n state: DeviceConnectionState;\n\n /**\n * @generated from field: swipt.DeviceConnectionProblem problem = 2;\n */\n problem: DeviceConnectionProblem;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n};\n\n/**\n * Describes the message swipt.DeviceConnection.\n * Use `create(DeviceConnectionSchema)` to create a new message.\n */\nexport const DeviceConnectionSchema: GenMessage<DeviceConnection> = /*@__PURE__*/\n messageDesc(file_common, 6);\n\n/**\n * @generated from enum swipt.LogLevel\n */\nexport enum LogLevel {\n /**\n * @generated from enum value: LOG_LEVEL_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: LOG_LEVEL_ERROR = 1;\n */\n ERROR = 1,\n\n /**\n * @generated from enum value: LOG_LEVEL_WARN = 2;\n */\n WARN = 2,\n\n /**\n * @generated from enum value: LOG_LEVEL_INFO = 3;\n */\n INFO = 3,\n\n /**\n * @generated from enum value: LOG_LEVEL_DEBUG = 4;\n */\n DEBUG = 4,\n}\n\n/**\n * Describes the enum swipt.LogLevel.\n */\nexport const LogLevelSchema: GenEnum<LogLevel> = /*@__PURE__*/\n enumDesc(file_common, 0);\n\n/**\n * @generated from enum swipt.DeviceConnectionState\n */\nexport enum DeviceConnectionState {\n /**\n * @generated from enum value: DEVICE_CONNECTION_STATE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_STATE_STOPPED = 1;\n */\n STOPPED = 1,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_STATE_CONNECTING = 2;\n */\n CONNECTING = 2,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_STATE_PREPARING = 3;\n */\n PREPARING = 3,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_STATE_RUNNING = 4;\n */\n RUNNING = 4,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_STATE_FAILED = 5;\n */\n FAILED = 5,\n}\n\n/**\n * Describes the enum swipt.DeviceConnectionState.\n */\nexport const DeviceConnectionStateSchema: GenEnum<DeviceConnectionState> = /*@__PURE__*/\n enumDesc(file_common, 1);\n\n/**\n * @generated from enum swipt.DeviceConnectionProblem\n */\nexport enum DeviceConnectionProblem {\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_UNREACHABLE = 1;\n */\n UNREACHABLE = 1,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_PAIRING_REJECTED = 2;\n */\n PAIRING_REJECTED = 2,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_DEVELOPER_MODE_OFF = 3;\n */\n DEVELOPER_MODE_OFF = 3,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_DISK_IMAGE_MISSING = 4;\n */\n DISK_IMAGE_MISSING = 4,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_DISK_IMAGE_MOUNT_FAILED = 5;\n */\n DISK_IMAGE_MOUNT_FAILED = 5,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_DEVICE_UNSUPPORTED = 6;\n */\n DEVICE_UNSUPPORTED = 6,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_SCREEN_IN_USE = 7;\n */\n SCREEN_IN_USE = 7,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_VPN_PEER_ADDRESS_MISSING = 8;\n */\n VPN_PEER_ADDRESS_MISSING = 8,\n\n /**\n * @generated from enum value: DEVICE_CONNECTION_PROBLEM_OTHER = 9;\n */\n OTHER = 9,\n}\n\n/**\n * Describes the enum swipt.DeviceConnectionProblem.\n */\nexport const DeviceConnectionProblemSchema: GenEnum<DeviceConnectionProblem> = /*@__PURE__*/\n enumDesc(file_common, 2);\n\n"],"mappings":";;;;;;AAaA,MAAa,cACX,uBAAS,gpEAAgpE,CAAC,6BAA6B,8BAA8B,CAAC;;;;AAiPxtE,MAAa,iBACX,uBAAS,aAAa,CAAC"}
|
package/dist/proto/logs_pb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { file_common } from "./common_pb.js";
|
|
2
2
|
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
// src/proto/logs_pb.
|
|
4
|
+
// src/proto/logs_pb.ts
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file logs.proto.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs_pb.js","names":[],"sources":["../../src/proto/logs_pb.
|
|
1
|
+
{"version":3,"file":"logs_pb.js","names":[],"sources":["../../src/proto/logs_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.16.0 with parameter \"target=ts\"\n// @generated from file logs.proto (package swipt, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { LogEntry, LogLevel } from \"./common_pb\";\nimport { file_common } from \"./common_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file logs.proto.\n */\nexport const file_logs: GenFile = /*@__PURE__*/\n fileDesc(\"Cgpsb2dzLnByb3RvEgVzd2lwdCKOAQoPUmVhZExvZ3NSZXF1ZXN0Eh4KBWxldmVsGAEgASgOMg8uc3dpcHQuTG9nTGV2ZWwSEgoKc3dpcGxldF9pZBgCIAEoCRIpCgVzaW5jZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDAoEdGFpbBgEIAEoDRIOCgZmb2xsb3cYBSABKAgiMgoQUmVhZExvZ3NSZXNwb25zZRIeCgVlbnRyeRgBIAEoCzIPLnN3aXB0LkxvZ0VudHJ5MksKCkxvZ1NlcnZpY2USPQoIUmVhZExvZ3MSFi5zd2lwdC5SZWFkTG9nc1JlcXVlc3QaFy5zd2lwdC5SZWFkTG9nc1Jlc3BvbnNlMAFCMlowZ2l0aHViLmNvbS9zd2lwdC1hdXRvbWF0aW9uL3N3aXB0L2ludGVybmFsL3Byb3RvYgZwcm90bzM\", [file_google_protobuf_timestamp, file_common]);\n\n/**\n * @generated from message swipt.ReadLogsRequest\n */\nexport type ReadLogsRequest = Message<\"swipt.ReadLogsRequest\"> & {\n /**\n * @generated from field: swipt.LogLevel level = 1;\n */\n level: LogLevel;\n\n /**\n * @generated from field: string swiplet_id = 2;\n */\n swipletId: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp since = 3;\n */\n since?: Timestamp | undefined;\n\n /**\n * @generated from field: uint32 tail = 4;\n */\n tail: number;\n\n /**\n * @generated from field: bool follow = 5;\n */\n follow: boolean;\n};\n\n/**\n * Describes the message swipt.ReadLogsRequest.\n * Use `create(ReadLogsRequestSchema)` to create a new message.\n */\nexport const ReadLogsRequestSchema: GenMessage<ReadLogsRequest> = /*@__PURE__*/\n messageDesc(file_logs, 0);\n\n/**\n * @generated from message swipt.ReadLogsResponse\n */\nexport type ReadLogsResponse = Message<\"swipt.ReadLogsResponse\"> & {\n /**\n * @generated from field: swipt.LogEntry entry = 1;\n */\n entry?: LogEntry | undefined;\n};\n\n/**\n * Describes the message swipt.ReadLogsResponse.\n * Use `create(ReadLogsResponseSchema)` to create a new message.\n */\nexport const ReadLogsResponseSchema: GenMessage<ReadLogsResponse> = /*@__PURE__*/\n messageDesc(file_logs, 1);\n\n/**\n * @generated from service swipt.LogService\n */\nexport const LogService: GenService<{\n /**\n * @generated from rpc swipt.LogService.ReadLogs\n */\n readLogs: {\n methodKind: \"server_streaming\";\n input: typeof ReadLogsRequestSchema;\n output: typeof ReadLogsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_logs, 0);\n\n"],"mappings":";;;;;;;AAeA,MAAa,YACX,uBAAS,2dAA2d,CAAC,gCAAgC,WAAW,CAAC;;;;AA2DnhB,MAAa,aAUX,0BAAY,WAAW,CAAC"}
|
package/dist/proto/repl_pb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { file_common } from "./common_pb.js";
|
|
2
2
|
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
// src/proto/repl_pb.
|
|
4
|
+
// src/proto/repl_pb.ts
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file repl.proto.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl_pb.js","names":[],"sources":["../../src/proto/repl_pb.
|
|
1
|
+
{"version":3,"file":"repl_pb.js","names":[],"sources":["../../src/proto/repl_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.16.0 with parameter \"target=ts\"\n// @generated from file repl.proto (package swipt, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { EmptySchema } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty } from \"@bufbuild/protobuf/wkt\";\nimport type { LogLevel, ScriptError } from \"./common_pb\";\nimport { file_common } from \"./common_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file repl.proto.\n */\nexport const file_repl: GenFile = /*@__PURE__*/\n fileDesc(\"CgpyZXBsLnByb3RvEgVzd2lwdCJRCg5FeGVjdXRlUmVxdWVzdBIMCgRjb2RlGAEgASgJEhIKCnRpbWVvdXRfbXMYAiABKA0SDAoEYXJncxgDIAMoCRIPCgdwcm9ncmFtGAQgASgIIj0KDUNvbnNvbGVPdXRwdXQSHgoFbGV2ZWwYASABKA4yDy5zd2lwdC5Mb2dMZXZlbBIMCgR0ZXh0GAIgASgJIikKC1NjcmlwdFZhbHVlEgwKBGpzb24YASABKAkSDAoEdGV4dBgCIAEoCSKdAQoPRXhlY3V0ZVJlc3BvbnNlEicKB2NvbnNvbGUYASABKAsyFC5zd2lwdC5Db25zb2xlT3V0cHV0SAASIwoFdmFsdWUYAiABKAsyEi5zd2lwdC5TY3JpcHRWYWx1ZUgAEg8KBWltYWdlGAMgASgMSAASIwoFZXJyb3IYBCABKAsyEi5zd2lwdC5TY3JpcHRFcnJvckgAQgYKBHBhcnQiLQoXR2V0RGVjbGFyYXRpb25zUmVzcG9uc2USEgoKdHlwZXNjcmlwdBgBIAEoCTLNAQoLUkVQTFNlcnZpY2USOgoHRXhlY3V0ZRIVLnN3aXB0LkV4ZWN1dGVSZXF1ZXN0GhYuc3dpcHQuRXhlY3V0ZVJlc3BvbnNlMAESNwoFUmVzZXQSFi5nb29nbGUucHJvdG9idWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHkSSQoPR2V0RGVjbGFyYXRpb25zEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gh4uc3dpcHQuR2V0RGVjbGFyYXRpb25zUmVzcG9uc2VCMlowZ2l0aHViLmNvbS9zd2lwdC1hdXRvbWF0aW9uL3N3aXB0L2ludGVybmFsL3Byb3RvYgZwcm90bzM\", [file_google_protobuf_empty, file_common]);\n\n/**\n * @generated from message swipt.ExecuteRequest\n */\nexport type ExecuteRequest = Message<\"swipt.ExecuteRequest\"> & {\n /**\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * @generated from field: uint32 timeout_ms = 2;\n */\n timeoutMs: number;\n\n /**\n * @generated from field: repeated string args = 3;\n */\n args: string[];\n\n /**\n * @generated from field: bool program = 4;\n */\n program: boolean;\n};\n\n/**\n * Describes the message swipt.ExecuteRequest.\n * Use `create(ExecuteRequestSchema)` to create a new message.\n */\nexport const ExecuteRequestSchema: GenMessage<ExecuteRequest> = /*@__PURE__*/\n messageDesc(file_repl, 0);\n\n/**\n * @generated from message swipt.ConsoleOutput\n */\nexport type ConsoleOutput = Message<\"swipt.ConsoleOutput\"> & {\n /**\n * @generated from field: swipt.LogLevel level = 1;\n */\n level: LogLevel;\n\n /**\n * @generated from field: string text = 2;\n */\n text: string;\n};\n\n/**\n * Describes the message swipt.ConsoleOutput.\n * Use `create(ConsoleOutputSchema)` to create a new message.\n */\nexport const ConsoleOutputSchema: GenMessage<ConsoleOutput> = /*@__PURE__*/\n messageDesc(file_repl, 1);\n\n/**\n * @generated from message swipt.ScriptValue\n */\nexport type ScriptValue = Message<\"swipt.ScriptValue\"> & {\n /**\n * @generated from field: string json = 1;\n */\n json: string;\n\n /**\n * @generated from field: string text = 2;\n */\n text: string;\n};\n\n/**\n * Describes the message swipt.ScriptValue.\n * Use `create(ScriptValueSchema)` to create a new message.\n */\nexport const ScriptValueSchema: GenMessage<ScriptValue> = /*@__PURE__*/\n messageDesc(file_repl, 2);\n\n/**\n * @generated from message swipt.ExecuteResponse\n */\nexport type ExecuteResponse = Message<\"swipt.ExecuteResponse\"> & {\n /**\n * @generated from oneof swipt.ExecuteResponse.part\n */\n part: {\n /**\n * @generated from field: swipt.ConsoleOutput console = 1;\n */\n value: ConsoleOutput;\n case: \"console\";\n } | {\n /**\n * @generated from field: swipt.ScriptValue value = 2;\n */\n value: ScriptValue;\n case: \"value\";\n } | {\n /**\n * @generated from field: bytes image = 3;\n */\n value: Uint8Array;\n case: \"image\";\n } | {\n /**\n * @generated from field: swipt.ScriptError error = 4;\n */\n value: ScriptError;\n case: \"error\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message swipt.ExecuteResponse.\n * Use `create(ExecuteResponseSchema)` to create a new message.\n */\nexport const ExecuteResponseSchema: GenMessage<ExecuteResponse> = /*@__PURE__*/\n messageDesc(file_repl, 3);\n\n/**\n * @generated from message swipt.GetDeclarationsResponse\n */\nexport type GetDeclarationsResponse = Message<\"swipt.GetDeclarationsResponse\"> & {\n /**\n * @generated from field: string typescript = 1;\n */\n typescript: string;\n};\n\n/**\n * Describes the message swipt.GetDeclarationsResponse.\n * Use `create(GetDeclarationsResponseSchema)` to create a new message.\n */\nexport const GetDeclarationsResponseSchema: GenMessage<GetDeclarationsResponse> = /*@__PURE__*/\n messageDesc(file_repl, 4);\n\n/**\n * @generated from service swipt.REPLService\n */\nexport const REPLService: GenService<{\n /**\n * @generated from rpc swipt.REPLService.Execute\n */\n execute: {\n methodKind: \"server_streaming\";\n input: typeof ExecuteRequestSchema;\n output: typeof ExecuteResponseSchema;\n },\n /**\n * @generated from rpc swipt.REPLService.Reset\n */\n reset: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc swipt.REPLService.GetDeclarations\n */\n getDeclarations: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof GetDeclarationsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_repl, 0);\n\n"],"mappings":";;;;;;;AAeA,MAAa,YACX,uBAAS,m5BAAm5B,CAAC,4BAA4B,WAAW,CAAC;;;;AA2Iv8B,MAAa,cA0BX,0BAAY,WAAW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { file_common } from "./common_pb.js";
|
|
2
|
-
import {
|
|
2
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
// src/proto/swiplets_pb.
|
|
4
|
+
// src/proto/swiplets_pb.ts
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file swiplets.proto.
|
|
7
7
|
*/
|
|
@@ -12,17 +12,9 @@ const file_swiplets = /*@__PURE__*/ fileDesc("Cg5zd2lwbGV0cy5wcm90bxIFc3dpcHQivg
|
|
|
12
12
|
file_common
|
|
13
13
|
]);
|
|
14
14
|
/**
|
|
15
|
-
* Describes the enum swipt.ServiceStatus.
|
|
16
|
-
*/
|
|
17
|
-
const ServiceStatusSchema = /*@__PURE__*/ enumDesc(file_swiplets, 0);
|
|
18
|
-
/**
|
|
19
|
-
* @generated from enum swipt.ServiceStatus
|
|
20
|
-
*/
|
|
21
|
-
const ServiceStatus = /*@__PURE__*/ tsEnum(ServiceStatusSchema);
|
|
22
|
-
/**
|
|
23
15
|
* @generated from service swipt.SwipletService
|
|
24
16
|
*/
|
|
25
17
|
const SwipletService = /*@__PURE__*/ serviceDesc(file_swiplets, 0);
|
|
26
|
-
export {
|
|
18
|
+
export { SwipletService, file_swiplets };
|
|
27
19
|
|
|
28
20
|
//# sourceMappingURL=swiplets_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swiplets_pb.js","names":[],"sources":["../../src/proto/swiplets_pb.js"],"sourcesContent":["// @generated by protoc-gen-es v2.16.0 with parameter \"target=js,import_extension=.js\"\n// @generated from file swiplets.proto (package swipt, syntax proto3)\n/* eslint-disable */\n\nimport { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_common } from \"./common_pb.js\";\n\n/**\n * Describes the file swiplets.proto.\n */\nexport const file_swiplets = /*@__PURE__*/\n fileDesc(\"Cg5zd2lwbGV0cy5wcm90bxIFc3dpcHQivgEKDVN3aXBsZXRBY3Rpb24SDAoEbmFtZRgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRIcChRleHBvc2VkX3RvX3Nob3J0Y3V0cxgEIAEoCBItCgxpbnB1dF9zY2hlbWEYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Ei4KDW91dHB1dF9zY2hlbWEYBiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0IpMBCgxTZXJ2aWNlU3RhdGUSDwoHZW5hYmxlZBgBIAEoCBIkCgZzdGF0dXMYAiABKA4yFC5zd2lwdC5TZXJ2aWNlU3RhdHVzEiEKBWVycm9yGAMgASgLMhIuc3dpcHQuU2NyaXB0RXJyb3ISKQoFc2luY2UYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIqcBCgdTd2lwbGV0EgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJEg8KB3ZlcnNpb24YAyABKAkSDgoGaGFzX3VpGAQgASgIEhMKC2hhc19zZXJ2aWNlGAUgASgIEiQKB3NlcnZpY2UYBiABKAsyEy5zd2lwdC5TZXJ2aWNlU3RhdGUSJQoHYWN0aW9ucxgHIAMoCzIULnN3aXB0LlN3aXBsZXRBY3Rpb24iOAoUTGlzdFN3aXBsZXRzUmVzcG9uc2USIAoIc3dpcGxldHMYASADKAsyDi5zd2lwdC5Td2lwbGV0Il4KEUNhbGxBY3Rpb25SZXF1ZXN0EhIKCnN3aXBsZXRfaWQYASABKAkSDgoGYWN0aW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ZXN0Ghwuc3dpcHQuV2F0Y2hTZXJ2aWNlc1Jlc3BvbnNlMAESTAoNRGVwbG95U3dpcGxldBIbLnN3aXB0LkRlcGxveVN3aXBsZXRSZXF1ZXN0Ghwuc3dpcHQuRGVwbG95U3dpcGxldFJlc3BvbnNlKAESRAoNUmVtb3ZlU3dpcGxldBIbLnN3aXB0LlJlbW92ZVN3aXBsZXRSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EkoKDUxpc3REYXRhRmlsZXMSGy5zd2lwdC5MaXN0RGF0YUZpbGVzUmVxdWVzdBocLnN3aXB0Lkxpc3REYXRhRmlsZXNSZXNwb25zZRJJCgxSZWFkRGF0YUZpbGUSGi5zd2lwdC5SZWFkRGF0YUZpbGVSZXF1ZXN0Ghsuc3dpcHQuUmVhZERhdGFGaWxlUmVzcG9uc2UwARJMCg1Xcml0ZURhdGFGaWxlEhsuc3dpcHQuV3JpdGVEYXRhRmlsZVJlcXVlc3QaHC5zd2lwdC5Xcml0ZURhdGFGaWxlUmVzcG9uc2UoARJGCg5SZW1vdmVEYXRhRmlsZRIcLnN3aXB0LlJlbW92ZURhdGFGaWxlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUIyWjBnaXRodWIuY29tL3N3aXB0LWF1dG9tYXRpb24vc3dpcHQvaW50ZXJuYWwvcHJvdG9iBnByb3RvMw\", [file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp, file_common]);\n\n/**\n * Describes the message swipt.SwipletAction.\n * Use `create(SwipletActionSchema)` to create a new message.\n */\nexport const SwipletActionSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 0);\n\n/**\n * Describes the message swipt.ServiceState.\n * Use `create(ServiceStateSchema)` to create a new message.\n */\nexport const ServiceStateSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 1);\n\n/**\n * Describes the message swipt.Swiplet.\n * Use `create(SwipletSchema)` to create a new message.\n */\nexport const SwipletSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 2);\n\n/**\n * Describes the message swipt.ListSwipletsResponse.\n * Use `create(ListSwipletsResponseSchema)` to create a new message.\n */\nexport const ListSwipletsResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 3);\n\n/**\n * Describes the message swipt.CallActionRequest.\n * Use `create(CallActionRequestSchema)` to create a new message.\n */\nexport const CallActionRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 4);\n\n/**\n * Describes the message swipt.CallActionResponse.\n * Use `create(CallActionResponseSchema)` to create a new message.\n */\nexport const CallActionResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 5);\n\n/**\n * Describes the message swipt.SetServiceEnabledRequest.\n * Use `create(SetServiceEnabledRequestSchema)` to create a new message.\n */\nexport const SetServiceEnabledRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 6);\n\n/**\n * Describes the message swipt.SetServiceEnabledResponse.\n * Use `create(SetServiceEnabledResponseSchema)` to create a new message.\n */\nexport const SetServiceEnabledResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 7);\n\n/**\n * Describes the message swipt.WatchServicesRequest.\n * Use `create(WatchServicesRequestSchema)` to create a new message.\n */\nexport const WatchServicesRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 8);\n\n/**\n * Describes the message swipt.WatchServicesResponse.\n * Use `create(WatchServicesResponseSchema)` to create a new message.\n */\nexport const WatchServicesResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 9);\n\n/**\n * Describes the message swipt.DeploySwipletRequest.\n * Use `create(DeploySwipletRequestSchema)` to create a new message.\n */\nexport const DeploySwipletRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 10);\n\n/**\n * Describes the message swipt.DeploySwipletResponse.\n * Use `create(DeploySwipletResponseSchema)` to create a new message.\n */\nexport const DeploySwipletResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 11);\n\n/**\n * Describes the message swipt.RemoveSwipletRequest.\n * Use `create(RemoveSwipletRequestSchema)` to create a new message.\n */\nexport const RemoveSwipletRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 12);\n\n/**\n * Describes the message swipt.ListDataFilesRequest.\n * Use `create(ListDataFilesRequestSchema)` to create a new message.\n */\nexport const ListDataFilesRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 13);\n\n/**\n * Describes the message swipt.ListDataFilesResponse.\n * Use `create(ListDataFilesResponseSchema)` to create a new message.\n */\nexport const ListDataFilesResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 14);\n\n/**\n * Describes the message swipt.ReadDataFileRequest.\n * Use `create(ReadDataFileRequestSchema)` to create a new message.\n */\nexport const ReadDataFileRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 15);\n\n/**\n * Describes the message swipt.ReadDataFileResponse.\n * Use `create(ReadDataFileResponseSchema)` to create a new message.\n */\nexport const ReadDataFileResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 16);\n\n/**\n * Describes the message swipt.WriteDataFileHeader.\n * Use `create(WriteDataFileHeaderSchema)` to create a new message.\n */\nexport const WriteDataFileHeaderSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 17);\n\n/**\n * Describes the message swipt.WriteDataFileRequest.\n * Use `create(WriteDataFileRequestSchema)` to create a new message.\n */\nexport const WriteDataFileRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 18);\n\n/**\n * Describes the message swipt.WriteDataFileResponse.\n * Use `create(WriteDataFileResponseSchema)` to create a new message.\n */\nexport const WriteDataFileResponseSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 19);\n\n/**\n * Describes the message swipt.RemoveDataFileRequest.\n * Use `create(RemoveDataFileRequestSchema)` to create a new message.\n */\nexport const RemoveDataFileRequestSchema = /*@__PURE__*/\n messageDesc(file_swiplets, 20);\n\n/**\n * Describes the enum swipt.ServiceStatus.\n */\nexport const ServiceStatusSchema = /*@__PURE__*/\n enumDesc(file_swiplets, 0);\n\n/**\n * @generated from enum swipt.ServiceStatus\n */\nexport const ServiceStatus = /*@__PURE__*/\n tsEnum(ServiceStatusSchema);\n\n/**\n * @generated from service swipt.SwipletService\n */\nexport const SwipletService = /*@__PURE__*/\n serviceDesc(file_swiplets, 0);\n\n"],"mappings":";;;;;;;AAWA,MAAa,gBACX,uBAAS,8nHAA8nH;CAAC;CAA4B;CAA6B;CAAgC;AAAW,CAAC;;;;AAwJ/uH,MAAa,sBACX,uBAAS,eAAe,CAAC;;;;AAK3B,MAAa,gBACX,qBAAO,mBAAmB;;;;AAK5B,MAAa,iBACX,0BAAY,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"swiplets_pb.js","names":[],"sources":["../../src/proto/swiplets_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.16.0 with parameter \"target=ts\"\n// @generated from file swiplets.proto (package swipt, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { EmptySchema, Timestamp, Value } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { ActionResult, FileChunk, FileInfo, LogEntry, ScriptError } from \"./common_pb\";\nimport { file_common } from \"./common_pb\";\nimport type { JsonObject, Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file swiplets.proto.\n */\nexport const file_swiplets: GenFile = /*@__PURE__*/\n fileDesc(\"Cg5zd2lwbGV0cy5wcm90bxIFc3dpcHQivgEKDVN3aXBsZXRBY3Rpb24SDAoEbmFtZRgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRIcChRleHBvc2VkX3RvX3Nob3J0Y3V0cxgEIAEoCBItCgxpbnB1dF9zY2hlbWEYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU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c3dpcHQuUmVhZERhdGFGaWxlUmVzcG9uc2UwARJMCg1Xcml0ZURhdGFGaWxlEhsuc3dpcHQuV3JpdGVEYXRhRmlsZVJlcXVlc3QaHC5zd2lwdC5Xcml0ZURhdGFGaWxlUmVzcG9uc2UoARJGCg5SZW1vdmVEYXRhRmlsZRIcLnN3aXB0LlJlbW92ZURhdGFGaWxlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUIyWjBnaXRodWIuY29tL3N3aXB0LWF1dG9tYXRpb24vc3dpcHQvaW50ZXJuYWwvcHJvdG9iBnByb3RvMw\", [file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp, file_common]);\n\n/**\n * @generated from message swipt.SwipletAction\n */\nexport type SwipletAction = Message<\"swipt.SwipletAction\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string title = 2;\n */\n title: string;\n\n /**\n * @generated from field: string description = 3;\n */\n description: string;\n\n /**\n * @generated from field: bool exposed_to_shortcuts = 4;\n */\n exposedToShortcuts: boolean;\n\n /**\n * @generated from field: google.protobuf.Struct input_schema = 5;\n */\n inputSchema?: JsonObject | undefined;\n\n /**\n * @generated from field: google.protobuf.Struct output_schema = 6;\n */\n outputSchema?: JsonObject | undefined;\n};\n\n/**\n * Describes the message swipt.SwipletAction.\n * Use `create(SwipletActionSchema)` to create a new message.\n */\nexport const SwipletActionSchema: GenMessage<SwipletAction> = /*@__PURE__*/\n messageDesc(file_swiplets, 0);\n\n/**\n * @generated from message swipt.ServiceState\n */\nexport type ServiceState = Message<\"swipt.ServiceState\"> & {\n /**\n * @generated from field: bool enabled = 1;\n */\n enabled: boolean;\n\n /**\n * @generated from field: swipt.ServiceStatus status = 2;\n */\n status: ServiceStatus;\n\n /**\n * @generated from field: swipt.ScriptError error = 3;\n */\n error?: ScriptError | undefined;\n\n /**\n * @generated from field: google.protobuf.Timestamp since = 4;\n */\n since?: Timestamp | undefined;\n};\n\n/**\n * Describes the message swipt.ServiceState.\n * Use `create(ServiceStateSchema)` to create a new message.\n */\nexport const ServiceStateSchema: GenMessage<ServiceState> = /*@__PURE__*/\n messageDesc(file_swiplets, 1);\n\n/**\n * @generated from message swipt.Swiplet\n */\nexport type Swiplet = Message<\"swipt.Swiplet\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string title = 2;\n */\n title: string;\n\n /**\n * @generated from field: string version = 3;\n */\n version: string;\n\n /**\n * @generated from field: bool has_ui = 4;\n */\n hasUi: boolean;\n\n /**\n * @generated from field: bool has_service = 5;\n */\n hasService: boolean;\n\n /**\n * @generated from field: swipt.ServiceState service = 6;\n */\n service?: ServiceState | undefined;\n\n /**\n * @generated from field: repeated swipt.SwipletAction actions = 7;\n */\n actions: SwipletAction[];\n};\n\n/**\n * Describes the message swipt.Swiplet.\n * Use `create(SwipletSchema)` to create a new message.\n */\nexport const SwipletSchema: GenMessage<Swiplet> = /*@__PURE__*/\n messageDesc(file_swiplets, 2);\n\n/**\n * @generated from message swipt.ListSwipletsResponse\n */\nexport type ListSwipletsResponse = Message<\"swipt.ListSwipletsResponse\"> & {\n /**\n * @generated from field: repeated swipt.Swiplet swiplets = 1;\n */\n swiplets: Swiplet[];\n};\n\n/**\n * Describes the message swipt.ListSwipletsResponse.\n * Use `create(ListSwipletsResponseSchema)` to create a new message.\n */\nexport const ListSwipletsResponseSchema: GenMessage<ListSwipletsResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 3);\n\n/**\n * @generated from message swipt.CallActionRequest\n */\nexport type CallActionRequest = Message<\"swipt.CallActionRequest\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n\n /**\n * @generated from field: string action = 2;\n */\n action: string;\n\n /**\n * @generated from field: google.protobuf.Value input = 3;\n */\n input?: Value | undefined;\n};\n\n/**\n * Describes the message swipt.CallActionRequest.\n * Use `create(CallActionRequestSchema)` to create a new message.\n */\nexport const CallActionRequestSchema: GenMessage<CallActionRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 4);\n\n/**\n * @generated from message swipt.CallActionResponse\n */\nexport type CallActionResponse = Message<\"swipt.CallActionResponse\"> & {\n /**\n * @generated from oneof swipt.CallActionResponse.part\n */\n part: {\n /**\n * @generated from field: swipt.LogEntry log = 1;\n */\n value: LogEntry;\n case: \"log\";\n } | {\n /**\n * @generated from field: swipt.ActionResult result = 2;\n */\n value: ActionResult;\n case: \"result\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message swipt.CallActionResponse.\n * Use `create(CallActionResponseSchema)` to create a new message.\n */\nexport const CallActionResponseSchema: GenMessage<CallActionResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 5);\n\n/**\n * @generated from message swipt.SetServiceEnabledRequest\n */\nexport type SetServiceEnabledRequest = Message<\"swipt.SetServiceEnabledRequest\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n\n /**\n * @generated from field: bool enabled = 2;\n */\n enabled: boolean;\n};\n\n/**\n * Describes the message swipt.SetServiceEnabledRequest.\n * Use `create(SetServiceEnabledRequestSchema)` to create a new message.\n */\nexport const SetServiceEnabledRequestSchema: GenMessage<SetServiceEnabledRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 6);\n\n/**\n * @generated from message swipt.SetServiceEnabledResponse\n */\nexport type SetServiceEnabledResponse = Message<\"swipt.SetServiceEnabledResponse\"> & {\n /**\n * @generated from field: swipt.ServiceState service = 1;\n */\n service?: ServiceState | undefined;\n};\n\n/**\n * Describes the message swipt.SetServiceEnabledResponse.\n * Use `create(SetServiceEnabledResponseSchema)` to create a new message.\n */\nexport const SetServiceEnabledResponseSchema: GenMessage<SetServiceEnabledResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 7);\n\n/**\n * @generated from message swipt.WatchServicesRequest\n */\nexport type WatchServicesRequest = Message<\"swipt.WatchServicesRequest\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n};\n\n/**\n * Describes the message swipt.WatchServicesRequest.\n * Use `create(WatchServicesRequestSchema)` to create a new message.\n */\nexport const WatchServicesRequestSchema: GenMessage<WatchServicesRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 8);\n\n/**\n * @generated from message swipt.WatchServicesResponse\n */\nexport type WatchServicesResponse = Message<\"swipt.WatchServicesResponse\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n\n /**\n * @generated from field: swipt.ServiceState service = 2;\n */\n service?: ServiceState | undefined;\n};\n\n/**\n * Describes the message swipt.WatchServicesResponse.\n * Use `create(WatchServicesResponseSchema)` to create a new message.\n */\nexport const WatchServicesResponseSchema: GenMessage<WatchServicesResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 9);\n\n/**\n * @generated from message swipt.DeploySwipletRequest\n */\nexport type DeploySwipletRequest = Message<\"swipt.DeploySwipletRequest\"> & {\n /**\n * @generated from field: bytes chunk = 1;\n */\n chunk: Uint8Array;\n};\n\n/**\n * Describes the message swipt.DeploySwipletRequest.\n * Use `create(DeploySwipletRequestSchema)` to create a new message.\n */\nexport const DeploySwipletRequestSchema: GenMessage<DeploySwipletRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 10);\n\n/**\n * @generated from message swipt.DeploySwipletResponse\n */\nexport type DeploySwipletResponse = Message<\"swipt.DeploySwipletResponse\"> & {\n /**\n * @generated from field: swipt.Swiplet swiplet = 1;\n */\n swiplet?: Swiplet | undefined;\n\n /**\n * @generated from field: bool replaced = 2;\n */\n replaced: boolean;\n};\n\n/**\n * Describes the message swipt.DeploySwipletResponse.\n * Use `create(DeploySwipletResponseSchema)` to create a new message.\n */\nexport const DeploySwipletResponseSchema: GenMessage<DeploySwipletResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 11);\n\n/**\n * @generated from message swipt.RemoveSwipletRequest\n */\nexport type RemoveSwipletRequest = Message<\"swipt.RemoveSwipletRequest\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n};\n\n/**\n * Describes the message swipt.RemoveSwipletRequest.\n * Use `create(RemoveSwipletRequestSchema)` to create a new message.\n */\nexport const RemoveSwipletRequestSchema: GenMessage<RemoveSwipletRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 12);\n\n/**\n * @generated from message swipt.ListDataFilesRequest\n */\nexport type ListDataFilesRequest = Message<\"swipt.ListDataFilesRequest\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n\n /**\n * @generated from field: string path = 2;\n */\n path: string;\n\n /**\n * @generated from field: bool recursive = 3;\n */\n recursive: boolean;\n};\n\n/**\n * Describes the message swipt.ListDataFilesRequest.\n * Use `create(ListDataFilesRequestSchema)` to create a new message.\n */\nexport const ListDataFilesRequestSchema: GenMessage<ListDataFilesRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 13);\n\n/**\n * @generated from message swipt.ListDataFilesResponse\n */\nexport type ListDataFilesResponse = Message<\"swipt.ListDataFilesResponse\"> & {\n /**\n * @generated from field: repeated swipt.FileInfo files = 1;\n */\n files: FileInfo[];\n};\n\n/**\n * Describes the message swipt.ListDataFilesResponse.\n * Use `create(ListDataFilesResponseSchema)` to create a new message.\n */\nexport const ListDataFilesResponseSchema: GenMessage<ListDataFilesResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 14);\n\n/**\n * @generated from message swipt.ReadDataFileRequest\n */\nexport type ReadDataFileRequest = Message<\"swipt.ReadDataFileRequest\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n\n /**\n * @generated from field: string path = 2;\n */\n path: string;\n};\n\n/**\n * Describes the message swipt.ReadDataFileRequest.\n * Use `create(ReadDataFileRequestSchema)` to create a new message.\n */\nexport const ReadDataFileRequestSchema: GenMessage<ReadDataFileRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 15);\n\n/**\n * @generated from message swipt.ReadDataFileResponse\n */\nexport type ReadDataFileResponse = Message<\"swipt.ReadDataFileResponse\"> & {\n /**\n * @generated from oneof swipt.ReadDataFileResponse.part\n */\n part: {\n /**\n * @generated from field: swipt.FileInfo file = 1;\n */\n value: FileInfo;\n case: \"file\";\n } | {\n /**\n * @generated from field: swipt.FileChunk chunk = 2;\n */\n value: FileChunk;\n case: \"chunk\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message swipt.ReadDataFileResponse.\n * Use `create(ReadDataFileResponseSchema)` to create a new message.\n */\nexport const ReadDataFileResponseSchema: GenMessage<ReadDataFileResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 16);\n\n/**\n * @generated from message swipt.WriteDataFileHeader\n */\nexport type WriteDataFileHeader = Message<\"swipt.WriteDataFileHeader\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n\n /**\n * @generated from field: string path = 2;\n */\n path: string;\n};\n\n/**\n * Describes the message swipt.WriteDataFileHeader.\n * Use `create(WriteDataFileHeaderSchema)` to create a new message.\n */\nexport const WriteDataFileHeaderSchema: GenMessage<WriteDataFileHeader> = /*@__PURE__*/\n messageDesc(file_swiplets, 17);\n\n/**\n * @generated from message swipt.WriteDataFileRequest\n */\nexport type WriteDataFileRequest = Message<\"swipt.WriteDataFileRequest\"> & {\n /**\n * @generated from oneof swipt.WriteDataFileRequest.part\n */\n part: {\n /**\n * @generated from field: swipt.WriteDataFileHeader header = 1;\n */\n value: WriteDataFileHeader;\n case: \"header\";\n } | {\n /**\n * @generated from field: bytes data = 2;\n */\n value: Uint8Array;\n case: \"data\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message swipt.WriteDataFileRequest.\n * Use `create(WriteDataFileRequestSchema)` to create a new message.\n */\nexport const WriteDataFileRequestSchema: GenMessage<WriteDataFileRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 18);\n\n/**\n * @generated from message swipt.WriteDataFileResponse\n */\nexport type WriteDataFileResponse = Message<\"swipt.WriteDataFileResponse\"> & {\n /**\n * @generated from field: swipt.FileInfo file = 1;\n */\n file?: FileInfo | undefined;\n};\n\n/**\n * Describes the message swipt.WriteDataFileResponse.\n * Use `create(WriteDataFileResponseSchema)` to create a new message.\n */\nexport const WriteDataFileResponseSchema: GenMessage<WriteDataFileResponse> = /*@__PURE__*/\n messageDesc(file_swiplets, 19);\n\n/**\n * @generated from message swipt.RemoveDataFileRequest\n */\nexport type RemoveDataFileRequest = Message<\"swipt.RemoveDataFileRequest\"> & {\n /**\n * @generated from field: string swiplet_id = 1;\n */\n swipletId: string;\n\n /**\n * @generated from field: string path = 2;\n */\n path: string;\n\n /**\n * @generated from field: bool recursive = 3;\n */\n recursive: boolean;\n};\n\n/**\n * Describes the message swipt.RemoveDataFileRequest.\n * Use `create(RemoveDataFileRequestSchema)` to create a new message.\n */\nexport const RemoveDataFileRequestSchema: GenMessage<RemoveDataFileRequest> = /*@__PURE__*/\n messageDesc(file_swiplets, 20);\n\n/**\n * @generated from enum swipt.ServiceStatus\n */\nexport enum ServiceStatus {\n /**\n * @generated from enum value: SERVICE_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: SERVICE_STATUS_STOPPED = 1;\n */\n STOPPED = 1,\n\n /**\n * @generated from enum value: SERVICE_STATUS_STARTING = 2;\n */\n STARTING = 2,\n\n /**\n * @generated from enum value: SERVICE_STATUS_RUNNING = 3;\n */\n RUNNING = 3,\n\n /**\n * @generated from enum value: SERVICE_STATUS_FAILED = 4;\n */\n FAILED = 4,\n}\n\n/**\n * Describes the enum swipt.ServiceStatus.\n */\nexport const ServiceStatusSchema: GenEnum<ServiceStatus> = /*@__PURE__*/\n enumDesc(file_swiplets, 0);\n\n/**\n * @generated from service swipt.SwipletService\n */\nexport const SwipletService: GenService<{\n /**\n * @generated from rpc swipt.SwipletService.ListSwiplets\n */\n listSwiplets: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof ListSwipletsResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.CallAction\n */\n callAction: {\n methodKind: \"server_streaming\";\n input: typeof CallActionRequestSchema;\n output: typeof CallActionResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.SetServiceEnabled\n */\n setServiceEnabled: {\n methodKind: \"unary\";\n input: typeof SetServiceEnabledRequestSchema;\n output: typeof SetServiceEnabledResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.WatchServices\n */\n watchServices: {\n methodKind: \"server_streaming\";\n input: typeof WatchServicesRequestSchema;\n output: typeof WatchServicesResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.DeploySwiplet\n */\n deploySwiplet: {\n methodKind: \"client_streaming\";\n input: typeof DeploySwipletRequestSchema;\n output: typeof DeploySwipletResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.RemoveSwiplet\n */\n removeSwiplet: {\n methodKind: \"unary\";\n input: typeof RemoveSwipletRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.ListDataFiles\n */\n listDataFiles: {\n methodKind: \"unary\";\n input: typeof ListDataFilesRequestSchema;\n output: typeof ListDataFilesResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.ReadDataFile\n */\n readDataFile: {\n methodKind: \"server_streaming\";\n input: typeof ReadDataFileRequestSchema;\n output: typeof ReadDataFileResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.WriteDataFile\n */\n writeDataFile: {\n methodKind: \"client_streaming\";\n input: typeof WriteDataFileRequestSchema;\n output: typeof WriteDataFileResponseSchema;\n },\n /**\n * @generated from rpc swipt.SwipletService.RemoveDataFile\n */\n removeDataFile: {\n methodKind: \"unary\";\n input: typeof RemoveDataFileRequestSchema;\n output: typeof EmptySchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_swiplets, 0);\n\n"],"mappings":";;;;;;;AAeA,MAAa,gBACX,uBAAS,8nHAA8nH;CAAC;CAA4B;CAA6B;CAAgC;AAAW,CAAC;;;;AA+iB/uH,MAAa,iBAkFX,0BAAY,eAAe,CAAC"}
|
package/dist/proto/system_pb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { file_common } from "./common_pb.js";
|
|
2
2
|
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
// src/proto/system_pb.
|
|
4
|
+
// src/proto/system_pb.ts
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file system.proto.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system_pb.js","names":[],"sources":["../../src/proto/system_pb.
|
|
1
|
+
{"version":3,"file":"system_pb.js","names":[],"sources":["../../src/proto/system_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.16.0 with parameter \"target=ts\"\n// @generated from file system.proto (package swipt, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { EmptySchema } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty } from \"@bufbuild/protobuf/wkt\";\nimport type { DeviceConnection } from \"./common_pb\";\nimport { file_common } from \"./common_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file system.proto.\n */\nexport const file_system: GenFile = /*@__PURE__*/\n fileDesc(\"CgxzeXN0ZW0ucHJvdG8SBXN3aXB0IqgBCg9HZXRJbmZvUmVzcG9uc2USFgoOc2VydmVyX3ZlcnNpb24YASABKAkSEwoLZGV2aWNlX25hbWUYAiABKAkSDAoEdWRpZBgDIAEoCRIyChFkZXZpY2VfY29ubmVjdGlvbhgEIAEoCzIXLnN3aXB0LkRldmljZUNvbm5lY3Rpb24SEwoLYXBwX3ZlcnNpb24YBSABKAkSEQoJYXBwX2J1aWxkGAYgASgJMoYBCg1TeXN0ZW1TZXJ2aWNlEjkKB0dldEluZm8SFi5nb29nbGUucHJvdG9idWYuRW1wdHkaFi5zd2lwdC5HZXRJbmZvUmVzcG9uc2USOgoIU2h1dGRvd24SFi5nb29nbGUucHJvdG9idWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHlCMlowZ2l0aHViLmNvbS9zd2lwdC1hdXRvbWF0aW9uL3N3aXB0L2ludGVybmFsL3Byb3RvYgZwcm90bzM\", [file_google_protobuf_empty, file_common]);\n\n/**\n * @generated from message swipt.GetInfoResponse\n */\nexport type GetInfoResponse = Message<\"swipt.GetInfoResponse\"> & {\n /**\n * @generated from field: string server_version = 1;\n */\n serverVersion: string;\n\n /**\n * @generated from field: string device_name = 2;\n */\n deviceName: string;\n\n /**\n * @generated from field: string udid = 3;\n */\n udid: string;\n\n /**\n * @generated from field: swipt.DeviceConnection device_connection = 4;\n */\n deviceConnection?: DeviceConnection | undefined;\n\n /**\n * @generated from field: string app_version = 5;\n */\n appVersion: string;\n\n /**\n * @generated from field: string app_build = 6;\n */\n appBuild: string;\n};\n\n/**\n * Describes the message swipt.GetInfoResponse.\n * Use `create(GetInfoResponseSchema)` to create a new message.\n */\nexport const GetInfoResponseSchema: GenMessage<GetInfoResponse> = /*@__PURE__*/\n messageDesc(file_system, 0);\n\n/**\n * @generated from service swipt.SystemService\n */\nexport const SystemService: GenService<{\n /**\n * @generated from rpc swipt.SystemService.GetInfo\n */\n getInfo: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof GetInfoResponseSchema;\n },\n /**\n * @generated from rpc swipt.SystemService.Shutdown\n */\n shutdown: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof EmptySchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_system, 0);\n\n"],"mappings":";;;;;;;AAeA,MAAa,cACX,uBAAS,2gBAA2gB,CAAC,4BAA4B,WAAW,CAAC;;;;AA+C/jB,MAAa,gBAkBX,0BAAY,aAAa,CAAC"}
|
package/dist/sideload.js
CHANGED
|
@@ -3,7 +3,7 @@ import { findPublished, runningSwipt, tryUnlock, withToken } from "./connection.
|
|
|
3
3
|
import { apps, configureGuest, containerHasFile, coreDevice, devicectl, installApp, launchApp, lockedError, provisioningProfiles, pullFromContainer, pushToContainer, serverHint, serverPath, terminateApp, uninstallApp } from "./coredevice.js";
|
|
4
4
|
import { language, tr } from "./i18n.js";
|
|
5
5
|
import { choose, columns, interactive, printScriptError, selectTheme, step } from "./output.js";
|
|
6
|
-
import
|
|
6
|
+
import "./proto/common_pb.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { execFile, execFileSync, spawn } from "node:child_process";
|
|
@@ -1034,7 +1034,7 @@ async function trustAndOpen(context, device, id, given, updated, diskImage) {
|
|
|
1034
1034
|
}, { signal: context.signal })) switch (response.part.case) {
|
|
1035
1035
|
case "console": {
|
|
1036
1036
|
const output = response.part.value;
|
|
1037
|
-
if (output.level ===
|
|
1037
|
+
if (output.level === 4) update(output.text);
|
|
1038
1038
|
else lines.push(output);
|
|
1039
1039
|
break;
|
|
1040
1040
|
}
|
|
@@ -1070,7 +1070,7 @@ async function trustAndOpen(context, device, id, given, updated, diskImage) {
|
|
|
1070
1070
|
} catch (error) {
|
|
1071
1071
|
if (failure === void 0) throw error;
|
|
1072
1072
|
} finally {
|
|
1073
|
-
for (const output of lines) (output.level ===
|
|
1073
|
+
for (const output of lines) (output.level === 1 || output.level === 2 ? console.error : console.log)(output.text);
|
|
1074
1074
|
}
|
|
1075
1075
|
if (failure) {
|
|
1076
1076
|
if (passcode === void 0 && failure.name === "UnavailableError" && /\bdevice is locked\b/.test(failure.message)) throw new Error(tr("{device}: {message}; unlock it or pass --passcode, then run this again", {
|