@houser/edus-plugin 1.0.7 → 1.0.9
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/README.md +13 -3
- package/cordis.yml +73 -0
- package/lib/client.js +16875 -1894
- package/lib/index.js +114 -26
- package/lib/typert.host.js +429 -115
- package/lib/typert.remote-client.d.ts +22 -2
- package/lib/typert.remote-client.js +423 -114
- package/lib/types/auth.d.ts +3 -0
- package/lib/types/client/HtmlWorkbench.d.ts +1 -0
- package/lib/types/client/LoginGuide.d.ts +33 -0
- package/lib/types/client/MyWorksPanel.d.ts +14 -0
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/llm-gateway.d.ts +14 -0
- package/lib/types/types.d.ts +14 -0
- package/lib/types/webpage-command.d.ts +8 -0
- package/lib/types/webpage-instruction.d.ts +1 -1
- package/package.json +42 -47
- package/lib/types/client/MyWorksAction.d.ts +0 -7
- package/lib/types/invariant.d.ts +0 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
2
|
import type {
|
|
3
3
|
RemoteResult,
|
|
4
|
-
|
|
4
|
+
TypertRemoteInfo,
|
|
5
|
+
TypertRemoteMethod,
|
|
5
6
|
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
7
|
import type { EdusHtmlFileListResult, EdusLoginResult, EdusPublishResult, EdusVersionSummary, EdusWorkListResult } from '@houser/edus-plugin/types'
|
|
7
8
|
|
|
@@ -20,6 +21,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
20
21
|
publishFile: (token: string, sessionId: string, path: string, account: string, title?: string, createNew?: boolean) => Promise<RemoteResult<EdusPublishResult>>
|
|
21
22
|
readHtmlFile: (sessionId: string, path: string) => Promise<RemoteResult<string>>
|
|
22
23
|
sendPhoneCode: (phone: string, captcha: string) => Promise<RemoteResult<void>>
|
|
24
|
+
setLlmToken: (token: string) => Promise<RemoteResult<void>>
|
|
23
25
|
shareOrigin: () => Promise<RemoteResult<string>>
|
|
24
26
|
writeHtmlFile: (sessionId: string, path: string, content: string) => Promise<RemoteResult<void>>
|
|
25
27
|
}
|
|
@@ -37,6 +39,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
37
39
|
'edus/publishFile': (token: string, sessionId: string, path: string, account: string, title?: string, createNew?: boolean) => Promise<RemoteResult<EdusPublishResult>>
|
|
38
40
|
'edus/readHtmlFile': (sessionId: string, path: string) => Promise<RemoteResult<string>>
|
|
39
41
|
'edus/sendPhoneCode': (phone: string, captcha: string) => Promise<RemoteResult<void>>
|
|
42
|
+
'edus/setLlmToken': (token: string) => Promise<RemoteResult<void>>
|
|
40
43
|
'edus/shareOrigin': () => Promise<RemoteResult<string>>
|
|
41
44
|
'edus/writeHtmlFile': (sessionId: string, path: string, content: string) => Promise<RemoteResult<void>>
|
|
42
45
|
}
|
|
@@ -45,6 +48,23 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
export declare const TYPERT_REMOTE:
|
|
51
|
+
export declare const TYPERT_REMOTE: TypertRemoteInfo<{
|
|
52
|
+
readonly 'edus/applyVersion': TypertRemoteMethod<{ readonly 'token': string; readonly 'sessionId': string; readonly 'path': string; readonly 'id': string }, string>
|
|
53
|
+
readonly 'edus/htmlList': TypertRemoteMethod<{ readonly 'token': string; readonly 'page': number; readonly 'size': number; readonly 'search'?: string }, EdusWorkListResult>
|
|
54
|
+
readonly 'edus/htmlShare': TypertRemoteMethod<{ readonly 'token': string; readonly 'id': string }, string>
|
|
55
|
+
readonly 'edus/htmlVersionDelete': TypertRemoteMethod<{ readonly 'token': string; readonly 'id': string }, void>
|
|
56
|
+
readonly 'edus/htmlVersionDetail': TypertRemoteMethod<{ readonly 'token': string; readonly 'id': string }, string>
|
|
57
|
+
readonly 'edus/htmlVersions': TypertRemoteMethod<{ readonly 'token': string; readonly 'htmlId': string }, EdusVersionSummary[]>
|
|
58
|
+
readonly 'edus/listHtmlFiles': TypertRemoteMethod<{ readonly 'sessionId': string }, EdusHtmlFileListResult>
|
|
59
|
+
readonly 'edus/login': TypertRemoteMethod<{ readonly 'phone': string; readonly 'password': string }, EdusLoginResult>
|
|
60
|
+
readonly 'edus/loginByPhone': TypertRemoteMethod<{ readonly 'phone': string; readonly 'code': string }, EdusLoginResult>
|
|
61
|
+
readonly 'edus/loginInfo': TypertRemoteMethod<{ readonly 'token': string }, EdusLoginResult>
|
|
62
|
+
readonly 'edus/publishFile': TypertRemoteMethod<{ readonly 'token': string; readonly 'sessionId': string; readonly 'path': string; readonly 'account': string; readonly 'title'?: string; readonly 'createNew'?: boolean }, EdusPublishResult>
|
|
63
|
+
readonly 'edus/readHtmlFile': TypertRemoteMethod<{ readonly 'sessionId': string; readonly 'path': string }, string>
|
|
64
|
+
readonly 'edus/sendPhoneCode': TypertRemoteMethod<{ readonly 'phone': string; readonly 'captcha': string }, void>
|
|
65
|
+
readonly 'edus/setLlmToken': TypertRemoteMethod<{ readonly 'token': string }, void>
|
|
66
|
+
readonly 'edus/shareOrigin': TypertRemoteMethod<{ }, string>
|
|
67
|
+
readonly 'edus/writeHtmlFile': TypertRemoteMethod<{ readonly 'sessionId': string; readonly 'path': string; readonly 'content': string }, void>
|
|
68
|
+
}>
|
|
49
69
|
export default TYPERT_REMOTE
|
|
50
70
|
//# sourceMappingURL=typert.remote-client.d.ts.map
|