@anycon/protocol 0.4.6 → 0.4.8
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/constants.d.ts +16 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +16 -1
- package/dist/constants.js.map +1 -1
- package/dist/generated.d.ts +449 -19
- package/dist/generated.d.ts.map +1 -1
- package/dist/method-types.d.ts +46 -3
- package/dist/method-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +16 -1
- package/src/generated.ts +479 -19
- package/src/method-types.ts +34 -2
- package/wasm/THIRD-PARTY-LICENSES.txt +1 -1
package/src/method-types.ts
CHANGED
|
@@ -27,9 +27,11 @@ import type {
|
|
|
27
27
|
JobDone,
|
|
28
28
|
JobProgress,
|
|
29
29
|
JobStarted,
|
|
30
|
+
JudgeInfo,
|
|
30
31
|
NodeAuditParams,
|
|
31
32
|
NodeAuditResult,
|
|
32
33
|
NodeConfigResult,
|
|
34
|
+
NodeDeleteJudgeBackendParams,
|
|
33
35
|
NodeDevicesResult,
|
|
34
36
|
NodeDoctorResult,
|
|
35
37
|
NodeEnrollApproveParams,
|
|
@@ -39,6 +41,7 @@ import type {
|
|
|
39
41
|
NodeEnrollListResult,
|
|
40
42
|
NodeEnrollResolved,
|
|
41
43
|
NodeEnrollStatusResult,
|
|
44
|
+
NodeGetConfigParams,
|
|
42
45
|
NodeInfo,
|
|
43
46
|
NodeLogsParams,
|
|
44
47
|
NodeLogsResult,
|
|
@@ -50,8 +53,11 @@ import type {
|
|
|
50
53
|
NodeSetConfigParams,
|
|
51
54
|
NodeSetEnrollEnabledParams,
|
|
52
55
|
NodeSetEnrollPasswordParams,
|
|
56
|
+
NodeSetJudgeBackendParams,
|
|
53
57
|
NodeStats,
|
|
54
58
|
NodeTwinLinkCodeResult,
|
|
59
|
+
NodeUpdateChanged,
|
|
60
|
+
NodeUpdateStatus,
|
|
55
61
|
PairAck,
|
|
56
62
|
PermissionListParams,
|
|
57
63
|
PermissionListResult,
|
|
@@ -64,6 +70,8 @@ import type {
|
|
|
64
70
|
PreviewOpenResult,
|
|
65
71
|
PreviewPortsParams,
|
|
66
72
|
PreviewPortsResult,
|
|
73
|
+
PreviewSetPortAllowedParams,
|
|
74
|
+
PreviewSetPortAllowedResult,
|
|
67
75
|
Project,
|
|
68
76
|
RenamedProject,
|
|
69
77
|
RepeatStateChanged,
|
|
@@ -100,16 +108,25 @@ import type {
|
|
|
100
108
|
SessionDiffParams,
|
|
101
109
|
SessionDiffResult,
|
|
102
110
|
SessionEvent,
|
|
111
|
+
SessionForkParams,
|
|
103
112
|
SessionGitStatus,
|
|
104
113
|
SessionGitStatusParams,
|
|
105
114
|
SessionHistoryParams,
|
|
106
115
|
SessionHistoryResult,
|
|
107
116
|
SessionIdParams,
|
|
117
|
+
SessionImportListParams,
|
|
118
|
+
SessionImportListResult,
|
|
119
|
+
SessionImportParams,
|
|
108
120
|
SessionListParams,
|
|
109
121
|
SessionListResult,
|
|
110
122
|
SessionMarkReadParams,
|
|
111
123
|
SessionPromoteParams,
|
|
124
|
+
SessionReadFileParams,
|
|
112
125
|
SessionRenameParams,
|
|
126
|
+
SessionRewindCheckParams,
|
|
127
|
+
SessionRewindCheckResult,
|
|
128
|
+
SessionRewindParams,
|
|
129
|
+
SessionRewindResult,
|
|
113
130
|
SessionSearchParams,
|
|
114
131
|
SessionSearchResult,
|
|
115
132
|
SessionSendParams,
|
|
@@ -120,6 +137,7 @@ import type {
|
|
|
120
137
|
SessionSummary,
|
|
121
138
|
SessionSyncBaseParams,
|
|
122
139
|
SessionSyncBaseResult,
|
|
140
|
+
SessionWatchParams,
|
|
123
141
|
Todo,
|
|
124
142
|
TodoAddParams,
|
|
125
143
|
TodoChanged,
|
|
@@ -178,6 +196,7 @@ import type {
|
|
|
178
196
|
/** C→D 请求方法。 */
|
|
179
197
|
export interface RequestMethods {
|
|
180
198
|
'node.info': { params: Empty; result: NodeInfo }
|
|
199
|
+
'node.update': { params: Empty; result: NodeUpdateStatus }
|
|
181
200
|
'node.devices': { params: Empty; result: NodeDevicesResult }
|
|
182
201
|
'node.revoke_device': { params: NodeRevokeDeviceParams; result: Empty }
|
|
183
202
|
'node.pair_begin': { params: NodePairBeginParams; result: NodePairBeginResult }
|
|
@@ -186,8 +205,10 @@ export interface RequestMethods {
|
|
|
186
205
|
'node.audit': { params: NodeAuditParams; result: NodeAuditResult }
|
|
187
206
|
'node.set_agent_defaults': { params: NodeSetAgentDefaultsParams; result: Empty }
|
|
188
207
|
'node.twin_link_code': { params: Empty; result: NodeTwinLinkCodeResult }
|
|
189
|
-
'node.get_config': { params:
|
|
208
|
+
'node.get_config': { params: NodeGetConfigParams; result: NodeConfigResult }
|
|
190
209
|
'node.set_config': { params: NodeSetConfigParams; result: NodeConfigResult }
|
|
210
|
+
'node.set_judge_backend': { params: NodeSetJudgeBackendParams; result: JudgeInfo }
|
|
211
|
+
'node.delete_judge_backend': { params: NodeDeleteJudgeBackendParams; result: JudgeInfo }
|
|
191
212
|
'node.logs': { params: NodeLogsParams; result: NodeLogsResult }
|
|
192
213
|
'node.enroll_list': { params: Empty; result: NodeEnrollListResult }
|
|
193
214
|
'node.enroll_approve': { params: NodeEnrollApproveParams; result: NodeEnrollApproveResult }
|
|
@@ -218,10 +239,15 @@ export interface RequestMethods {
|
|
|
218
239
|
'session.list': { params: SessionListParams; result: SessionListResult }
|
|
219
240
|
'session.get': { params: SessionIdParams; result: SessionSummary }
|
|
220
241
|
'session.create': { params: SessionCreateParams; result: SessionSummary }
|
|
242
|
+
'session.rewind': { params: SessionRewindParams; result: SessionRewindResult }
|
|
243
|
+
'session.rewind_check': { params: SessionRewindCheckParams; result: SessionRewindCheckResult }
|
|
244
|
+
'session.fork': { params: SessionForkParams; result: SessionSummary }
|
|
245
|
+
'session.import_list': { params: SessionImportListParams; result: SessionImportListResult }
|
|
246
|
+
'session.import': { params: SessionImportParams; result: SessionSummary }
|
|
221
247
|
'session.send': { params: SessionSendParams; result: SessionSendResult }
|
|
222
248
|
'session.cancel': { params: SessionIdParams; result: Empty }
|
|
223
249
|
'session.set_settings': { params: SessionSetSettingsParams; result: SessionSetSettingsResult }
|
|
224
|
-
'session.watch': { params:
|
|
250
|
+
'session.watch': { params: SessionWatchParams; result: Empty }
|
|
225
251
|
'session.unwatch': { params: SessionIdParams; result: Empty }
|
|
226
252
|
'session.history': { params: SessionHistoryParams; result: SessionHistoryResult }
|
|
227
253
|
'session.rename': { params: SessionRenameParams; result: Empty }
|
|
@@ -236,6 +262,7 @@ export interface RequestMethods {
|
|
|
236
262
|
'session.git_status': { params: SessionGitStatusParams; result: SessionGitStatus }
|
|
237
263
|
'session.diff': { params: SessionDiffParams; result: SessionDiffResult }
|
|
238
264
|
'session.sync_base': { params: SessionSyncBaseParams; result: SessionSyncBaseResult }
|
|
265
|
+
'session.read_file': { params: SessionReadFileParams; result: FsReadResult }
|
|
239
266
|
'todo.list': { params: TodoListParams; result: TodoListResult }
|
|
240
267
|
'todo.get': { params: TodoIdParams; result: Todo }
|
|
241
268
|
'todo.add': { params: TodoAddParams; result: Todo }
|
|
@@ -282,11 +309,16 @@ export interface RequestMethods {
|
|
|
282
309
|
'preview.close': { params: PreviewCloseParams; result: Empty }
|
|
283
310
|
'preview.list': { params: Empty; result: PreviewListResult }
|
|
284
311
|
'preview.ports': { params: PreviewPortsParams; result: PreviewPortsResult }
|
|
312
|
+
'preview.set_port_allowed': {
|
|
313
|
+
params: PreviewSetPortAllowedParams
|
|
314
|
+
result: PreviewSetPortAllowedResult
|
|
315
|
+
}
|
|
285
316
|
}
|
|
286
317
|
|
|
287
318
|
/** D→C 通知方法(没有响应)。 */
|
|
288
319
|
export interface NotificationMethods {
|
|
289
320
|
'pair.ack': { params: PairAck }
|
|
321
|
+
'node.update_changed': { params: NodeUpdateChanged }
|
|
290
322
|
'node.enroll_requested': { params: EnrollInfo }
|
|
291
323
|
'node.enroll_resolved': { params: NodeEnrollResolved }
|
|
292
324
|
'node.security_event': { params: NodeSecurityEvent }
|
|
@@ -1705,7 +1705,7 @@ limitations under the License.
|
|
|
1705
1705
|
Apache License 2.0 (Apache-2.0)
|
|
1706
1706
|
|
|
1707
1707
|
Used by:
|
|
1708
|
-
anycon-crypto 0.4.
|
|
1708
|
+
anycon-crypto 0.4.8
|
|
1709
1709
|
pin-project-lite 0.2.17 <https://github.com/taiki-e/pin-project-lite>
|
|
1710
1710
|
proc-macro2 1.0.107 <https://github.com/dtolnay/proc-macro2>
|
|
1711
1711
|
quote 1.0.47 <https://github.com/dtolnay/quote>
|