@swipt/cli 0.1.0-nightly.98 → 0.1.0-nightly.99

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.
Files changed (247) hide show
  1. package/dist/availability.d.ts +3 -1
  2. package/dist/availability.js +173 -151
  3. package/dist/availability.js.map +1 -1
  4. package/dist/cli/cli.js +52 -66
  5. package/dist/cli/cli.js.map +1 -1
  6. package/dist/cli/command.d.ts +9 -0
  7. package/dist/cli/command.js.map +1 -1
  8. package/dist/cli/commands/data/clear.js +2 -2
  9. package/dist/cli/commands/data/clear.js.map +1 -1
  10. package/dist/cli/commands/data/data.js +2 -2
  11. package/dist/cli/commands/data/data.js.map +1 -1
  12. package/dist/cli/commands/data/list.js +3 -3
  13. package/dist/cli/commands/data/list.js.map +1 -1
  14. package/dist/cli/commands/data/operand.js.map +1 -1
  15. package/dist/cli/commands/data/read.js +4 -7
  16. package/dist/cli/commands/data/read.js.map +1 -1
  17. package/dist/cli/commands/data/remove.js +3 -3
  18. package/dist/cli/commands/data/remove.js.map +1 -1
  19. package/dist/cli/commands/data/write.js +2 -2
  20. package/dist/cli/commands/data/write.js.map +1 -1
  21. package/dist/cli/commands/device/add.js +2 -2
  22. package/dist/cli/commands/device/add.js.map +1 -1
  23. package/dist/cli/commands/device/device.js +2 -2
  24. package/dist/cli/commands/device/device.js.map +1 -1
  25. package/dist/cli/commands/device/list.js +2 -2
  26. package/dist/cli/commands/device/list.js.map +1 -1
  27. package/dist/cli/commands/device/logs.js +44 -46
  28. package/dist/cli/commands/device/logs.js.map +1 -1
  29. package/dist/cli/commands/device/remove.js +2 -2
  30. package/dist/cli/commands/device/remove.js.map +1 -1
  31. package/dist/cli/commands/device/stop.js +3 -3
  32. package/dist/cli/commands/device/stop.js.map +1 -1
  33. package/dist/cli/commands/driver/driver.js +6 -6
  34. package/dist/cli/commands/driver/driver.js.map +1 -1
  35. package/dist/cli/commands/flags.js +9 -9
  36. package/dist/cli/commands/flags.js.map +1 -1
  37. package/dist/cli/commands/index.js +2 -2
  38. package/dist/cli/commands/index.js.map +1 -1
  39. package/dist/cli/commands/project/build.js +2 -2
  40. package/dist/cli/commands/project/build.js.map +1 -1
  41. package/dist/cli/commands/project/create.js +3 -3
  42. package/dist/cli/commands/project/create.js.map +1 -1
  43. package/dist/cli/commands/project/deploy.js +2 -2
  44. package/dist/cli/commands/project/deploy.js.map +1 -1
  45. package/dist/cli/commands/project/develop.js +19 -19
  46. package/dist/cli/commands/project/develop.js.map +1 -1
  47. package/dist/cli/commands/project/project.js +2 -2
  48. package/dist/cli/commands/project/project.js.map +1 -1
  49. package/dist/cli/commands/project/source.js +62 -37
  50. package/dist/cli/commands/project/source.js.map +1 -1
  51. package/dist/cli/commands/repl/api.js +2 -2
  52. package/dist/cli/commands/repl/api.js.map +1 -1
  53. package/dist/cli/commands/repl/repl.js +4 -4
  54. package/dist/cli/commands/repl/repl.js.map +1 -1
  55. package/dist/cli/commands/repl/reset.js +2 -2
  56. package/dist/cli/commands/repl/reset.js.map +1 -1
  57. package/dist/cli/commands/repl/run.js +5 -5
  58. package/dist/cli/commands/repl/run.js.map +1 -1
  59. package/dist/cli/commands/sideload/install.js +4 -4
  60. package/dist/cli/commands/sideload/install.js.map +1 -1
  61. package/dist/cli/commands/sideload/setup.js +3 -3
  62. package/dist/cli/commands/sideload/setup.js.map +1 -1
  63. package/dist/cli/commands/sideload/sideload.js +2 -2
  64. package/dist/cli/commands/sideload/sideload.js.map +1 -1
  65. package/dist/cli/commands/sideload/uninstall.js +2 -2
  66. package/dist/cli/commands/sideload/uninstall.js.map +1 -1
  67. package/dist/cli/commands/sideload/update.js +3 -3
  68. package/dist/cli/commands/sideload/update.js.map +1 -1
  69. package/dist/cli/commands/swiplet/call.js +6 -6
  70. package/dist/cli/commands/swiplet/call.js.map +1 -1
  71. package/dist/cli/commands/swiplet/install.js +3 -3
  72. package/dist/cli/commands/swiplet/install.js.map +1 -1
  73. package/dist/cli/commands/swiplet/list.js +8 -8
  74. package/dist/cli/commands/swiplet/list.js.map +1 -1
  75. package/dist/cli/commands/swiplet/remove.js +3 -3
  76. package/dist/cli/commands/swiplet/remove.js.map +1 -1
  77. package/dist/cli/commands/swiplet/service/disable.js +3 -3
  78. package/dist/cli/commands/swiplet/service/disable.js.map +1 -1
  79. package/dist/cli/commands/swiplet/service/enable.js +3 -3
  80. package/dist/cli/commands/swiplet/service/enable.js.map +1 -1
  81. package/dist/cli/commands/swiplet/service/service.js +2 -2
  82. package/dist/cli/commands/swiplet/service/service.js.map +1 -1
  83. package/dist/cli/commands/swiplet/service/services.js +2 -2
  84. package/dist/cli/commands/swiplet/service/services.js.map +1 -1
  85. package/dist/cli/commands/swiplet/service/watch.js +2 -2
  86. package/dist/cli/commands/swiplet/service/watch.js.map +1 -1
  87. package/dist/cli/commands/swiplet/show.js +6 -6
  88. package/dist/cli/commands/swiplet/show.js.map +1 -1
  89. package/dist/cli/commands/swiplet/swiplet.js +4 -4
  90. package/dist/cli/commands/swiplet/swiplet.js.map +1 -1
  91. package/dist/cli/commands/version/version.js +2 -2
  92. package/dist/cli/commands/version/version.js.map +1 -1
  93. package/dist/cli/deploy.js +9 -7
  94. package/dist/cli/deploy.js.map +1 -1
  95. package/dist/cli/session.js.map +1 -1
  96. package/dist/client.d.ts +145 -7
  97. package/dist/client.js +20 -22
  98. package/dist/client.js.map +1 -1
  99. package/dist/connection.d.ts +292 -25
  100. package/dist/connection.js +36 -35
  101. package/dist/connection.js.map +1 -1
  102. package/dist/driver.d.ts +62 -23
  103. package/dist/driver.js +29 -33
  104. package/dist/driver.js.map +1 -1
  105. package/dist/i18n.d.ts +2 -5
  106. package/dist/i18n.js +15 -13
  107. package/dist/i18n.js.map +1 -1
  108. package/dist/i18next.d.ts +7 -0
  109. package/dist/ignore.d.ts +14 -7
  110. package/dist/ignore.js +13 -14
  111. package/dist/ignore.js.map +1 -1
  112. package/dist/mdns.d.ts +2 -2
  113. package/dist/mdns.js +1 -1
  114. package/dist/mdns.js.map +1 -1
  115. package/dist/metro.d.ts +19 -5
  116. package/dist/metro.js +61 -63
  117. package/dist/metro.js.map +1 -1
  118. package/dist/output.d.ts +29 -14
  119. package/dist/output.js +17 -15
  120. package/dist/output.js.map +1 -1
  121. package/dist/passcode.d.ts +12 -8
  122. package/dist/passcode.js +18 -18
  123. package/dist/passcode.js.map +1 -1
  124. package/dist/project.d.ts +20 -10
  125. package/dist/project.js +72 -49
  126. package/dist/project.js.map +1 -1
  127. package/dist/proto/common_pb.d.ts +240 -0
  128. package/dist/proto/common_pb.js +7 -2
  129. package/dist/proto/common_pb.js.map +1 -1
  130. package/dist/proto/logs_pb.d.ts +38 -0
  131. package/dist/proto/repl_pb.d.ts +96 -0
  132. package/dist/proto/swiplets_pb.d.ts +361 -0
  133. package/dist/proto/swiplets_pb.js +7 -2
  134. package/dist/proto/swiplets_pb.js.map +1 -1
  135. package/dist/proto/system_pb.d.ts +33 -0
  136. package/dist/resources.d.ts +400 -0
  137. package/dist/serve.d.ts +9 -1
  138. package/dist/serve.js +17 -16
  139. package/dist/serve.js.map +1 -1
  140. package/dist/sideload.d.ts +27 -14
  141. package/dist/sideload.js +102 -89
  142. package/dist/sideload.js.map +1 -1
  143. package/dist/swipt-app.d.ts +19 -9
  144. package/dist/swipt-app.js +1 -1
  145. package/dist/swipt-app.js.map +1 -1
  146. package/locales/ar/translation.json +413 -0
  147. package/locales/bg/translation.json +397 -0
  148. package/locales/bn/translation.json +397 -0
  149. package/locales/ca/translation.json +401 -0
  150. package/locales/cs/translation.json +405 -0
  151. package/locales/da/translation.json +397 -0
  152. package/locales/de/translation.json +397 -0
  153. package/locales/el/translation.json +397 -0
  154. package/locales/en/translation.json +397 -0
  155. package/locales/es/translation.json +401 -0
  156. package/locales/es-419/translation.json +401 -0
  157. package/locales/fi/translation.json +397 -0
  158. package/locales/fr/translation.json +401 -0
  159. package/locales/fr-CA/translation.json +401 -0
  160. package/locales/gu/translation.json +397 -0
  161. package/locales/he/translation.json +401 -0
  162. package/locales/hi/translation.json +397 -0
  163. package/locales/hr/translation.json +401 -0
  164. package/locales/hu/translation.json +397 -0
  165. package/locales/id/translation.json +393 -0
  166. package/locales/it/translation.json +401 -0
  167. package/locales/ja/translation.json +393 -0
  168. package/locales/kk/translation.json +397 -0
  169. package/locales/kn/translation.json +397 -0
  170. package/locales/ko/translation.json +393 -0
  171. package/locales/lt/translation.json +405 -0
  172. package/locales/ml/translation.json +397 -0
  173. package/locales/mr/translation.json +397 -0
  174. package/locales/ms/translation.json +393 -0
  175. package/locales/nb/translation.json +397 -0
  176. package/locales/nl/translation.json +397 -0
  177. package/locales/or/translation.json +397 -0
  178. package/locales/pa/translation.json +397 -0
  179. package/locales/pl/translation.json +405 -0
  180. package/locales/pt-BR/translation.json +401 -0
  181. package/locales/pt-PT/translation.json +401 -0
  182. package/locales/ro/translation.json +401 -0
  183. package/locales/ru/translation.json +405 -0
  184. package/locales/sk/translation.json +405 -0
  185. package/locales/sl/translation.json +405 -0
  186. package/locales/sv/translation.json +397 -0
  187. package/locales/ta/translation.json +397 -0
  188. package/locales/te/translation.json +397 -0
  189. package/locales/th/translation.json +393 -0
  190. package/locales/tr/translation.json +397 -0
  191. package/locales/uk/translation.json +405 -0
  192. package/locales/ur/translation.json +397 -0
  193. package/locales/vi/translation.json +397 -0
  194. package/locales/zh-HK/translation.json +393 -0
  195. package/locales/zh-Hans/translation.json +393 -0
  196. package/locales/zh-Hant/translation.json +393 -0
  197. package/package.json +14 -9
  198. package/locales/ar.json +0 -311
  199. package/locales/bg.json +0 -295
  200. package/locales/bn.json +0 -295
  201. package/locales/ca.json +0 -299
  202. package/locales/cs.json +0 -303
  203. package/locales/da.json +0 -295
  204. package/locales/de.json +0 -295
  205. package/locales/el.json +0 -295
  206. package/locales/es-419.json +0 -299
  207. package/locales/es.json +0 -299
  208. package/locales/fi.json +0 -295
  209. package/locales/fr-CA.json +0 -299
  210. package/locales/fr.json +0 -299
  211. package/locales/gu.json +0 -295
  212. package/locales/he.json +0 -299
  213. package/locales/hi.json +0 -295
  214. package/locales/hr.json +0 -299
  215. package/locales/hu.json +0 -295
  216. package/locales/id.json +0 -283
  217. package/locales/it.json +0 -299
  218. package/locales/ja.json +0 -283
  219. package/locales/kk.json +0 -295
  220. package/locales/kn.json +0 -295
  221. package/locales/ko.json +0 -283
  222. package/locales/lt.json +0 -303
  223. package/locales/ml.json +0 -295
  224. package/locales/mr.json +0 -295
  225. package/locales/ms.json +0 -283
  226. package/locales/nb.json +0 -295
  227. package/locales/nl.json +0 -295
  228. package/locales/or.json +0 -295
  229. package/locales/pa.json +0 -295
  230. package/locales/pl.json +0 -303
  231. package/locales/pt-BR.json +0 -299
  232. package/locales/pt-PT.json +0 -299
  233. package/locales/ro.json +0 -299
  234. package/locales/ru.json +0 -303
  235. package/locales/sk.json +0 -303
  236. package/locales/sl.json +0 -303
  237. package/locales/sv.json +0 -295
  238. package/locales/ta.json +0 -295
  239. package/locales/te.json +0 -295
  240. package/locales/th.json +0 -283
  241. package/locales/tr.json +0 -295
  242. package/locales/uk.json +0 -303
  243. package/locales/ur.json +0 -295
  244. package/locales/vi.json +0 -295
  245. package/locales/zh-HK.json +0 -283
  246. package/locales/zh-Hans.json +0 -283
  247. package/locales/zh-Hant.json +0 -283
@@ -0,0 +1,361 @@
1
+ import { ActionResult, FileChunk, FileInfo, LogEntry, ScriptError } from "./common_pb.js";
2
+ import { JsonObject, Message } from "@bufbuild/protobuf";
3
+ import "@bufbuild/protobuf/codegenv2";
4
+ import { Timestamp, Value } from "@bufbuild/protobuf/wkt";
5
+ /**
6
+ * @generated from message swipt.SwipletAction
7
+ */
8
+ export type SwipletAction = Message<"swipt.SwipletAction"> & {
9
+ /**
10
+ * @generated from field: string name = 1;
11
+ */
12
+ name: string;
13
+ /**
14
+ * @generated from field: string title = 2;
15
+ */
16
+ title: string;
17
+ /**
18
+ * @generated from field: string description = 3;
19
+ */
20
+ description: string;
21
+ /**
22
+ * @generated from field: google.protobuf.Struct input_schema = 5;
23
+ */
24
+ inputSchema?: JsonObject | undefined;
25
+ /**
26
+ * @generated from field: google.protobuf.Struct output_schema = 6;
27
+ */
28
+ outputSchema?: JsonObject | undefined;
29
+ };
30
+ /**
31
+ * @generated from message swipt.ServiceState
32
+ */
33
+ export type ServiceState = Message<"swipt.ServiceState"> & {
34
+ /**
35
+ * @generated from field: bool enabled = 1;
36
+ */
37
+ enabled: boolean;
38
+ /**
39
+ * @generated from field: swipt.ServiceStatus status = 2;
40
+ */
41
+ status: ServiceStatus;
42
+ /**
43
+ * @generated from field: swipt.ScriptError error = 3;
44
+ */
45
+ error?: ScriptError | undefined;
46
+ /**
47
+ * @generated from field: google.protobuf.Timestamp since = 4;
48
+ */
49
+ since?: Timestamp | undefined;
50
+ };
51
+ /**
52
+ * @generated from message swipt.Swiplet
53
+ */
54
+ export type Swiplet = Message<"swipt.Swiplet"> & {
55
+ /**
56
+ * @generated from field: string id = 1;
57
+ */
58
+ id: string;
59
+ /**
60
+ * @generated from field: string title = 2;
61
+ */
62
+ title: string;
63
+ /**
64
+ * @generated from field: string version = 3;
65
+ */
66
+ version: string;
67
+ /**
68
+ * @generated from field: bool has_service = 5;
69
+ */
70
+ hasService: boolean;
71
+ /**
72
+ * @generated from field: swipt.ServiceState service = 6;
73
+ */
74
+ service?: ServiceState | undefined;
75
+ /**
76
+ * @generated from field: repeated swipt.SwipletAction actions = 7;
77
+ */
78
+ actions: SwipletAction[];
79
+ };
80
+ /**
81
+ * @generated from message swipt.ListSwipletsResponse
82
+ */
83
+ export type ListSwipletsResponse = Message<"swipt.ListSwipletsResponse"> & {
84
+ /**
85
+ * @generated from field: repeated swipt.Swiplet swiplets = 1;
86
+ */
87
+ swiplets: Swiplet[];
88
+ };
89
+ /**
90
+ * @generated from message swipt.CallActionRequest
91
+ */
92
+ export type CallActionRequest = Message<"swipt.CallActionRequest"> & {
93
+ /**
94
+ * @generated from field: string swiplet_id = 1;
95
+ */
96
+ swipletId: string;
97
+ /**
98
+ * @generated from field: string action = 2;
99
+ */
100
+ action: string;
101
+ /**
102
+ * @generated from field: google.protobuf.Value input = 3;
103
+ */
104
+ input?: Value | undefined;
105
+ };
106
+ /**
107
+ * @generated from message swipt.CallActionResponse
108
+ */
109
+ export type CallActionResponse = Message<"swipt.CallActionResponse"> & {
110
+ /**
111
+ * @generated from oneof swipt.CallActionResponse.part
112
+ */
113
+ part: {
114
+ /**
115
+ * @generated from field: swipt.LogEntry log = 1;
116
+ */
117
+ value: LogEntry;
118
+ case: "log";
119
+ } | {
120
+ /**
121
+ * @generated from field: swipt.ActionResult result = 2;
122
+ */
123
+ value: ActionResult;
124
+ case: "result";
125
+ } | {
126
+ /**
127
+ * @generated from field: google.protobuf.Value value = 3;
128
+ */
129
+ value: Value;
130
+ case: "value";
131
+ } | {
132
+ case: undefined;
133
+ value?: undefined;
134
+ };
135
+ };
136
+ /**
137
+ * @generated from message swipt.SetServiceEnabledRequest
138
+ */
139
+ export type SetServiceEnabledRequest = Message<"swipt.SetServiceEnabledRequest"> & {
140
+ /**
141
+ * @generated from field: string swiplet_id = 1;
142
+ */
143
+ swipletId: string;
144
+ /**
145
+ * @generated from field: bool enabled = 2;
146
+ */
147
+ enabled: boolean;
148
+ };
149
+ /**
150
+ * @generated from message swipt.SetServiceEnabledResponse
151
+ */
152
+ export type SetServiceEnabledResponse = Message<"swipt.SetServiceEnabledResponse"> & {
153
+ /**
154
+ * @generated from field: swipt.ServiceState service = 1;
155
+ */
156
+ service?: ServiceState | undefined;
157
+ };
158
+ /**
159
+ * @generated from message swipt.WatchServicesRequest
160
+ */
161
+ export type WatchServicesRequest = Message<"swipt.WatchServicesRequest"> & {
162
+ /**
163
+ * @generated from field: string swiplet_id = 1;
164
+ */
165
+ swipletId: string;
166
+ };
167
+ /**
168
+ * @generated from message swipt.WatchServicesResponse
169
+ */
170
+ export type WatchServicesResponse = Message<"swipt.WatchServicesResponse"> & {
171
+ /**
172
+ * @generated from field: string swiplet_id = 1;
173
+ */
174
+ swipletId: string;
175
+ /**
176
+ * @generated from field: swipt.ServiceState service = 2;
177
+ */
178
+ service?: ServiceState | undefined;
179
+ };
180
+ /**
181
+ * @generated from message swipt.DeploySwipletRequest
182
+ */
183
+ export type DeploySwipletRequest = Message<"swipt.DeploySwipletRequest"> & {
184
+ /**
185
+ * @generated from field: bytes chunk = 1;
186
+ */
187
+ chunk: Uint8Array;
188
+ };
189
+ /**
190
+ * @generated from message swipt.DeploySwipletResponse
191
+ */
192
+ export type DeploySwipletResponse = Message<"swipt.DeploySwipletResponse"> & {
193
+ /**
194
+ * @generated from field: swipt.Swiplet swiplet = 1;
195
+ */
196
+ swiplet?: Swiplet | undefined;
197
+ /**
198
+ * @generated from field: bool replaced = 2;
199
+ */
200
+ replaced: boolean;
201
+ };
202
+ /**
203
+ * @generated from message swipt.RemoveSwipletRequest
204
+ */
205
+ export type RemoveSwipletRequest = Message<"swipt.RemoveSwipletRequest"> & {
206
+ /**
207
+ * @generated from field: string swiplet_id = 1;
208
+ */
209
+ swipletId: string;
210
+ };
211
+ /**
212
+ * @generated from message swipt.ListDataFilesRequest
213
+ */
214
+ export type ListDataFilesRequest = Message<"swipt.ListDataFilesRequest"> & {
215
+ /**
216
+ * @generated from field: string swiplet_id = 1;
217
+ */
218
+ swipletId: string;
219
+ /**
220
+ * @generated from field: string path = 2;
221
+ */
222
+ path: string;
223
+ /**
224
+ * @generated from field: bool recursive = 3;
225
+ */
226
+ recursive: boolean;
227
+ };
228
+ /**
229
+ * @generated from message swipt.ListDataFilesResponse
230
+ */
231
+ export type ListDataFilesResponse = Message<"swipt.ListDataFilesResponse"> & {
232
+ /**
233
+ * @generated from field: repeated swipt.FileInfo files = 1;
234
+ */
235
+ files: FileInfo[];
236
+ };
237
+ /**
238
+ * @generated from message swipt.ReadDataFileRequest
239
+ */
240
+ export type ReadDataFileRequest = Message<"swipt.ReadDataFileRequest"> & {
241
+ /**
242
+ * @generated from field: string swiplet_id = 1;
243
+ */
244
+ swipletId: string;
245
+ /**
246
+ * @generated from field: string path = 2;
247
+ */
248
+ path: string;
249
+ };
250
+ /**
251
+ * @generated from message swipt.ReadDataFileResponse
252
+ */
253
+ export type ReadDataFileResponse = Message<"swipt.ReadDataFileResponse"> & {
254
+ /**
255
+ * @generated from oneof swipt.ReadDataFileResponse.part
256
+ */
257
+ part: {
258
+ /**
259
+ * @generated from field: swipt.FileInfo file = 1;
260
+ */
261
+ value: FileInfo;
262
+ case: "file";
263
+ } | {
264
+ /**
265
+ * @generated from field: swipt.FileChunk chunk = 2;
266
+ */
267
+ value: FileChunk;
268
+ case: "chunk";
269
+ } | {
270
+ case: undefined;
271
+ value?: undefined;
272
+ };
273
+ };
274
+ /**
275
+ * @generated from message swipt.WriteDataFileHeader
276
+ */
277
+ export type WriteDataFileHeader = Message<"swipt.WriteDataFileHeader"> & {
278
+ /**
279
+ * @generated from field: string swiplet_id = 1;
280
+ */
281
+ swipletId: string;
282
+ /**
283
+ * @generated from field: string path = 2;
284
+ */
285
+ path: string;
286
+ };
287
+ /**
288
+ * @generated from message swipt.WriteDataFileRequest
289
+ */
290
+ export type WriteDataFileRequest = Message<"swipt.WriteDataFileRequest"> & {
291
+ /**
292
+ * @generated from oneof swipt.WriteDataFileRequest.part
293
+ */
294
+ part: {
295
+ /**
296
+ * @generated from field: swipt.WriteDataFileHeader header = 1;
297
+ */
298
+ value: WriteDataFileHeader;
299
+ case: "header";
300
+ } | {
301
+ /**
302
+ * @generated from field: bytes data = 2;
303
+ */
304
+ value: Uint8Array;
305
+ case: "data";
306
+ } | {
307
+ case: undefined;
308
+ value?: undefined;
309
+ };
310
+ };
311
+ /**
312
+ * @generated from message swipt.WriteDataFileResponse
313
+ */
314
+ export type WriteDataFileResponse = Message<"swipt.WriteDataFileResponse"> & {
315
+ /**
316
+ * @generated from field: swipt.FileInfo file = 1;
317
+ */
318
+ file?: FileInfo | undefined;
319
+ };
320
+ /**
321
+ * @generated from message swipt.RemoveDataFileRequest
322
+ */
323
+ export type RemoveDataFileRequest = Message<"swipt.RemoveDataFileRequest"> & {
324
+ /**
325
+ * @generated from field: string swiplet_id = 1;
326
+ */
327
+ swipletId: string;
328
+ /**
329
+ * @generated from field: string path = 2;
330
+ */
331
+ path: string;
332
+ /**
333
+ * @generated from field: bool recursive = 3;
334
+ */
335
+ recursive: boolean;
336
+ };
337
+ /**
338
+ * @generated from enum swipt.ServiceStatus
339
+ */
340
+ export declare enum ServiceStatus {
341
+ /**
342
+ * @generated from enum value: SERVICE_STATUS_UNSPECIFIED = 0;
343
+ */
344
+ UNSPECIFIED = 0,
345
+ /**
346
+ * @generated from enum value: SERVICE_STATUS_STOPPED = 1;
347
+ */
348
+ STOPPED = 1,
349
+ /**
350
+ * @generated from enum value: SERVICE_STATUS_STARTING = 2;
351
+ */
352
+ STARTING = 2,
353
+ /**
354
+ * @generated from enum value: SERVICE_STATUS_RUNNING = 3;
355
+ */
356
+ RUNNING = 3,
357
+ /**
358
+ * @generated from enum value: SERVICE_STATUS_FAILED = 4;
359
+ */
360
+ FAILED = 4
361
+ }
@@ -1,5 +1,5 @@
1
1
  import { file_common } from "./common_pb.js";
2
- import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
2
+ import { fileDesc, messageDesc, 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
4
  // src/proto/swiplets_pb.ts
5
5
  /**
@@ -12,9 +12,14 @@ const file_swiplets = /*@__PURE__*/ fileDesc("Cg5zd2lwbGV0cy5wcm90bxIFc3dpcHQipg
12
12
  file_common
13
13
  ]);
14
14
  /**
15
+ * Describes the message swipt.Swiplet.
16
+ * Use `create(SwipletSchema)` to create a new message.
17
+ */
18
+ const SwipletSchema = /*@__PURE__*/ messageDesc(file_swiplets, 2);
19
+ /**
15
20
  * @generated from service swipt.SwipletService
16
21
  */
17
22
  const SwipletService = /*@__PURE__*/ serviceDesc(file_swiplets, 0);
18
- export { SwipletService, file_swiplets };
23
+ export { SwipletSchema, SwipletService, file_swiplets };
19
24
 
20
25
  //# sourceMappingURL=swiplets_pb.js.map
@@ -1 +1 @@
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(\"Cg5zd2lwbGV0cy5wcm90bxIFc3dpcHQipgEKDVN3aXBsZXRBY3Rpb24SDAoEbmFtZRgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRItCgxpbnB1dF9zY2hlbWEYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Ei4KDW91dHB1dF9zY2hlbWEYBiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0SgQIBBAFIpMBCgxTZXJ2aWNlU3RhdGUSDwoHZW5hYmxlZBgBIAEoCBIkCgZzdGF0dXMYAiABKA4yFC5zd2lwdC5TZXJ2aWNlU3RhdHVzEiEKBWVycm9yGAMgASgLMhIuc3dpcHQuU2NyaXB0RXJyb3ISKQoFc2luY2UYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIpcBCgdTd2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yi5jb20vc3dpcHQtYXV0b21hdGlvbi9zd2lwdC9pbnRlcm5hbC9wcm90b2IGcHJvdG8z\", [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: 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_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 } | {\n /**\n * @generated from field: google.protobuf.Value value = 3;\n */\n value: Value;\n case: \"value\";\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,goHAAgoH;CAAC;CAA4B;CAA6B;CAAgC;AAAW,CAAC;;;;AA2iBjvH,MAAa,iBAkFX,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(\"Cg5zd2lwbGV0cy5wcm90bxIFc3dpcHQipgEKDVN3aXBsZXRBY3Rpb24SDAoEbmFtZRgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRItCgxpbnB1dF9zY2hlbWEYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Ei4KDW91dHB1dF9zY2hlbWEYBiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0SgQIBBAFIpMBCgxTZXJ2aWNlU3RhdGUSDwoHZW5hYmxlZBgBIAEoCBIkCgZzdGF0dXMYAiABKA4yFC5zd2lwdC5TZXJ2aWNlU3RhdHVzEiEKBWVycm9yGAMgASgLMhIuc3dpcHQuU2NyaXB0RXJyb3ISKQoFc2luY2UYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIpcBCgdTd2lwbGV0EgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJEg8KB3ZlcnNpb24YAyABKAkSEwoLaGFzX3NlcnZpY2UYBSABKAgSJAoHc2VydmljZRgGIAEoCzITLnN3aXB0LlNlcnZpY2VTdGF0ZRIlCgdhY3Rpb25zGAcgAygLMhQuc3dpcHQuU3dpcGxldEFjdGlvbiI4ChRMaXN0U3dpcGxldHNSZXNwb25zZRIgCghzd2lwbGV0cxgBIAMoCzIOLnN3aXB0LlN3aXBsZXQiXgoRQ2FsbEFjdGlvblJlcXVlc3QSEgoKc3dpcGxldF9pZBgBIAEoCRIOCgZhY3Rpb24YAiABKAkSJQoFaW5wdXQYAyAB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V2F0Y2hTZXJ2aWNlc1JlcXVlc3QaHC5zd2lwdC5XYXRjaFNlcnZpY2VzUmVzcG9uc2UwARJMCg1EZXBsb3lTd2lwbGV0Ehsuc3dpcHQuRGVwbG95U3dpcGxldFJlcXVlc3QaHC5zd2lwdC5EZXBsb3lTd2lwbGV0UmVzcG9uc2UoARJECg1SZW1vdmVTd2lwbGV0Ehsuc3dpcHQuUmVtb3ZlU3dpcGxldFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkSSgoNTGlzdERhdGFGaWxlcxIbLnN3aXB0Lkxpc3REYXRhRmlsZXNSZXF1ZXN0Ghwuc3dpcHQuTGlzdERhdGFGaWxlc1Jlc3BvbnNlEkkKDFJlYWREYXRhRmlsZRIaLnN3aXB0LlJlYWREYXRhRmlsZVJlcXVlc3QaGy5zd2lwdC5SZWFkRGF0YUZpbGVSZXNwb25zZTABEkwKDVdyaXRlRGF0YUZpbGUSGy5zd2lwdC5Xcml0ZURhdGFGaWxlUmVxdWVzdBocLnN3aXB0LldyaXRlRGF0YUZpbGVSZXNwb25zZSgBEkYKDlJlbW92ZURhdGFGaWxlEhwuc3dpcHQuUmVtb3ZlRGF0YUZpbGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5QjJaMGdpdGh1Yi5jb20vc3dpcHQtYXV0b21hdGlvbi9zd2lwdC9pbnRlcm5hbC9wcm90b2IGcHJvdG8z\", [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: 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_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 } | {\n /**\n * @generated from field: google.protobuf.Value value = 3;\n */\n value: Value;\n case: \"value\";\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,goHAAgoH;CAAC;CAA4B;CAA6B;CAAgC;AAAW,CAAC;;;;;AA8GjvH,MAAa,gBACX,0BAAY,eAAe,CAAC;;;;AA4b9B,MAAa,iBAkFX,0BAAY,eAAe,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { DeviceConnection } from "./common_pb.js";
2
+ import { Message } from "@bufbuild/protobuf";
3
+ import "@bufbuild/protobuf/codegenv2";
4
+ import "@bufbuild/protobuf/wkt";
5
+ /**
6
+ * @generated from message swipt.GetInfoResponse
7
+ */
8
+ export type GetInfoResponse = Message<"swipt.GetInfoResponse"> & {
9
+ /**
10
+ * @generated from field: string server_version = 1;
11
+ */
12
+ serverVersion: string;
13
+ /**
14
+ * @generated from field: string device_name = 2;
15
+ */
16
+ deviceName: string;
17
+ /**
18
+ * @generated from field: string udid = 3;
19
+ */
20
+ udid: string;
21
+ /**
22
+ * @generated from field: swipt.DeviceConnection device_connection = 4;
23
+ */
24
+ deviceConnection?: DeviceConnection | undefined;
25
+ /**
26
+ * @generated from field: string app_version = 5;
27
+ */
28
+ appVersion: string;
29
+ /**
30
+ * @generated from field: string app_build = 6;
31
+ */
32
+ appBuild: string;
33
+ };