@khorsheed/dsh-library 0.0.0-stage → 0.1.0
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/CHANGELOG.md +14 -0
- package/README.en.md +49 -0
- package/README.i18n.yaml +6 -0
- package/README.md +48 -2
- package/cordis.patch.yml +17 -0
- package/lib/client.js +66276 -0
- package/lib/index.js +3318 -0
- package/lib/profiles-BXM8xNUf.js +1608 -0
- package/lib/profiles-BrbeM-bi.js +1635 -0
- package/lib/profiles-CFrPQdfO.js +1692 -0
- package/lib/profiles-DxtzIUvd.js +1632 -0
- package/lib/profiles-O0ddEit3.js +1631 -0
- package/lib/profiles-Oj-zBAY9.js +1692 -0
- package/lib/profiles-gIEviEuO.js +1610 -0
- package/lib/store-CIcZgTsg.js +1456 -0
- package/lib/store-DfYOmS44.js +1418 -0
- package/lib/tool.js +1597 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +3811 -0
- package/lib/typert.remote-client.d.ts +137 -0
- package/lib/typert.remote-client.js +3077 -0
- package/lib/types/cards.d.ts +41 -0
- package/lib/types/cards.js +111 -0
- package/lib/types/client/LibraryPane.d.ts +26 -0
- package/lib/types/client/LibraryPane.js +117 -0
- package/lib/types/client/bind/BindChip.d.ts +33 -0
- package/lib/types/client/bind/BindChip.js +102 -0
- package/lib/types/client/contract.d.ts +164 -0
- package/lib/types/client/contract.js +1 -0
- package/lib/types/client/covers.d.ts +36 -0
- package/lib/types/client/covers.js +66 -0
- package/lib/types/client/definition.d.ts +27 -0
- package/lib/types/client/definition.js +32 -0
- package/lib/types/client/icons-local.d.ts +41 -0
- package/lib/types/client/icons-local.js +25 -0
- package/lib/types/client/icons.d.ts +27 -0
- package/lib/types/client/icons.js +11 -0
- package/lib/types/client/index.d.ts +35 -0
- package/lib/types/client/index.js +219 -0
- package/lib/types/client/judge.d.ts +70 -0
- package/lib/types/client/judge.js +262 -0
- package/lib/types/client/locales.d.ts +553 -0
- package/lib/types/client/locales.js +1076 -0
- package/lib/types/client/look.d.ts +63 -0
- package/lib/types/client/look.js +64 -0
- package/lib/types/client/math.d.ts +24 -0
- package/lib/types/client/math.js +47 -0
- package/lib/types/client/mistakes.d.ts +21 -0
- package/lib/types/client/mistakes.js +28 -0
- package/lib/types/client/preset-visibility.d.ts +109 -0
- package/lib/types/client/preset-visibility.js +123 -0
- package/lib/types/client/quiz-drafts.d.ts +29 -0
- package/lib/types/client/quiz-drafts.js +50 -0
- package/lib/types/client/store.d.ts +109 -0
- package/lib/types/client/store.js +44 -0
- package/lib/types/client/titles.d.ts +17 -0
- package/lib/types/client/titles.js +23 -0
- package/lib/types/client/ui.d.ts +96 -0
- package/lib/types/client/ui.js +124 -0
- package/lib/types/client/views/book.d.ts +57 -0
- package/lib/types/client/views/book.js +164 -0
- package/lib/types/client/views/cards.d.ts +17 -0
- package/lib/types/client/views/cards.js +53 -0
- package/lib/types/client/views/home.d.ts +26 -0
- package/lib/types/client/views/home.js +263 -0
- package/lib/types/client/views/lesson.d.ts +42 -0
- package/lib/types/client/views/lesson.js +146 -0
- package/lib/types/client/views/path.d.ts +32 -0
- package/lib/types/client/views/path.js +64 -0
- package/lib/types/client/views/quiz.d.ts +42 -0
- package/lib/types/client/views/quiz.js +366 -0
- package/lib/types/client/views/station-quiz.d.ts +43 -0
- package/lib/types/client/views/station-quiz.js +203 -0
- package/lib/types/client/views/station.d.ts +18 -0
- package/lib/types/client/views/station.js +142 -0
- package/lib/types/image-refs.d.ts +35 -0
- package/lib/types/image-refs.js +71 -0
- package/lib/types/index.d.ts +51 -0
- package/lib/types/index.js +31 -0
- package/lib/types/mastery.d.ts +81 -0
- package/lib/types/mastery.js +110 -0
- package/lib/types/profiles.d.ts +31 -0
- package/lib/types/profiles.js +25 -0
- package/lib/types/remote.d.ts +355 -0
- package/lib/types/remote.js +332 -0
- package/lib/types/service/assess.d.ts +144 -0
- package/lib/types/service/assess.js +773 -0
- package/lib/types/service/bindings.d.ts +92 -0
- package/lib/types/service/bindings.js +198 -0
- package/lib/types/service/cards.d.ts +85 -0
- package/lib/types/service/cards.js +320 -0
- package/lib/types/service/core.d.ts +124 -0
- package/lib/types/service/core.js +169 -0
- package/lib/types/service/pages.d.ts +60 -0
- package/lib/types/service/pages.js +125 -0
- package/lib/types/service/roadmap.d.ts +99 -0
- package/lib/types/service/roadmap.js +284 -0
- package/lib/types/service/rules.d.ts +63 -0
- package/lib/types/service/rules.js +245 -0
- package/lib/types/service/shelf.d.ts +136 -0
- package/lib/types/service/shelf.js +422 -0
- package/lib/types/service.d.ts +42 -0
- package/lib/types/service.js +41 -0
- package/lib/types/store.d.ts +257 -0
- package/lib/types/store.js +1376 -0
- package/lib/types/tool-definition.d.ts +49 -0
- package/lib/types/tool-definition.js +49 -0
- package/lib/types/tool.d.ts +71 -0
- package/lib/types/tool.js +174 -0
- package/lib/types/tools/assess.d.ts +11 -0
- package/lib/types/tools/assess.js +82 -0
- package/lib/types/tools/binding.d.ts +11 -0
- package/lib/types/tools/binding.js +46 -0
- package/lib/types/tools/cards.d.ts +11 -0
- package/lib/types/tools/cards.js +100 -0
- package/lib/types/tools/kit.d.ts +215 -0
- package/lib/types/tools/kit.js +281 -0
- package/lib/types/tools/notes.d.ts +11 -0
- package/lib/types/tools/notes.js +40 -0
- package/lib/types/tools/page.d.ts +11 -0
- package/lib/types/tools/page.js +59 -0
- package/lib/types/tools/project.d.ts +11 -0
- package/lib/types/tools/project.js +67 -0
- package/lib/types/tools/quiz.d.ts +11 -0
- package/lib/types/tools/quiz.js +74 -0
- package/lib/types/tools/read.d.ts +11 -0
- package/lib/types/tools/read.js +127 -0
- package/lib/types/tools/resource.d.ts +11 -0
- package/lib/types/tools/resource.js +147 -0
- package/lib/types/tools/roadmap.d.ts +11 -0
- package/lib/types/tools/roadmap.js +102 -0
- package/lib/types/types.d.ts +752 -0
- package/lib/types/types.js +159 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +135 -3
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import type {
|
|
3
|
+
RemoteResult,
|
|
4
|
+
TypertRemoteInfo,
|
|
5
|
+
TypertRemoteMethod,
|
|
6
|
+
} from '@deepseek-ai/dsh-typert-protocol'
|
|
7
|
+
import type { SessionId } from '@deepseek-ai/dsh-session/types'
|
|
8
|
+
import type { LibraryAssessment, LibraryAssessResult, LibraryAttachmentRef, LibraryAttempt, LibraryBinding, LibraryBookKind, LibraryCapabilities, LibraryCard, LibraryCardInput, LibraryCardQuery, LibraryCardWriteResult, LibraryColor, LibraryEvent, LibraryEventType, LibraryIcon, LibraryMark, LibraryOutcome, LibraryPage, LibraryProject, LibraryProjectPatch, LibraryProjectSummary, LibraryResource, LibraryResourceKind, LibraryResourceOrigin, LibraryReviewRating, LibraryRoadmap, LibraryTemplate, LibraryTocSource, LibraryVerdict } from '@khorsheed/dsh-library/types'
|
|
9
|
+
|
|
10
|
+
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
11
|
+
interface TypertRemoteNamespace$6c696272617279 {
|
|
12
|
+
adoptRoadmap: (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ roadmap: LibraryRoadmap; }>>>
|
|
13
|
+
bindTarget: (sessionId: SessionId, request: { binding: LibraryBinding | null; }) => Promise<RemoteResult<LibraryOutcome<{ binding: LibraryBinding | null; }>>>
|
|
14
|
+
boundTarget: (sessionId: SessionId) => Promise<RemoteResult<LibraryBinding | null>>
|
|
15
|
+
capabilities: () => Promise<RemoteResult<LibraryCapabilities>>
|
|
16
|
+
createProject: (request: { name: string; template?: LibraryTemplate; templateNote?: string; goal?: string; color?: LibraryColor; icon?: LibraryIcon; }) => Promise<RemoteResult<LibraryOutcome<{ project: LibraryProject; }>>>
|
|
17
|
+
createRetake: (request: { projectId: string; resourceId?: string; nodeId?: string; keys?: readonly string[]; }) => Promise<RemoteResult<LibraryOutcome<{ assessment: LibraryAssessment; }>>>
|
|
18
|
+
deleteProject: (request: { id: string; }) => Promise<RemoteResult<LibraryOutcome<{ id: string; }>>>
|
|
19
|
+
discardDraft: (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ resourceId: string; }>>>
|
|
20
|
+
dueCards: (request: { projectId?: string; limit?: number; }) => Promise<RemoteResult<{ cards: (LibraryCard & { projectId: string; })[]; }>>
|
|
21
|
+
editCard: (request: { projectId: string; cardId: string; patch: { term?: string; gloss?: string; userGloss?: string; aliases?: readonly string[]; status?: LibraryCard['status']; resourceId?: string | null; }; }) => Promise<RemoteResult<LibraryOutcome<{ card: LibraryCard; }>>>
|
|
22
|
+
getAssessment: (request: { projectId: string; assessmentId: string; }) => Promise<RemoteResult<LibraryOutcome<{ assessment: LibraryAssessment; }>>>
|
|
23
|
+
getProject: (request: { id: string; }) => Promise<RemoteResult<LibraryOutcome<{ project: LibraryProjectSummary; resources: LibraryResource[]; }>>>
|
|
24
|
+
getResource: (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ resource: LibraryResource; }>>>
|
|
25
|
+
getRoadmap: (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<{ roadmap?: LibraryRoadmap; draft?: LibraryRoadmap; }>>
|
|
26
|
+
latestActivity: () => Promise<RemoteResult<{ at?: string; session?: { id: string; at: string; }; }>>
|
|
27
|
+
listAssessments: (request: { projectId: string; resourceId?: string; nodeId?: string; type?: 'quiz' | 'practice'; }) => Promise<RemoteResult<{ assessments: LibraryAssessment[]; }>>
|
|
28
|
+
listAttempts: (request: { projectId: string; nodeId?: string; assessmentId?: string; }) => Promise<RemoteResult<{ attempts: LibraryAttempt[]; }>>
|
|
29
|
+
listCards: (request: LibraryCardQuery) => Promise<RemoteResult<{ cards: LibraryCard[]; total: number; }>>
|
|
30
|
+
listEvents: (request: { projectId: string; limit?: number; types?: readonly LibraryEventType[]; }) => Promise<RemoteResult<{ events: LibraryEvent[]; }>>
|
|
31
|
+
listPages: (request: { projectId: string; resourceId: string; nodeId?: string; }) => Promise<RemoteResult<{ pages: LibraryPage[]; }>>
|
|
32
|
+
listProjects: () => Promise<RemoteResult<{ projects: LibraryProjectSummary[]; }>>
|
|
33
|
+
listResources: (request: { projectId: string; }) => Promise<RemoteResult<{ resources: LibraryResource[]; }>>
|
|
34
|
+
markNodeRead: (request: { projectId: string; resourceId?: string; nodeId: string; }) => Promise<RemoteResult<LibraryOutcome<{ roadmap: LibraryRoadmap; unlocked: string[]; }>>>
|
|
35
|
+
moveResource: (request: { projectId: string; resourceId: string; seq: number; }) => Promise<RemoteResult<LibraryOutcome<{ resources: LibraryResource[]; }>>>
|
|
36
|
+
putAttempt: (request: { projectId: string; assessmentId?: string; quizId?: string; nodeId?: string; resourceId?: string; verdicts: readonly LibraryVerdict[]; }) => Promise<RemoteResult<LibraryOutcome<LibraryAssessResult>>>
|
|
37
|
+
putResource: (request: { projectId: string; resourceId?: string; title: string; kind: LibraryResourceKind; url?: string; note?: string; origin?: LibraryResourceOrigin; seq?: number; toc?: readonly { title: string; part?: string; }[]; tocSource?: LibraryTocSource; bookKind?: LibraryBookKind; short?: string; extras?: readonly { title: string; note?: string; where?: string; when?: 'before' | 'reference'; }[]; author?: string; edition?: string; isbn?: string; from?: { projectId: string; resourceId: string; }; }) => Promise<RemoteResult<LibraryOutcome<{ resource: LibraryResource; }>>>
|
|
38
|
+
readPagePhoto: (request: { projectId: string; pageId: string; }) => Promise<RemoteResult<LibraryOutcome<{ data: string; mediaType: string; }>>>
|
|
39
|
+
recentChanges: (request: { limit?: number; }) => Promise<RemoteResult<{ changes: (LibraryEvent & { projectId: string; projectName: string; })[]; }>>
|
|
40
|
+
recentRecords: (request: { limit?: number; }) => Promise<RemoteResult<{ records: (LibraryEvent & { projectId: string; projectName: string; })[]; }>>
|
|
41
|
+
recordPage: (request: { projectId: string; resourceId: string; nodeId?: string; label?: string; attachment: LibraryAttachmentRef; text: string; marks: readonly LibraryMark[]; }) => Promise<RemoteResult<LibraryOutcome<{ page: LibraryPage; cards: LibraryCardWriteResult; uncertain: string[]; }>>>
|
|
42
|
+
removeResource: (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ id: string; }>>>
|
|
43
|
+
reviewCard: (request: { projectId: string; cardId: string; rating: LibraryReviewRating; }) => Promise<RemoteResult<LibraryOutcome<{ card: LibraryCard; }>>>
|
|
44
|
+
savePhoto: (request: { data: string; mediaType: string; }) => Promise<RemoteResult<LibraryOutcome<{ attachment: LibraryAttachmentRef; }>>>
|
|
45
|
+
setBookKind: (request: { projectId: string; resourceId: string; bookKind: 'knowledge' | 'material'; }) => Promise<RemoteResult<LibraryOutcome<{ resource: LibraryResource; }>>>
|
|
46
|
+
stats: () => Promise<RemoteResult<{ projects: number; books: number; cards: number; due: number; quizzes: number; attempts: number; }>>
|
|
47
|
+
undoCards: (request: { projectId: string; ids: readonly string[]; at: string; }) => Promise<RemoteResult<LibraryOutcome<{ removed: number; reverted: number; }>>>
|
|
48
|
+
updateProject: (request: { id: string; patch: LibraryProjectPatch; }) => Promise<RemoteResult<LibraryOutcome<{ project: LibraryProject; }>>>
|
|
49
|
+
writeCards: (request: { projectId: string; resourceId?: string; cards: readonly LibraryCardInput[]; }) => Promise<RemoteResult<LibraryOutcome<LibraryCardWriteResult>>>
|
|
50
|
+
}
|
|
51
|
+
interface TypertRemoteMap {
|
|
52
|
+
'library/adoptRoadmap': (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ roadmap: LibraryRoadmap; }>>>
|
|
53
|
+
'library/bindTarget': (sessionId: SessionId, request: { binding: LibraryBinding | null; }) => Promise<RemoteResult<LibraryOutcome<{ binding: LibraryBinding | null; }>>>
|
|
54
|
+
'library/boundTarget': (sessionId: SessionId) => Promise<RemoteResult<LibraryBinding | null>>
|
|
55
|
+
'library/capabilities': () => Promise<RemoteResult<LibraryCapabilities>>
|
|
56
|
+
'library/createProject': (request: { name: string; template?: LibraryTemplate; templateNote?: string; goal?: string; color?: LibraryColor; icon?: LibraryIcon; }) => Promise<RemoteResult<LibraryOutcome<{ project: LibraryProject; }>>>
|
|
57
|
+
'library/createRetake': (request: { projectId: string; resourceId?: string; nodeId?: string; keys?: readonly string[]; }) => Promise<RemoteResult<LibraryOutcome<{ assessment: LibraryAssessment; }>>>
|
|
58
|
+
'library/deleteProject': (request: { id: string; }) => Promise<RemoteResult<LibraryOutcome<{ id: string; }>>>
|
|
59
|
+
'library/discardDraft': (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ resourceId: string; }>>>
|
|
60
|
+
'library/dueCards': (request: { projectId?: string; limit?: number; }) => Promise<RemoteResult<{ cards: (LibraryCard & { projectId: string; })[]; }>>
|
|
61
|
+
'library/editCard': (request: { projectId: string; cardId: string; patch: { term?: string; gloss?: string; userGloss?: string; aliases?: readonly string[]; status?: LibraryCard['status']; resourceId?: string | null; }; }) => Promise<RemoteResult<LibraryOutcome<{ card: LibraryCard; }>>>
|
|
62
|
+
'library/getAssessment': (request: { projectId: string; assessmentId: string; }) => Promise<RemoteResult<LibraryOutcome<{ assessment: LibraryAssessment; }>>>
|
|
63
|
+
'library/getProject': (request: { id: string; }) => Promise<RemoteResult<LibraryOutcome<{ project: LibraryProjectSummary; resources: LibraryResource[]; }>>>
|
|
64
|
+
'library/getResource': (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ resource: LibraryResource; }>>>
|
|
65
|
+
'library/getRoadmap': (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<{ roadmap?: LibraryRoadmap; draft?: LibraryRoadmap; }>>
|
|
66
|
+
'library/latestActivity': () => Promise<RemoteResult<{ at?: string; session?: { id: string; at: string; }; }>>
|
|
67
|
+
'library/listAssessments': (request: { projectId: string; resourceId?: string; nodeId?: string; type?: 'quiz' | 'practice'; }) => Promise<RemoteResult<{ assessments: LibraryAssessment[]; }>>
|
|
68
|
+
'library/listAttempts': (request: { projectId: string; nodeId?: string; assessmentId?: string; }) => Promise<RemoteResult<{ attempts: LibraryAttempt[]; }>>
|
|
69
|
+
'library/listCards': (request: LibraryCardQuery) => Promise<RemoteResult<{ cards: LibraryCard[]; total: number; }>>
|
|
70
|
+
'library/listEvents': (request: { projectId: string; limit?: number; types?: readonly LibraryEventType[]; }) => Promise<RemoteResult<{ events: LibraryEvent[]; }>>
|
|
71
|
+
'library/listPages': (request: { projectId: string; resourceId: string; nodeId?: string; }) => Promise<RemoteResult<{ pages: LibraryPage[]; }>>
|
|
72
|
+
'library/listProjects': () => Promise<RemoteResult<{ projects: LibraryProjectSummary[]; }>>
|
|
73
|
+
'library/listResources': (request: { projectId: string; }) => Promise<RemoteResult<{ resources: LibraryResource[]; }>>
|
|
74
|
+
'library/markNodeRead': (request: { projectId: string; resourceId?: string; nodeId: string; }) => Promise<RemoteResult<LibraryOutcome<{ roadmap: LibraryRoadmap; unlocked: string[]; }>>>
|
|
75
|
+
'library/moveResource': (request: { projectId: string; resourceId: string; seq: number; }) => Promise<RemoteResult<LibraryOutcome<{ resources: LibraryResource[]; }>>>
|
|
76
|
+
'library/putAttempt': (request: { projectId: string; assessmentId?: string; quizId?: string; nodeId?: string; resourceId?: string; verdicts: readonly LibraryVerdict[]; }) => Promise<RemoteResult<LibraryOutcome<LibraryAssessResult>>>
|
|
77
|
+
'library/putResource': (request: { projectId: string; resourceId?: string; title: string; kind: LibraryResourceKind; url?: string; note?: string; origin?: LibraryResourceOrigin; seq?: number; toc?: readonly { title: string; part?: string; }[]; tocSource?: LibraryTocSource; bookKind?: LibraryBookKind; short?: string; extras?: readonly { title: string; note?: string; where?: string; when?: 'before' | 'reference'; }[]; author?: string; edition?: string; isbn?: string; from?: { projectId: string; resourceId: string; }; }) => Promise<RemoteResult<LibraryOutcome<{ resource: LibraryResource; }>>>
|
|
78
|
+
'library/readPagePhoto': (request: { projectId: string; pageId: string; }) => Promise<RemoteResult<LibraryOutcome<{ data: string; mediaType: string; }>>>
|
|
79
|
+
'library/recentChanges': (request: { limit?: number; }) => Promise<RemoteResult<{ changes: (LibraryEvent & { projectId: string; projectName: string; })[]; }>>
|
|
80
|
+
'library/recentRecords': (request: { limit?: number; }) => Promise<RemoteResult<{ records: (LibraryEvent & { projectId: string; projectName: string; })[]; }>>
|
|
81
|
+
'library/recordPage': (request: { projectId: string; resourceId: string; nodeId?: string; label?: string; attachment: LibraryAttachmentRef; text: string; marks: readonly LibraryMark[]; }) => Promise<RemoteResult<LibraryOutcome<{ page: LibraryPage; cards: LibraryCardWriteResult; uncertain: string[]; }>>>
|
|
82
|
+
'library/removeResource': (request: { projectId: string; resourceId: string; }) => Promise<RemoteResult<LibraryOutcome<{ id: string; }>>>
|
|
83
|
+
'library/reviewCard': (request: { projectId: string; cardId: string; rating: LibraryReviewRating; }) => Promise<RemoteResult<LibraryOutcome<{ card: LibraryCard; }>>>
|
|
84
|
+
'library/savePhoto': (request: { data: string; mediaType: string; }) => Promise<RemoteResult<LibraryOutcome<{ attachment: LibraryAttachmentRef; }>>>
|
|
85
|
+
'library/setBookKind': (request: { projectId: string; resourceId: string; bookKind: 'knowledge' | 'material'; }) => Promise<RemoteResult<LibraryOutcome<{ resource: LibraryResource; }>>>
|
|
86
|
+
'library/stats': () => Promise<RemoteResult<{ projects: number; books: number; cards: number; due: number; quizzes: number; attempts: number; }>>
|
|
87
|
+
'library/undoCards': (request: { projectId: string; ids: readonly string[]; at: string; }) => Promise<RemoteResult<LibraryOutcome<{ removed: number; reverted: number; }>>>
|
|
88
|
+
'library/updateProject': (request: { id: string; patch: LibraryProjectPatch; }) => Promise<RemoteResult<LibraryOutcome<{ project: LibraryProject; }>>>
|
|
89
|
+
'library/writeCards': (request: { projectId: string; resourceId?: string; cards: readonly LibraryCardInput[]; }) => Promise<RemoteResult<LibraryOutcome<LibraryCardWriteResult>>>
|
|
90
|
+
}
|
|
91
|
+
interface TypertRemoteNamespaceMap {
|
|
92
|
+
'library': TypertRemoteNamespace$6c696272617279
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export declare const TYPERT_REMOTE: TypertRemoteInfo<{
|
|
97
|
+
readonly 'library/adoptRoadmap': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; } }, LibraryOutcome<{ roadmap: LibraryRoadmap; }>>
|
|
98
|
+
readonly 'library/bindTarget': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { binding: LibraryBinding | null; } }, LibraryOutcome<{ binding: LibraryBinding | null; }>>
|
|
99
|
+
readonly 'library/boundTarget': TypertRemoteMethod<{ readonly 'sessionId': SessionId }, LibraryBinding | null>
|
|
100
|
+
readonly 'library/capabilities': TypertRemoteMethod<{ }, LibraryCapabilities>
|
|
101
|
+
readonly 'library/createProject': TypertRemoteMethod<{ readonly 'request': { name: string; template?: LibraryTemplate; templateNote?: string; goal?: string; color?: LibraryColor; icon?: LibraryIcon; } }, LibraryOutcome<{ project: LibraryProject; }>>
|
|
102
|
+
readonly 'library/createRetake': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId?: string; nodeId?: string; keys?: readonly string[]; } }, LibraryOutcome<{ assessment: LibraryAssessment; }>>
|
|
103
|
+
readonly 'library/deleteProject': TypertRemoteMethod<{ readonly 'request': { id: string; } }, LibraryOutcome<{ id: string; }>>
|
|
104
|
+
readonly 'library/discardDraft': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; } }, LibraryOutcome<{ resourceId: string; }>>
|
|
105
|
+
readonly 'library/dueCards': TypertRemoteMethod<{ readonly 'request': { projectId?: string; limit?: number; } }, { cards: (LibraryCard & { projectId: string; })[]; }>
|
|
106
|
+
readonly 'library/editCard': TypertRemoteMethod<{ readonly 'request': { projectId: string; cardId: string; patch: { term?: string; gloss?: string; userGloss?: string; aliases?: readonly string[]; status?: LibraryCard['status']; resourceId?: string | null; }; } }, LibraryOutcome<{ card: LibraryCard; }>>
|
|
107
|
+
readonly 'library/getAssessment': TypertRemoteMethod<{ readonly 'request': { projectId: string; assessmentId: string; } }, LibraryOutcome<{ assessment: LibraryAssessment; }>>
|
|
108
|
+
readonly 'library/getProject': TypertRemoteMethod<{ readonly 'request': { id: string; } }, LibraryOutcome<{ project: LibraryProjectSummary; resources: LibraryResource[]; }>>
|
|
109
|
+
readonly 'library/getResource': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; } }, LibraryOutcome<{ resource: LibraryResource; }>>
|
|
110
|
+
readonly 'library/getRoadmap': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; } }, { roadmap?: LibraryRoadmap; draft?: LibraryRoadmap; }>
|
|
111
|
+
readonly 'library/latestActivity': TypertRemoteMethod<{ }, { at?: string; session?: { id: string; at: string; }; }>
|
|
112
|
+
readonly 'library/listAssessments': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId?: string; nodeId?: string; type?: 'quiz' | 'practice'; } }, { assessments: LibraryAssessment[]; }>
|
|
113
|
+
readonly 'library/listAttempts': TypertRemoteMethod<{ readonly 'request': { projectId: string; nodeId?: string; assessmentId?: string; } }, { attempts: LibraryAttempt[]; }>
|
|
114
|
+
readonly 'library/listCards': TypertRemoteMethod<{ readonly 'request': LibraryCardQuery }, { cards: LibraryCard[]; total: number; }>
|
|
115
|
+
readonly 'library/listEvents': TypertRemoteMethod<{ readonly 'request': { projectId: string; limit?: number; types?: readonly LibraryEventType[]; } }, { events: LibraryEvent[]; }>
|
|
116
|
+
readonly 'library/listPages': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; nodeId?: string; } }, { pages: LibraryPage[]; }>
|
|
117
|
+
readonly 'library/listProjects': TypertRemoteMethod<{ }, { projects: LibraryProjectSummary[]; }>
|
|
118
|
+
readonly 'library/listResources': TypertRemoteMethod<{ readonly 'request': { projectId: string; } }, { resources: LibraryResource[]; }>
|
|
119
|
+
readonly 'library/markNodeRead': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId?: string; nodeId: string; } }, LibraryOutcome<{ roadmap: LibraryRoadmap; unlocked: string[]; }>>
|
|
120
|
+
readonly 'library/moveResource': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; seq: number; } }, LibraryOutcome<{ resources: LibraryResource[]; }>>
|
|
121
|
+
readonly 'library/putAttempt': TypertRemoteMethod<{ readonly 'request': { projectId: string; assessmentId?: string; quizId?: string; nodeId?: string; resourceId?: string; verdicts: readonly LibraryVerdict[]; } }, LibraryOutcome<LibraryAssessResult>>
|
|
122
|
+
readonly 'library/putResource': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId?: string; title: string; kind: LibraryResourceKind; url?: string; note?: string; origin?: LibraryResourceOrigin; seq?: number; toc?: readonly { title: string; part?: string; }[]; tocSource?: LibraryTocSource; bookKind?: LibraryBookKind; short?: string; extras?: readonly { title: string; note?: string; where?: string; when?: 'before' | 'reference'; }[]; author?: string; edition?: string; isbn?: string; from?: { projectId: string; resourceId: string; }; } }, LibraryOutcome<{ resource: LibraryResource; }>>
|
|
123
|
+
readonly 'library/readPagePhoto': TypertRemoteMethod<{ readonly 'request': { projectId: string; pageId: string; } }, LibraryOutcome<{ data: string; mediaType: string; }>>
|
|
124
|
+
readonly 'library/recentChanges': TypertRemoteMethod<{ readonly 'request': { limit?: number; } }, { changes: (LibraryEvent & { projectId: string; projectName: string; })[]; }>
|
|
125
|
+
readonly 'library/recentRecords': TypertRemoteMethod<{ readonly 'request': { limit?: number; } }, { records: (LibraryEvent & { projectId: string; projectName: string; })[]; }>
|
|
126
|
+
readonly 'library/recordPage': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; nodeId?: string; label?: string; attachment: LibraryAttachmentRef; text: string; marks: readonly LibraryMark[]; } }, LibraryOutcome<{ page: LibraryPage; cards: LibraryCardWriteResult; uncertain: string[]; }>>
|
|
127
|
+
readonly 'library/removeResource': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; } }, LibraryOutcome<{ id: string; }>>
|
|
128
|
+
readonly 'library/reviewCard': TypertRemoteMethod<{ readonly 'request': { projectId: string; cardId: string; rating: LibraryReviewRating; } }, LibraryOutcome<{ card: LibraryCard; }>>
|
|
129
|
+
readonly 'library/savePhoto': TypertRemoteMethod<{ readonly 'request': { data: string; mediaType: string; } }, LibraryOutcome<{ attachment: LibraryAttachmentRef; }>>
|
|
130
|
+
readonly 'library/setBookKind': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId: string; bookKind: 'knowledge' | 'material'; } }, LibraryOutcome<{ resource: LibraryResource; }>>
|
|
131
|
+
readonly 'library/stats': TypertRemoteMethod<{ }, { projects: number; books: number; cards: number; due: number; quizzes: number; attempts: number; }>
|
|
132
|
+
readonly 'library/undoCards': TypertRemoteMethod<{ readonly 'request': { projectId: string; ids: readonly string[]; at: string; } }, LibraryOutcome<{ removed: number; reverted: number; }>>
|
|
133
|
+
readonly 'library/updateProject': TypertRemoteMethod<{ readonly 'request': { id: string; patch: LibraryProjectPatch; } }, LibraryOutcome<{ project: LibraryProject; }>>
|
|
134
|
+
readonly 'library/writeCards': TypertRemoteMethod<{ readonly 'request': { projectId: string; resourceId?: string; cards: readonly LibraryCardInput[]; } }, LibraryOutcome<LibraryCardWriteResult>>
|
|
135
|
+
}>
|
|
136
|
+
export default TYPERT_REMOTE
|
|
137
|
+
//# sourceMappingURL=typert.remote-client.d.ts.map
|