@anycon/protocol 0.4.7 → 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 +14 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +14 -1
- package/dist/constants.js.map +1 -1
- package/dist/generated.d.ts +420 -19
- package/dist/generated.d.ts.map +1 -1
- package/dist/method-types.d.ts +42 -3
- package/dist/method-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +14 -1
- package/src/generated.ts +450 -19
- package/src/method-types.ts +32 -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,17 +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,
|
|
112
124
|
SessionReadFileParams,
|
|
113
125
|
SessionRenameParams,
|
|
126
|
+
SessionRewindCheckParams,
|
|
127
|
+
SessionRewindCheckResult,
|
|
128
|
+
SessionRewindParams,
|
|
129
|
+
SessionRewindResult,
|
|
114
130
|
SessionSearchParams,
|
|
115
131
|
SessionSearchResult,
|
|
116
132
|
SessionSendParams,
|
|
@@ -121,6 +137,7 @@ import type {
|
|
|
121
137
|
SessionSummary,
|
|
122
138
|
SessionSyncBaseParams,
|
|
123
139
|
SessionSyncBaseResult,
|
|
140
|
+
SessionWatchParams,
|
|
124
141
|
Todo,
|
|
125
142
|
TodoAddParams,
|
|
126
143
|
TodoChanged,
|
|
@@ -179,6 +196,7 @@ import type {
|
|
|
179
196
|
/** C→D 请求方法。 */
|
|
180
197
|
export interface RequestMethods {
|
|
181
198
|
'node.info': { params: Empty; result: NodeInfo }
|
|
199
|
+
'node.update': { params: Empty; result: NodeUpdateStatus }
|
|
182
200
|
'node.devices': { params: Empty; result: NodeDevicesResult }
|
|
183
201
|
'node.revoke_device': { params: NodeRevokeDeviceParams; result: Empty }
|
|
184
202
|
'node.pair_begin': { params: NodePairBeginParams; result: NodePairBeginResult }
|
|
@@ -187,8 +205,10 @@ export interface RequestMethods {
|
|
|
187
205
|
'node.audit': { params: NodeAuditParams; result: NodeAuditResult }
|
|
188
206
|
'node.set_agent_defaults': { params: NodeSetAgentDefaultsParams; result: Empty }
|
|
189
207
|
'node.twin_link_code': { params: Empty; result: NodeTwinLinkCodeResult }
|
|
190
|
-
'node.get_config': { params:
|
|
208
|
+
'node.get_config': { params: NodeGetConfigParams; result: NodeConfigResult }
|
|
191
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 }
|
|
192
212
|
'node.logs': { params: NodeLogsParams; result: NodeLogsResult }
|
|
193
213
|
'node.enroll_list': { params: Empty; result: NodeEnrollListResult }
|
|
194
214
|
'node.enroll_approve': { params: NodeEnrollApproveParams; result: NodeEnrollApproveResult }
|
|
@@ -219,10 +239,15 @@ export interface RequestMethods {
|
|
|
219
239
|
'session.list': { params: SessionListParams; result: SessionListResult }
|
|
220
240
|
'session.get': { params: SessionIdParams; result: SessionSummary }
|
|
221
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 }
|
|
222
247
|
'session.send': { params: SessionSendParams; result: SessionSendResult }
|
|
223
248
|
'session.cancel': { params: SessionIdParams; result: Empty }
|
|
224
249
|
'session.set_settings': { params: SessionSetSettingsParams; result: SessionSetSettingsResult }
|
|
225
|
-
'session.watch': { params:
|
|
250
|
+
'session.watch': { params: SessionWatchParams; result: Empty }
|
|
226
251
|
'session.unwatch': { params: SessionIdParams; result: Empty }
|
|
227
252
|
'session.history': { params: SessionHistoryParams; result: SessionHistoryResult }
|
|
228
253
|
'session.rename': { params: SessionRenameParams; result: Empty }
|
|
@@ -284,11 +309,16 @@ export interface RequestMethods {
|
|
|
284
309
|
'preview.close': { params: PreviewCloseParams; result: Empty }
|
|
285
310
|
'preview.list': { params: Empty; result: PreviewListResult }
|
|
286
311
|
'preview.ports': { params: PreviewPortsParams; result: PreviewPortsResult }
|
|
312
|
+
'preview.set_port_allowed': {
|
|
313
|
+
params: PreviewSetPortAllowedParams
|
|
314
|
+
result: PreviewSetPortAllowedResult
|
|
315
|
+
}
|
|
287
316
|
}
|
|
288
317
|
|
|
289
318
|
/** D→C 通知方法(没有响应)。 */
|
|
290
319
|
export interface NotificationMethods {
|
|
291
320
|
'pair.ack': { params: PairAck }
|
|
321
|
+
'node.update_changed': { params: NodeUpdateChanged }
|
|
292
322
|
'node.enroll_requested': { params: EnrollInfo }
|
|
293
323
|
'node.enroll_resolved': { params: NodeEnrollResolved }
|
|
294
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>
|