nx-kv 0.48.1 → 0.48.2
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 +20 -0
- package/package.json +1 -1
- package/src/modules/auth/actions/auth-login.ts +11 -4
- package/src/modules/auth/actions/auth-logout.ts +9 -4
- package/src/modules/auth/actions/auth-me.ts +9 -4
- package/src/modules/auth/actions/auth-status.ts +9 -4
- package/src/modules/bundled/actions/bundled-get.ts +12 -4
- package/src/modules/bundled/actions/bundled-groups.ts +9 -4
- package/src/modules/bundled/actions/bundled-install.ts +13 -4
- package/src/modules/bundled/actions/bundled-list.ts +9 -4
- package/src/modules/db/actions/db-backup.ts +10 -4
- package/src/modules/db/actions/db-migrate.ts +10 -4
- package/src/modules/db/actions/db-status.ts +9 -4
- package/src/modules/db/actions/db-verify.ts +9 -4
- package/src/modules/docs/actions/doc-add.ts +12 -4
- package/src/modules/docs/actions/doc-attach-note.ts +11 -4
- package/src/modules/docs/actions/doc-attach.ts +18 -4
- package/src/modules/docs/actions/doc-attachments.ts +9 -4
- package/src/modules/docs/actions/doc-detach.ts +11 -4
- package/src/modules/docs/actions/doc-get.ts +9 -4
- package/src/modules/docs/actions/doc-list.ts +9 -4
- package/src/modules/docs/actions/doc-remove.ts +9 -4
- package/src/modules/docs/actions/doc-update.ts +12 -4
- package/src/modules/docs/actions/docs-bind.ts +13 -4
- package/src/modules/docs/actions/docs-index.ts +9 -4
- package/src/modules/docs/actions/docs-link.ts +14 -4
- package/src/modules/docs/actions/docs-notebind.ts +13 -4
- package/src/modules/docs/actions/docs-seed.ts +9 -4
- package/src/modules/file/actions/file-content.ts +10 -4
- package/src/modules/file/actions/file-get.ts +10 -4
- package/src/modules/file/actions/file-list.ts +11 -4
- package/src/modules/file/actions/file-orphans.ts +9 -4
- package/src/modules/file/actions/file-prune.ts +10 -4
- package/src/modules/file/actions/file-remove.ts +10 -4
- package/src/modules/file/actions/file-sync.ts +13 -4
- package/src/modules/file/actions/file-upload.ts +15 -4
- package/src/modules/localtask/actions/localtask-add.ts +24 -4
- package/src/modules/localtask/actions/localtask-attach-note.ts +13 -4
- package/src/modules/localtask/actions/localtask-attach.ts +22 -4
- package/src/modules/localtask/actions/localtask-attachments.ts +11 -4
- package/src/modules/localtask/actions/localtask-cancel.ts +10 -4
- package/src/modules/localtask/actions/localtask-cancelMany.ts +11 -4
- package/src/modules/localtask/actions/localtask-chain.ts +11 -4
- package/src/modules/localtask/actions/localtask-claim.ts +12 -4
- package/src/modules/localtask/actions/localtask-clone.ts +11 -4
- package/src/modules/localtask/actions/localtask-closeMany.ts +13 -4
- package/src/modules/localtask/actions/localtask-config.ts +19 -4
- package/src/modules/localtask/actions/localtask-detach.ts +13 -4
- package/src/modules/localtask/actions/localtask-done.ts +12 -4
- package/src/modules/localtask/actions/localtask-events.ts +12 -4
- package/src/modules/localtask/actions/localtask-fork.ts +11 -4
- package/src/modules/localtask/actions/localtask-get.ts +11 -4
- package/src/modules/localtask/actions/localtask-importRemote.ts +13 -4
- package/src/modules/localtask/actions/localtask-list.ts +9 -4
- package/src/modules/localtask/actions/localtask-presence.ts +9 -4
- package/src/modules/localtask/actions/localtask-preview.ts +13 -4
- package/src/modules/localtask/actions/localtask-prune.ts +10 -4
- package/src/modules/localtask/actions/localtask-remove.ts +12 -4
- package/src/modules/localtask/actions/localtask-removeMany.ts +12 -4
- package/src/modules/localtask/actions/localtask-reopen.ts +17 -4
- package/src/modules/localtask/actions/localtask-reorder.ts +15 -4
- package/src/modules/localtask/actions/localtask-task-restore.ts +11 -4
- package/src/modules/localtask/actions/localtask-timegoalLog.ts +11 -4
- package/src/modules/localtask/actions/localtask-topic-add.ts +10 -4
- package/src/modules/localtask/actions/localtask-topic-remove.ts +11 -4
- package/src/modules/localtask/actions/localtask-topic-removeMany.ts +12 -4
- package/src/modules/localtask/actions/localtask-update.ts +22 -4
- package/src/modules/localtask/actions/localtask-wait.ts +13 -4
- package/src/modules/localtask/actions/task-move.ts +21 -4
- package/src/modules/repos/actions/board-add.ts +10 -4
- package/src/modules/repos/actions/board-assign.ts +12 -4
- package/src/modules/repos/actions/board-export.ts +9 -4
- package/src/modules/repos/actions/board-get.ts +9 -4
- package/src/modules/repos/actions/board-import.ts +9 -4
- package/src/modules/repos/actions/board-list.ts +9 -4
- package/src/modules/repos/actions/board-note.ts +11 -4
- package/src/modules/repos/actions/board-prefix.ts +10 -4
- package/src/modules/repos/actions/board-prune.ts +11 -4
- package/src/modules/repos/actions/board-rekey.ts +11 -4
- package/src/modules/repos/actions/board-remove.ts +9 -4
- package/src/modules/repos/actions/board-update.ts +11 -4
- package/src/modules/repos/actions/repo-add.ts +17 -4
- package/src/modules/repos/actions/repo-bind-topics.ts +10 -4
- package/src/modules/repos/actions/repo-bind.ts +12 -4
- package/src/modules/repos/actions/repo-clone.ts +14 -4
- package/src/modules/repos/actions/repo-detect.ts +9 -4
- package/src/modules/repos/actions/repo-doc-add.ts +15 -4
- package/src/modules/repos/actions/repo-doc-list.ts +9 -4
- package/src/modules/repos/actions/repo-doc-remove.ts +10 -4
- package/src/modules/repos/actions/repo-export.ts +12 -4
- package/src/modules/repos/actions/repo-get.ts +9 -4
- package/src/modules/repos/actions/repo-import-diff.ts +10 -4
- package/src/modules/repos/actions/repo-import.ts +14 -4
- package/src/modules/repos/actions/repo-key-migrate.ts +9 -4
- package/src/modules/repos/actions/repo-key-refresh.ts +11 -4
- package/src/modules/repos/actions/repo-key-set.ts +11 -4
- package/src/modules/repos/actions/repo-knowledge.ts +10 -4
- package/src/modules/repos/actions/repo-list.ts +9 -4
- package/src/modules/repos/actions/repo-open.ts +9 -4
- package/src/modules/repos/actions/repo-ref-add.ts +13 -4
- package/src/modules/repos/actions/repo-ref-backfill.ts +10 -4
- package/src/modules/repos/actions/repo-ref-check.ts +9 -4
- package/src/modules/repos/actions/repo-ref-clone.ts +16 -4
- package/src/modules/repos/actions/repo-ref-note.ts +12 -4
- package/src/modules/repos/actions/repo-ref-of.ts +9 -4
- package/src/modules/repos/actions/repo-ref-sync.ts +10 -4
- package/src/modules/repos/actions/repo-remote-check.ts +10 -4
- package/src/modules/repos/actions/repo-remote-list.ts +9 -4
- package/src/modules/repos/actions/repo-remote-pick.ts +10 -4
- package/src/modules/repos/actions/repo-remote.ts +11 -4
- package/src/modules/repos/actions/repo-remove.ts +9 -4
- package/src/modules/repos/actions/repo-scan.ts +11 -4
- package/src/modules/repos/actions/repo-update.ts +21 -4
- package/src/modules/setting/actions/setting-get.ts +9 -4
- package/src/modules/setting/actions/setting-set.ts +12 -4
- package/src/modules/system/actions/bootstrap.ts +7 -4
- package/src/modules/system/actions/health.ts +6 -3
- package/src/modules/system/actions/routes.ts +11 -3
- package/src/modules/system/routes.ts +1 -1
- package/src/modules/tasktool/actions/timegoal-check.ts +11 -4
- package/src/modules/tasktool/actions/timegoal-clear.ts +9 -4
- package/src/modules/tasktool/actions/timegoal-list.ts +9 -4
- package/src/modules/tasktool/actions/timegoal-log.ts +9 -4
- package/src/modules/tasktool/actions/timegoal-prune.ts +9 -4
- package/src/modules/tasktool/actions/timegoal-set.ts +11 -4
- package/src/modules/tasktool/actions/timegoal-show.ts +10 -4
- package/src/modules/tasktool/actions/timegoal-update.ts +11 -4
- package/src/modules/templates/actions/templates-add.ts +17 -4
- package/src/modules/templates/actions/templates-default.ts +13 -4
- package/src/modules/templates/actions/templates-list.ts +11 -4
- package/src/modules/templates/actions/templates-remove.ts +9 -4
- package/src/modules/templates/actions/templates-update.ts +15 -4
- package/src/modules/todo/actions/group-add.ts +10 -4
- package/src/modules/todo/actions/group-current.ts +9 -4
- package/src/modules/todo/actions/group-get.ts +9 -4
- package/src/modules/todo/actions/group-list.ts +9 -4
- package/src/modules/todo/actions/group-members.ts +9 -4
- package/src/modules/todo/actions/group-remove.ts +9 -4
- package/src/modules/todo/actions/group-update.ts +11 -4
- package/src/modules/todo/actions/group-use.ts +9 -4
- package/src/modules/todo/actions/prompt-get.ts +10 -4
- package/src/modules/todo/actions/prompt-remove.ts +10 -4
- package/src/modules/todo/actions/prompt-set.ts +11 -4
- package/src/modules/todo/actions/todo-add.ts +11 -4
- package/src/modules/todo/actions/todo-archive.ts +10 -4
- package/src/modules/todo/actions/todo-attach.ts +17 -4
- package/src/modules/todo/actions/todo-attachments.ts +12 -4
- package/src/modules/todo/actions/todo-done.ts +13 -4
- package/src/modules/todo/actions/todo-freeze.ts +12 -4
- package/src/modules/todo/actions/todo-get.ts +12 -4
- package/src/modules/todo/actions/todo-list.ts +11 -4
- package/src/modules/todo/actions/todo-remove.ts +12 -4
- package/src/modules/todo/actions/todo-unfreeze.ts +12 -4
- package/src/modules/todo/actions/todo-update.ts +15 -4
- package/src/modules/todo/actions/topic-add.ts +10 -4
- package/src/modules/todo/actions/topic-list.ts +9 -4
- package/src/modules/todo/actions/topic-remove.ts +10 -4
- package/src/runtime/action-decorator.ts +2 -2
- package/src/runtime/codegen.ts +26 -41
- package/src/runtime/registry.ts +2 -2
- package/src/web/frontend/api/client.generated.ts +384 -532
- package/src/web/frontend/page/cloud/api.ts +99 -0
- package/src/web/frontend/page/cloud/index.tsx +13 -32
- package/src/web/frontend/page/dag/api.ts +20 -0
- package/src/web/frontend/page/dag/index.tsx +2 -5
- package/src/web/frontend/page/dir/api.ts +135 -0
- package/src/web/frontend/page/dir/index.tsx +37 -57
- package/src/web/frontend/page/dir/task-actions.ts +39 -59
- package/src/web/frontend/page/dir/task-chain.ts +2 -2
- package/src/web/frontend/page/dir/task-feedback.ts +19 -23
- package/src/web/frontend/page/dir/task-goal.ts +3 -3
- package/src/web/frontend/page/dir/task.tsx +3 -3
- package/src/web/frontend/page/doc/api.ts +82 -0
- package/src/web/frontend/page/doc/index.tsx +29 -32
- package/src/web/frontend/page/group/api.ts +24 -0
- package/src/web/frontend/page/group/index.tsx +7 -16
- package/src/web/frontend/page/overview/api.ts +16 -0
- package/src/web/frontend/page/overview/index.tsx +2 -2
- package/src/web/frontend/page/progress/api.ts +20 -0
- package/src/web/frontend/page/progress/index.tsx +3 -6
- package/src/web/frontend/page/refs/api.ts +14 -0
- package/src/web/frontend/page/refs/index.tsx +2 -4
- package/src/web/frontend/page/repos/api.ts +197 -0
- package/src/web/frontend/page/repos/bind-modals.tsx +4 -7
- package/src/web/frontend/page/repos/board-admin.tsx +6 -6
- package/src/web/frontend/page/repos/doc-search-modal.tsx +4 -4
- package/src/web/frontend/page/repos/index.tsx +10 -14
- package/src/web/frontend/page/repos/pending-section.tsx +7 -13
- package/src/web/frontend/page/repos/ref-panel.tsx +9 -14
- package/src/web/frontend/page/repos/remote-modal.tsx +4 -28
- package/src/web/frontend/page/repos/repo-form-modal.tsx +4 -4
- package/src/web/frontend/page/settings/api.ts +29 -0
- package/src/web/frontend/page/settings/index.tsx +3 -3
- package/src/web/frontend/page/settings/prompt-templates-section.tsx +4 -4
- package/src/web/frontend/page/settings/sidebar-section.tsx +2 -2
- package/src/web/public/assets/Introduction-Du_dycft.js +6 -0
- package/src/web/public/assets/{bar-B9WWmCpt.js → bar-B52NTf_v.js} +1 -1
- package/src/web/public/assets/cloud-Droja_aT.js +3 -0
- package/src/web/public/assets/{composer-panel-ByezS8Xv.js → composer-panel-DpiU2h50.js} +1 -1
- package/src/web/public/assets/dag-Ca-wjIxQ.js +1 -0
- package/src/web/public/assets/{deleted-panel-BcbtctNF.js → deleted-panel-K9GgfR8t.js} +1 -1
- package/src/web/public/assets/dir-DacRpcBt.js +5 -0
- package/src/web/public/assets/group-TPuU-QVc.js +2 -0
- package/src/web/public/assets/{index-D8MvtVAm.js → index-BkLkooKe.js} +2 -2
- package/src/web/public/assets/{md-history-BqZvzWiD.js → md-history-0GBWw4qr.js} +1 -1
- package/src/web/public/assets/overview-B3kHI66i.js +1 -0
- package/src/web/public/assets/progress-CdhFz0Lz.js +3 -0
- package/src/web/public/assets/refs-BDxfuH6R.js +1 -0
- package/src/web/public/assets/repos-C8jRM7wS.js +15 -0
- package/src/web/public/assets/{route-crumb-CWVu80du.js → route-crumb-QvahotvN.js} +1 -1
- package/src/web/public/assets/settings-BBcdGLTc.js +1 -0
- package/src/web/public/assets/{status-tag-DRl9E2Os.js → status-tag-BheHByek.js} +1 -1
- package/src/web/public/assets/task-CUkQaLBZ.js +11 -0
- package/src/web/public/assets/task-utils-_JAWRAz6.js +12 -0
- package/src/web/public/assets/{templates-Df__0k-F.js → templates-CbRyW3PJ.js} +1 -1
- package/src/web/public/assets/{tool-bar-Cv7f6p4v.js → tool-bar-BAmT-BI-.js} +1 -1
- package/src/web/public/index.html +1 -1
- package/src/modules/auth/schemas.ts +0 -27
- package/src/modules/bundled/schemas.ts +0 -32
- package/src/modules/db/schemas.ts +0 -27
- package/src/modules/docs/schemas.ts +0 -107
- package/src/modules/file/schemas.ts +0 -61
- package/src/modules/localtask/schemas.ts +0 -310
- package/src/modules/repos/schemas.ts +0 -310
- package/src/modules/setting/schemas.ts +0 -18
- package/src/modules/system/schemas.ts +0 -30
- package/src/modules/tasktool/schemas.ts +0 -52
- package/src/modules/templates/schemas.ts +0 -50
- package/src/modules/todo/schemas.ts +0 -177
- package/src/web/public/assets/Introduction-aQCeCLrV.js +0 -6
- package/src/web/public/assets/cloud-C4b8SU7C.js +0 -3
- package/src/web/public/assets/dag-jvrjx4i7.js +0 -1
- package/src/web/public/assets/dir-B82XBb1J.js +0 -5
- package/src/web/public/assets/group-BPUOO_QM.js +0 -2
- package/src/web/public/assets/overview-DMihuyzh.js +0 -1
- package/src/web/public/assets/progress-D-rMgz3w.js +0 -3
- package/src/web/public/assets/refs-D21jmrn6.js +0 -1
- package/src/web/public/assets/repos-B94tMDGs.js +0 -15
- package/src/web/public/assets/settings-DgTt4JG5.js +0 -1
- package/src/web/public/assets/task-B2x5GoV3.js +0 -11
- package/src/web/public/assets/task-utils-By8gLpHY.js +0 -12
|
@@ -6,154 +6,6 @@
|
|
|
6
6
|
// 重新生成:pnpm gen:api。新鲜度由 tests/unit/api-client.test.mjs 对账。
|
|
7
7
|
|
|
8
8
|
import type { z } from 'zod';
|
|
9
|
-
import type {
|
|
10
|
-
authLoginInput,
|
|
11
|
-
} from '../../../modules/auth/schemas.js';
|
|
12
|
-
import type {
|
|
13
|
-
bundledGetInput,
|
|
14
|
-
bundledInstallInput,
|
|
15
|
-
} from '../../../modules/bundled/schemas.js';
|
|
16
|
-
import type {
|
|
17
|
-
docAddInput,
|
|
18
|
-
docAttachInput,
|
|
19
|
-
docAttachNoteInput,
|
|
20
|
-
docAttachmentsInput,
|
|
21
|
-
docDetachInput,
|
|
22
|
-
docGetInput,
|
|
23
|
-
docListInput,
|
|
24
|
-
docRemoveInput,
|
|
25
|
-
docUpdateInput,
|
|
26
|
-
docsBindInput,
|
|
27
|
-
docsLinkInput,
|
|
28
|
-
docsNotebindInput,
|
|
29
|
-
docsSeedInput,
|
|
30
|
-
} from '../../../modules/docs/schemas.js';
|
|
31
|
-
import type {
|
|
32
|
-
fileContentInput,
|
|
33
|
-
fileGetInput,
|
|
34
|
-
fileListInput,
|
|
35
|
-
filePruneInput,
|
|
36
|
-
fileRemoveInput,
|
|
37
|
-
fileSyncInput,
|
|
38
|
-
fileUploadInput,
|
|
39
|
-
} from '../../../modules/file/schemas.js';
|
|
40
|
-
import type {
|
|
41
|
-
localtaskAddInput,
|
|
42
|
-
localtaskAttachInput,
|
|
43
|
-
localtaskAttachNoteInput,
|
|
44
|
-
localtaskAttachmentsInput,
|
|
45
|
-
localtaskCancelInput,
|
|
46
|
-
localtaskCancelManyInput,
|
|
47
|
-
localtaskChainInput,
|
|
48
|
-
localtaskClaimInput,
|
|
49
|
-
localtaskCloneInput,
|
|
50
|
-
localtaskCloseManyInput,
|
|
51
|
-
localtaskConfigInput,
|
|
52
|
-
localtaskDetachInput,
|
|
53
|
-
localtaskDoneInput,
|
|
54
|
-
localtaskEventsInput,
|
|
55
|
-
localtaskForkInput,
|
|
56
|
-
localtaskGetInput,
|
|
57
|
-
localtaskImportRemoteInput,
|
|
58
|
-
localtaskPreviewInput,
|
|
59
|
-
localtaskPruneInput,
|
|
60
|
-
localtaskRemoveInput,
|
|
61
|
-
localtaskRemoveManyInput,
|
|
62
|
-
localtaskReopenInput,
|
|
63
|
-
localtaskReorderInput,
|
|
64
|
-
localtaskTaskRestoreInput,
|
|
65
|
-
localtaskTimegoalLogInput,
|
|
66
|
-
localtaskTopicAddInput,
|
|
67
|
-
localtaskTopicRemoveInput,
|
|
68
|
-
localtaskTopicRemoveManyInput,
|
|
69
|
-
localtaskUpdateInput,
|
|
70
|
-
taskMoveInput,
|
|
71
|
-
} from '../../../modules/localtask/schemas.js';
|
|
72
|
-
import type {
|
|
73
|
-
boardAddInput,
|
|
74
|
-
boardAssignInput,
|
|
75
|
-
boardGetInput,
|
|
76
|
-
boardImportInput,
|
|
77
|
-
boardNoteInput,
|
|
78
|
-
boardPrefixInput,
|
|
79
|
-
boardPruneInput,
|
|
80
|
-
boardRekeyInput,
|
|
81
|
-
boardRemoveInput,
|
|
82
|
-
boardUpdateInput,
|
|
83
|
-
repoAddInput,
|
|
84
|
-
repoBindInput,
|
|
85
|
-
repoBindTopicsInput,
|
|
86
|
-
repoCloneInput,
|
|
87
|
-
repoDetectInput,
|
|
88
|
-
repoDocAddInput,
|
|
89
|
-
repoDocListInput,
|
|
90
|
-
repoDocRemoveInput,
|
|
91
|
-
repoExportInput,
|
|
92
|
-
repoGetInput,
|
|
93
|
-
repoImportDiffInput,
|
|
94
|
-
repoImportInput,
|
|
95
|
-
repoKeyMigrateInput,
|
|
96
|
-
repoKeyRefreshInput,
|
|
97
|
-
repoKeySetInput,
|
|
98
|
-
repoKnowledgeInput,
|
|
99
|
-
repoListInput,
|
|
100
|
-
repoOpenInput,
|
|
101
|
-
repoRefAddInput,
|
|
102
|
-
repoRefCloneInput,
|
|
103
|
-
repoRefNoteInput,
|
|
104
|
-
repoRefOfInput,
|
|
105
|
-
repoRefSyncInput,
|
|
106
|
-
repoRemoteCheckInput,
|
|
107
|
-
repoRemoteInput,
|
|
108
|
-
repoRemoteListInput,
|
|
109
|
-
repoRemotePickInput,
|
|
110
|
-
repoRemoveInput,
|
|
111
|
-
repoScanInput,
|
|
112
|
-
repoUpdateInput,
|
|
113
|
-
} from '../../../modules/repos/schemas.js';
|
|
114
|
-
import type {
|
|
115
|
-
settingSetInput,
|
|
116
|
-
} from '../../../modules/setting/schemas.js';
|
|
117
|
-
import type {
|
|
118
|
-
timegoalCheckInput,
|
|
119
|
-
timegoalClearInput,
|
|
120
|
-
timegoalLogInput,
|
|
121
|
-
timegoalSetInput,
|
|
122
|
-
timegoalShowInput,
|
|
123
|
-
timegoalUpdateInput,
|
|
124
|
-
} from '../../../modules/tasktool/schemas.js';
|
|
125
|
-
import type {
|
|
126
|
-
templatesAddInput,
|
|
127
|
-
templatesDefaultInput,
|
|
128
|
-
templatesListInput,
|
|
129
|
-
templatesRemoveInput,
|
|
130
|
-
templatesUpdateInput,
|
|
131
|
-
} from '../../../modules/templates/schemas.js';
|
|
132
|
-
import type {
|
|
133
|
-
groupAddInput,
|
|
134
|
-
groupGetInput,
|
|
135
|
-
groupMembersInput,
|
|
136
|
-
groupRemoveInput,
|
|
137
|
-
groupUpdateInput,
|
|
138
|
-
groupUseInput,
|
|
139
|
-
promptGetInput,
|
|
140
|
-
promptRemoveInput,
|
|
141
|
-
promptSetInput,
|
|
142
|
-
todoAddInput,
|
|
143
|
-
todoArchiveInput,
|
|
144
|
-
todoAttachInput,
|
|
145
|
-
todoAttachmentsInput,
|
|
146
|
-
todoDoneInput,
|
|
147
|
-
todoFreezeInput,
|
|
148
|
-
todoGetInput,
|
|
149
|
-
todoListInput,
|
|
150
|
-
todoRemoveInput,
|
|
151
|
-
todoUnfreezeInput,
|
|
152
|
-
todoUpdateInput,
|
|
153
|
-
topicAddInput,
|
|
154
|
-
topicListInput,
|
|
155
|
-
topicRemoveInput,
|
|
156
|
-
} from '../../../modules/todo/schemas.js';
|
|
157
9
|
import type {
|
|
158
10
|
AuthLoginAction,
|
|
159
11
|
AuthLogoutAction,
|
|
@@ -337,9 +189,9 @@ export interface ApiClient {
|
|
|
337
189
|
/** 读本机设置(附件自动下载、附件目录、参考仓库存储根) */
|
|
338
190
|
get(): Promise<Awaited<ReturnType<InstanceType<typeof SettingGetAction>['run']>>>;
|
|
339
191
|
/** 改本机设置(只改传入项) */
|
|
340
|
-
set(input?: z.input<typeof
|
|
192
|
+
set(input?: z.input<InstanceType<typeof SettingSetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof SettingSetAction>['run']>>>;
|
|
341
193
|
/** 登录并保存 token 到本机配置 */
|
|
342
|
-
login(input: z.input<typeof
|
|
194
|
+
login(input: z.input<InstanceType<typeof AuthLoginAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['run']>>>;
|
|
343
195
|
/** 清除本机保存的 token */
|
|
344
196
|
logout(): Promise<Awaited<ReturnType<InstanceType<typeof AuthLogoutAction>['run']>>>;
|
|
345
197
|
/** 向后端确认身份(验证 token 是否仍有效) */
|
|
@@ -347,281 +199,281 @@ export interface ApiClient {
|
|
|
347
199
|
/** 查看本机登录态(不请求后端,离线可用) */
|
|
348
200
|
status(): Promise<Awaited<ReturnType<InstanceType<typeof AuthStatusAction>['run']>>>;
|
|
349
201
|
/** 新建看板(主题容器) */
|
|
350
|
-
add(input: z.input<typeof
|
|
202
|
+
add(input: z.input<InstanceType<typeof BoardAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardAddAction>['run']>>>;
|
|
351
203
|
/** 把仓库聚合进看板(可同时在多个看板;--remove 移出;--before 插位;仓库给 id / key / 路径) */
|
|
352
|
-
assign(input: z.input<typeof
|
|
204
|
+
assign(input: z.input<InstanceType<typeof BoardAssignAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['run']>>>;
|
|
353
205
|
/** 导出看板 JSON(可回灌给 board import) */
|
|
354
206
|
export(): Promise<Awaited<ReturnType<InstanceType<typeof BoardExportAction>['run']>>>;
|
|
355
207
|
/** 查看单个看板(含成员仓库与描述) */
|
|
356
|
-
boardGet(input: z.input<typeof
|
|
208
|
+
boardGet(input: z.input<InstanceType<typeof BoardGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardGetAction>['run']>>>;
|
|
357
209
|
/** 导入看板 JSON(一个看板 = 一个主题;按 path/name 匹配已登记仓库) */
|
|
358
|
-
import(input?: z.input<typeof
|
|
210
|
+
import(input?: z.input<InstanceType<typeof BoardImportAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardImportAction>['run']>>>;
|
|
359
211
|
/** 看板清单:每个主题里有哪些仓库、各自的一句话描述 */
|
|
360
212
|
list(): Promise<Awaited<ReturnType<InstanceType<typeof BoardListAction>['run']>>>;
|
|
361
213
|
/** 写/清组内描述:仓库在看板里的角色与配合关系(--note 留空 = 清除;仓库给 id / key / 绝对路径) */
|
|
362
|
-
note(input: z.input<typeof
|
|
214
|
+
note(input: z.input<InstanceType<typeof BoardNoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardNoteAction>['run']>>>;
|
|
363
215
|
/** 按前缀归组:把名字以 <prefix> 开头的仓库一次性挂进看板(--board 给目标看板;不给就按前缀名自动建同名看板) */
|
|
364
|
-
prefix(input: z.input<typeof
|
|
216
|
+
prefix(input: z.input<InstanceType<typeof BoardPrefixAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardPrefixAction>['run']>>>;
|
|
365
217
|
/** 清理占位成员:组里引用、本机没登记且没有远程地址的仓库(默认预览,--apply 落盘;带 remote 的加 --all 才清) */
|
|
366
|
-
prune(input?: z.input<typeof
|
|
218
|
+
prune(input?: z.input<InstanceType<typeof BoardPruneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardPruneAction>['run']>>>;
|
|
367
219
|
/** 把组里的占位 key 重绑到本机仓库(关系改、登记不动;组内描述与文档绑定跟着搬) */
|
|
368
|
-
rekey(input: z.input<typeof
|
|
220
|
+
rekey(input: z.input<InstanceType<typeof BoardRekeyAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRekeyAction>['run']>>>;
|
|
369
221
|
/** 删看板(里面的仓库回到未分组,登记不动) */
|
|
370
|
-
remove(input: z.input<typeof
|
|
222
|
+
remove(input: z.input<InstanceType<typeof BoardRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRemoveAction>['run']>>>;
|
|
371
223
|
/** 改看板名称 / 描述 */
|
|
372
|
-
update(input: z.input<typeof
|
|
224
|
+
update(input: z.input<InstanceType<typeof BoardUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardUpdateAction>['run']>>>;
|
|
373
225
|
/** 登记一个仓库 */
|
|
374
|
-
repoAdd(input: z.input<typeof
|
|
226
|
+
repoAdd(input: z.input<InstanceType<typeof RepoAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoAddAction>['run']>>>;
|
|
375
227
|
/** 把「未绑定」队列按路径前缀绑到真实仓库(先建 refs 再绑;默认预览,--apply 落盘) */
|
|
376
|
-
bindTopics(input?: z.input<typeof
|
|
228
|
+
bindTopics(input?: z.input<InstanceType<typeof RepoBindTopicsAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoBindTopicsAction>['run']>>>;
|
|
377
229
|
/** 绑定参考仓库到组或单个开发仓库(两类并存;--board 组级、--repo 仓库级;--remove 摘除) */
|
|
378
|
-
bind(input: z.input<typeof
|
|
230
|
+
bind(input: z.input<InstanceType<typeof RepoBindAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoBindAction>['run']>>>;
|
|
379
231
|
/** 按 remote 克隆并登记(--key 指定占位 key → 组里位置自动补齐) */
|
|
380
|
-
clone(input: z.input<typeof
|
|
232
|
+
clone(input: z.input<InstanceType<typeof RepoCloneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoCloneAction>['run']>>>;
|
|
381
233
|
/** 探测目录的 git remote(添加仓库前自动填充远程地址;只读) */
|
|
382
|
-
detect(input: z.input<typeof
|
|
234
|
+
detect(input: z.input<InstanceType<typeof RepoDetectAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDetectAction>['run']>>>;
|
|
383
235
|
/** 给项目加一篇介绍文档:--rel 自有树路径 / --path 外部绝对路径 / --ref <参考仓库key> --file <仓库内相对路径>(同 rel/path 重复添加 = 更新) */
|
|
384
|
-
docAdd(input: z.input<typeof
|
|
236
|
+
docAdd(input: z.input<InstanceType<typeof RepoDocAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocAddAction>['run']>>>;
|
|
385
237
|
/** 列出项目的介绍文档集(主篇 + 其余各篇,含来源形态:自有树 / 外部 / ref 仓库) */
|
|
386
|
-
docList(input: z.input<typeof
|
|
238
|
+
docList(input: z.input<InstanceType<typeof RepoDocListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocListAction>['run']>>>;
|
|
387
239
|
/** 从项目的介绍文档集里摘掉一篇(--index 从 1 起,1 = 主篇) */
|
|
388
|
-
docRemove(input: z.input<typeof
|
|
240
|
+
docRemove(input: z.input<InstanceType<typeof RepoDocRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocRemoveAction>['run']>>>;
|
|
389
241
|
/** 导出仓库布局 JSON(全局 key + 分组 + 参考关系;不含本地路径);--zip 打包成 zip */
|
|
390
|
-
repoExport(input?: z.input<typeof
|
|
242
|
+
repoExport(input?: z.input<InstanceType<typeof RepoExportAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoExportAction>['run']>>>;
|
|
391
243
|
/** 查看单个仓库的登记信息 */
|
|
392
|
-
repoGet(input: z.input<typeof
|
|
244
|
+
repoGet(input: z.input<InstanceType<typeof RepoGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoGetAction>['run']>>>;
|
|
393
245
|
/** 导入前的差异检查:逐条给出 新增/有差异/一致/本地未拥有(零副作用) */
|
|
394
|
-
diff(input?: z.input<typeof
|
|
246
|
+
diff(input?: z.input<InstanceType<typeof RepoImportDiffAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoImportDiffAction>['run']>>>;
|
|
395
247
|
/** 导入仓库布局(--strategy ours|overwrite|duplicate;--select 按 key 挑;--clone 选克隆范围) */
|
|
396
|
-
repoImport(input?: z.input<typeof
|
|
248
|
+
repoImport(input?: z.input<InstanceType<typeof RepoImportAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoImportAction>['run']>>>;
|
|
397
249
|
/** 把内部关系(看板成员/绑定)从随机 id 改写成 key(幂等;--apply 落盘) */
|
|
398
|
-
migrate(input?: z.input<typeof
|
|
250
|
+
migrate(input?: z.input<InstanceType<typeof RepoKeyMigrateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeyMigrateAction>['run']>>>;
|
|
399
251
|
/** 刷新仓库 key:扫描 git remote(SSH 优先),提示可更新的 key/远程地址;--apply 落盘 */
|
|
400
|
-
refresh(input?: z.input<typeof
|
|
252
|
+
refresh(input?: z.input<InstanceType<typeof RepoKeyRefreshAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeyRefreshAction>['run']>>>;
|
|
401
253
|
/** 设置自定义 key(全局唯一,不跟随远程地址自动变);--follow 恢复为跟随 remote */
|
|
402
|
-
keySet(input: z.input<typeof
|
|
254
|
+
keySet(input: z.input<InstanceType<typeof RepoKeySetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeySetAction>['run']>>>;
|
|
403
255
|
/** 取仓库完整知识:项目介绍 + 所属组(介绍/组内描述/绑定文档)+ 参考仓库(--md 拼成单篇 markdown;缺省当前目录) */
|
|
404
|
-
knowledge(input?: z.input<typeof
|
|
256
|
+
knowledge(input?: z.input<InstanceType<typeof RepoKnowledgeAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKnowledgeAction>['run']>>>;
|
|
405
257
|
/** 仓库清单(本地任务的主题会按路径匹配到这里,取它的上下文) */
|
|
406
|
-
repoList(input?: z.input<typeof
|
|
258
|
+
repoList(input?: z.input<InstanceType<typeof RepoListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoListAction>['run']>>>;
|
|
407
259
|
/** 在系统文件管理器中打开 */
|
|
408
|
-
open(input: z.input<typeof
|
|
260
|
+
open(input: z.input<InstanceType<typeof RepoOpenAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoOpenAction>['run']>>>;
|
|
409
261
|
/** 把一个已存在的 checkout 登记为参考仓库(不 clone;remote 缺省读 origin) */
|
|
410
|
-
refAdd(input: z.input<typeof
|
|
262
|
+
refAdd(input: z.input<InstanceType<typeof RepoRefAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['run']>>>;
|
|
411
263
|
/** 检查参考仓库完整性:目录/.git/origin 一致性 + 组级/仓库级绑定死链(零副作用) */
|
|
412
264
|
check(): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefCheckAction>['run']>>>;
|
|
413
265
|
/** 克隆远程仓库为参考仓库(落到 gitRepoRoot,登记 + 可选绑定当前目录的开发仓库) */
|
|
414
|
-
refClone(input: z.input<typeof
|
|
266
|
+
refClone(input: z.input<InstanceType<typeof RepoRefCloneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefCloneAction>['run']>>>;
|
|
415
267
|
/** 写/清绑定描述:这个参考在该组/该仓库里参考什么(--note 留空 = 清除) */
|
|
416
|
-
refNote(input: z.input<typeof
|
|
268
|
+
refNote(input: z.input<InstanceType<typeof RepoRefNoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefNoteAction>['run']>>>;
|
|
417
269
|
/** 查某仓库(缺省当前目录)的参考仓库:直接绑定到本仓库的 + 所属组绑定的,两类并列 */
|
|
418
|
-
of(input?: z.input<typeof
|
|
270
|
+
of(input?: z.input<InstanceType<typeof RepoRefOfAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefOfAction>['run']>>>;
|
|
419
271
|
/** 同步参考仓库(git pull --ff-only;--all 同步全部) */
|
|
420
|
-
sync(input?: z.input<typeof
|
|
272
|
+
sync(input?: z.input<InstanceType<typeof RepoRefSyncAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefSyncAction>['run']>>>;
|
|
421
273
|
/** 检查 remote 是否存在(git ls-remote:存在 / 不存在 / 不可达,三种结论分清) */
|
|
422
|
-
remoteCheck(input?: z.input<typeof
|
|
274
|
+
remoteCheck(input?: z.input<InstanceType<typeof RepoRemoteCheckAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteCheckAction>['run']>>>;
|
|
423
275
|
/** 列出仓库的全部 remote 候选(git remote -v),标出当前采纳的那条 */
|
|
424
|
-
remoteList(input?: z.input<typeof
|
|
276
|
+
remoteList(input?: z.input<InstanceType<typeof RepoRemoteListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteListAction>['run']>>>;
|
|
425
277
|
/** 人工指定采纳哪条 remote(key 随之重算;自定义 key 不动) */
|
|
426
|
-
pick(input: z.input<typeof
|
|
278
|
+
pick(input: z.input<InstanceType<typeof RepoRemotePickAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemotePickAction>['run']>>>;
|
|
427
279
|
/** 登记/更新仓库的远程 git 地址(无 --url = 从目录 origin 读取存档并重算 key) */
|
|
428
|
-
remote(input: z.input<typeof
|
|
280
|
+
remote(input: z.input<InstanceType<typeof RepoRemoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteAction>['run']>>>;
|
|
429
281
|
/** 移除登记(不动磁盘文件) */
|
|
430
|
-
repoRemove(input: z.input<typeof
|
|
282
|
+
repoRemove(input: z.input<InstanceType<typeof RepoRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoveAction>['run']>>>;
|
|
431
283
|
/** 扫描目录发现 git 仓库;--dry-run 只列出(发现模式,不登记) */
|
|
432
|
-
scan(input?: z.input<typeof
|
|
284
|
+
scan(input?: z.input<InstanceType<typeof RepoScanAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoScanAction>['run']>>>;
|
|
433
285
|
/** 修改仓库路径 / 名称 / 备注 / 类型 / 远程地址 / key;--get-loop* 配置项目级「持续 get」(waitgoal:该项目 get 无任务时阻塞等人回填 + 交付文本带继续 get 模板)。描述已改为文档,不再经这里改 */
|
|
434
|
-
repoUpdate(input: z.input<typeof
|
|
286
|
+
repoUpdate(input: z.input<InstanceType<typeof RepoUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoUpdateAction>['run']>>>;
|
|
435
287
|
/** 新建自有文档(--body 给 Markdown 正文;--body-file <文件> / - 读管道;已存在则报冲突) */
|
|
436
|
-
docAdd2(input: z.input<typeof
|
|
288
|
+
docAdd2(input: z.input<InstanceType<typeof DocAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocAddAction>['run']>>>;
|
|
437
289
|
/** 改一条附件绑定的说明(desc):--attachment <资源 id> --note <说明>(只动说明,角色/位置不变) */
|
|
438
|
-
attachNote(input: z.input<typeof
|
|
290
|
+
attachNote(input: z.input<InstanceType<typeof DocAttachNoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachNoteAction>['run']>>>;
|
|
439
291
|
/** 给文档挂资源:--path / --fileId / --url / --task / --doc 之一;默认追加进正文,--no-embed 只挂附件区(不写正文) */
|
|
440
|
-
attach(input: z.input<typeof
|
|
292
|
+
attach(input: z.input<InstanceType<typeof DocAttachAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachAction>['run']>>>;
|
|
441
293
|
/** 这篇文档用了哪些资源(ref_attach:图片/文件/URL/内部 task、ref 引用) */
|
|
442
|
-
attachments(input: z.input<typeof
|
|
294
|
+
attachments(input: z.input<InstanceType<typeof DocAttachmentsAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachmentsAction>['run']>>>;
|
|
443
295
|
/** 解除文档与附件的关系(默认只解除关系);--purge 无人引用时连资源行与本机字节一起删 */
|
|
444
|
-
detach(input: z.input<typeof
|
|
296
|
+
detach(input: z.input<InstanceType<typeof DocDetachAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocDetachAction>['run']>>>;
|
|
445
297
|
/** 读文档全文:rel:<路径>(或裸相对路径)= 自有;path:<绝对路径> = 外部(须在绑定闭包内);约定路径缺失时惰性播种 */
|
|
446
|
-
docGet(input: z.input<typeof
|
|
298
|
+
docGet(input: z.input<InstanceType<typeof DocGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocGetAction>['run']>>>;
|
|
447
299
|
/** 文档树索引(自有 + 可选外部;零副作用,双链解析的数据源) */
|
|
448
|
-
docList2(input?: z.input<typeof
|
|
300
|
+
docList2(input?: z.input<InstanceType<typeof DocListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocListAction>['run']>>>;
|
|
449
301
|
/** 删除自有文档(外部绑定不可删) */
|
|
450
|
-
docRemove2(input: z.input<typeof
|
|
302
|
+
docRemove2(input: z.input<InstanceType<typeof DocRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocRemoveAction>['run']>>>;
|
|
451
303
|
/** 写文档正文(面板保存走这里;自有走 own 树、外部走绑定闭包内原文件;写盘后摘要回写 desc / 组内 note) */
|
|
452
|
-
docUpdate(input: z.input<typeof
|
|
304
|
+
docUpdate(input: z.input<InstanceType<typeof DocUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocUpdateAction>['run']>>>;
|
|
453
305
|
/** 绑定项目/组介绍的文档覆盖(--repo 或 --board 二选一 + --rel <自有路径> | --path <外部文件/目录>;--reset 拆回约定路径) */
|
|
454
|
-
docsBind(input?: z.input<typeof
|
|
306
|
+
docsBind(input?: z.input<InstanceType<typeof DocsBindAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocsBindAction>['run']>>>;
|
|
455
307
|
/** 双链索引(docId + 文件名;前端点击 [[..]] 前拉一次;解析规则见 core/wikilink.js) */
|
|
456
308
|
index(): Promise<Awaited<ReturnType<InstanceType<typeof DocsIndexAction>['run']>>>;
|
|
457
309
|
/** 维护组的附加文档列表(--doc <自有路径|绝对路径> + --note/--tag;--remove <序号> 移除;--before <序号> 插位;同 doc 重复添加 = 更新) */
|
|
458
|
-
link(input: z.input<typeof
|
|
310
|
+
link(input: z.input<InstanceType<typeof DocsLinkAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocsLinkAction>['run']>>>;
|
|
459
311
|
/** 绑定组内仓库描述的文档覆盖(--board <看板> --repo <仓库> + --rel/--path/--reset;仓库须为该组成员) */
|
|
460
|
-
notebind(input: z.input<typeof
|
|
312
|
+
notebind(input: z.input<InstanceType<typeof DocsNotebindAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocsNotebindAction>['run']>>>;
|
|
461
313
|
/** 把仓库 desc / 看板 desc / 组内 note 字符串播种成约定路径的 md(缺省预览,--apply 执行;幂等) */
|
|
462
|
-
seed(input?: z.input<typeof
|
|
314
|
+
seed(input?: z.input<InstanceType<typeof DocsSeedAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocsSeedAction>['run']>>>;
|
|
463
315
|
/** 向某主题(工作目录)的队列回填一条任务(有 wait 在等则即时投递,否则排队);--global 推到全局共享池;--duration 给任务带时间目标(领取即计时,完成前必须 check);--board/--project 让任务带工作组语义(正文 frontmatter:board + project + 双方介绍引用),并落进该项目的队列;正文自带 frontmatter 时同样认归属——补介绍引用,落点跟到项目队列(显式给过 --cwd 时不挪窝) */
|
|
464
|
-
localtaskAdd(input: z.input<typeof
|
|
316
|
+
localtaskAdd(input: z.input<InstanceType<typeof LocaltaskAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAddAction>['run']>>>;
|
|
465
317
|
/** 改一条附件绑定的说明(desc):--attachment <资源 id> --note <说明>(只动说明,角色/位置不变) */
|
|
466
|
-
localtaskAttachNote(input: z.input<typeof
|
|
318
|
+
localtaskAttachNote(input: z.input<InstanceType<typeof LocaltaskAttachNoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachNoteAction>['run']>>>;
|
|
467
319
|
/** 给任务挂附件:--path 存本机附件仓 / --fileId 引用已有附件 / --url / --task(同主题任务)/ --ref(文档);默认嵌进正文,--no-embed 只挂到附件区(不写正文),--ref 加 --inline 文档进原文(交付带全文) */
|
|
468
|
-
localtaskAttach(input: z.input<typeof
|
|
320
|
+
localtaskAttach(input: z.input<InstanceType<typeof LocaltaskAttachAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachAction>['run']>>>;
|
|
469
321
|
/** 列出某条任务引用的附件(正文里的  嵌入),以及本地是否已有(给 agent 直接读本地文件) */
|
|
470
|
-
localtaskAttachments(input: z.input<typeof
|
|
322
|
+
localtaskAttachments(input: z.input<InstanceType<typeof LocaltaskAttachmentsAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachmentsAction>['run']>>>;
|
|
471
323
|
/** 关闭某主题的等待:阻塞中的 wait 立即收尾(与超时同一出口,带 cancelled 标记;不删主题与任务) */
|
|
472
|
-
cancel(input?: z.input<typeof
|
|
324
|
+
cancel(input?: z.input<InstanceType<typeof LocaltaskCancelAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCancelAction>['run']>>>;
|
|
473
325
|
/** 批量取消待领取任务(按 --ids,定位到 --cwd 主题或 --key):只处理 pending,已领取/已交付/已取消跳过;取消为终态,原文留档 */
|
|
474
|
-
cancelMany(input: z.input<typeof
|
|
326
|
+
cancelMany(input: z.input<InstanceType<typeof LocaltaskCancelManyAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCancelManyAction>['run']>>>;
|
|
475
327
|
/** 查一条任务的链:history 节点(origin/reopen/comment/current)+ 旧 forkOf 祖先/子任务;面板点节点可旁路查看正文 */
|
|
476
|
-
chain(input: z.input<typeof
|
|
328
|
+
chain(input: z.input<InstanceType<typeof LocaltaskChainAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskChainAction>['run']>>>;
|
|
477
329
|
/** 领取任务:有任务立即领(含任务级 timegoal 的 check 指令);没任务默认立即返回 timeout,项目开启「持续 get」后自动唤起阻塞窗口等人回填 */
|
|
478
|
-
claim(input?: z.input<typeof
|
|
330
|
+
claim(input?: z.input<InstanceType<typeof LocaltaskClaimAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskClaimAction>['run']>>>;
|
|
479
331
|
/** 克隆任务:复制正文内容为一条新任务(同主题;全局任务仍进全局池)。不带派生链、不继承时间目标与依赖——开新活用 */
|
|
480
|
-
localtaskClone(input: z.input<typeof
|
|
332
|
+
localtaskClone(input: z.input<InstanceType<typeof LocaltaskCloneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCloneAction>['run']>>>;
|
|
481
333
|
/** 批量收口待领取任务(按 --ids,定位到 --cwd 主题或 --key):不要求先领取;--status done 写完成总结,cancelled 只改状态;已领取/已交付跳过 */
|
|
482
|
-
closeMany(input: z.input<typeof
|
|
334
|
+
closeMany(input: z.input<InstanceType<typeof LocaltaskCloseManyAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCloseManyAction>['run']>>>;
|
|
483
335
|
/** 配置等待超时(秒)/ ack 汇报要求(ack 区块,done 指令与收尾要求唯一出口)/ 每区块模板列表 */
|
|
484
|
-
config(input?: z.input<typeof
|
|
336
|
+
config(input?: z.input<InstanceType<typeof LocaltaskConfigAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskConfigAction>['run']>>>;
|
|
485
337
|
/** 解除任务与附件的关系(默认只解除关系,资源进孤儿池);--purge 在无人引用时连资源行与本机字节一起删 */
|
|
486
|
-
localtaskDetach(input: z.input<typeof
|
|
338
|
+
localtaskDetach(input: z.input<InstanceType<typeof LocaltaskDetachAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskDetachAction>['run']>>>;
|
|
487
339
|
/** 标记任务完成:--summary 完成总结必填;带时间目标的任务未到点会被拒绝(blocked),到点自动记录最终 check */
|
|
488
|
-
done(input: z.input<typeof
|
|
340
|
+
done(input: z.input<InstanceType<typeof LocaltaskDoneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskDoneAction>['run']>>>;
|
|
489
341
|
/** 等待事件流:waiting 开始 / reminder 30s·10s / resolved delivered|timeout(SSE 长连接) */
|
|
490
|
-
events(input?: z.input<typeof
|
|
342
|
+
events(input?: z.input<InstanceType<typeof LocaltaskEventsAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskEventsAction>['run']>>>;
|
|
491
343
|
/** Fork 任务:复制正文内容为新任务,并把它挂到源任务的任务链下(保留评论/反馈链);不继承时间目标与依赖 */
|
|
492
|
-
fork(input: z.input<typeof
|
|
344
|
+
fork(input: z.input<InstanceType<typeof LocaltaskForkAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskForkAction>['run']>>>;
|
|
493
345
|
/** 查看单条任务(按 --id,定位到 --cwd 主题或 --key);正文引用附件时带附件清单与本地路径(自动下载跟随本机设置) */
|
|
494
|
-
localtaskGet(input: z.input<typeof
|
|
346
|
+
localtaskGet(input: z.input<InstanceType<typeof LocaltaskGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskGetAction>['run']>>>;
|
|
495
347
|
/** 从远程清单(KV 后端)导入任务到本地队列:按内容定位远程那条 → 落进本地队列 → 远程那条标记为已完成(note 写明被哪个队列领走) */
|
|
496
|
-
importRemote(input?: z.input<typeof
|
|
348
|
+
importRemote(input?: z.input<InstanceType<typeof LocaltaskImportRemoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['run']>>>;
|
|
497
349
|
/** 总览全部主题(工作目录、现状、是否等待中、待领取数) */
|
|
498
350
|
localtaskList(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskListAction>['run']>>>;
|
|
499
351
|
/** 探测主面板上当前打开的「实时任务」标签数(活动 SSE 连接数;用于 wait 不重复开页) */
|
|
500
352
|
presence(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPresenceAction>['run']>>>;
|
|
501
353
|
/** 预览一条任务在 get/wait 时的交付提示词(只读:不领取、不写盘、不启动计时、不为附件发网);草稿用 --text 直接预览 */
|
|
502
|
-
preview(input?: z.input<typeof
|
|
354
|
+
preview(input?: z.input<InstanceType<typeof LocaltaskPreviewAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPreviewAction>['run']>>>;
|
|
503
355
|
/** 清理旧脏数据(旧模型无目录主题、空主题;等待中一律保留) */
|
|
504
|
-
localtaskPrune(input?: z.input<typeof
|
|
356
|
+
localtaskPrune(input?: z.input<InstanceType<typeof LocaltaskPruneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPruneAction>['run']>>>;
|
|
505
357
|
/** 删除一条任务(按 --id,定位到 --cwd 主题或 --key);删除是**可恢复**的(软删除),加 --purge 彻底清除 */
|
|
506
|
-
localtaskRemove(input: z.input<typeof
|
|
358
|
+
localtaskRemove(input: z.input<InstanceType<typeof LocaltaskRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveAction>['run']>>>;
|
|
507
359
|
/** 批量删除任务(按 --ids,定位到 --cwd 主题或 --key):一次落盘,逐条软删除(可 restore 恢复);缺失的编号不阻断其余删除 */
|
|
508
|
-
removeMany(input: z.input<typeof
|
|
360
|
+
removeMany(input: z.input<InstanceType<typeof LocaltaskRemoveManyAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveManyAction>['run']>>>;
|
|
509
361
|
/** 重开任务(验收反馈 / 重做 / 评论):回写原任务正文,旧态压进 history;已完成则回到 pending 待再领 */
|
|
510
|
-
reopen(input: z.input<typeof
|
|
362
|
+
reopen(input: z.input<InstanceType<typeof LocaltaskReopenAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskReopenAction>['run']>>>;
|
|
511
363
|
/** 调整待领取任务优先级(--id <编号> 移到 --before-id <编号> 前或 --after-id <编号> 后) */
|
|
512
|
-
reorder(input: z.input<typeof
|
|
364
|
+
reorder(input: z.input<InstanceType<typeof LocaltaskReorderAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskReorderAction>['run']>>>;
|
|
513
365
|
/** 恢复一条被删除(软删除)的任务(撤销删除) */
|
|
514
|
-
restore(input: z.input<typeof
|
|
366
|
+
restore(input: z.input<InstanceType<typeof LocaltaskTaskRestoreAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTaskRestoreAction>['run']>>>;
|
|
515
367
|
/** 查看任务级时间目标的每轮 check 记录(时间、已用/剩余、是否到点、当轮总结) */
|
|
516
|
-
timegoalLog(input: z.input<typeof
|
|
368
|
+
timegoalLog(input: z.input<InstanceType<typeof LocaltaskTimegoalLogAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTimegoalLogAction>['run']>>>;
|
|
517
369
|
/** 登记一个工作目录:空目录也常驻(prune 不清);--summary 顺带写「现状摘要」(面板顶栏摘要的编辑入口) */
|
|
518
|
-
topicAdd(input: z.input<typeof
|
|
370
|
+
topicAdd(input: z.input<InstanceType<typeof LocaltaskTopicAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicAddAction>['run']>>>;
|
|
519
371
|
/** 删除整个主题(含全部任务;按 --cwd 或 --key,等待中需 --force) */
|
|
520
|
-
topicRemove(input?: z.input<typeof
|
|
372
|
+
topicRemove(input?: z.input<InstanceType<typeof LocaltaskTopicRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveAction>['run']>>>;
|
|
521
373
|
/** 批量删除主题(--keys/--cwds 逗号分隔,或 --all;等待中默认跳过,--force 连等待中删) */
|
|
522
|
-
topicRemoveMany(input?: z.input<typeof
|
|
374
|
+
topicRemoveMany(input?: z.input<InstanceType<typeof LocaltaskTopicRemoveManyAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveManyAction>['run']>>>;
|
|
523
375
|
/** 编辑任务内容(按 --id,定位到 --cwd 主题或 --key);可同时改时间目标声明(--duration/--goal-prompt/--clear-goal,仅未领取时可改——领取即计时,起表后声明是既成事实) */
|
|
524
|
-
localtaskUpdate(input: z.input<typeof
|
|
376
|
+
localtaskUpdate(input: z.input<InstanceType<typeof LocaltaskUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskUpdateAction>['run']>>>;
|
|
525
377
|
/** 在本机队列与云端清单之间迁移任务(先写目标端、成功才改源端;--undo 按返回的 target-id 精确撤销) */
|
|
526
|
-
move(input?: z.input<typeof
|
|
378
|
+
move(input?: z.input<InstanceType<typeof TaskMoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TaskMoveAction>['run']>>>;
|
|
527
379
|
/** 时间运算 + 原文回显 prompt + 写入一次状态日志;每次必须提供当前现状 --summary */
|
|
528
|
-
timegoalCheck(input: z.input<typeof
|
|
380
|
+
timegoalCheck(input: z.input<InstanceType<typeof TimegoalCheckAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalCheckAction>['run']>>>;
|
|
529
381
|
/** 清空本目录 timegoal(无则 no_goal,不抛错) */
|
|
530
|
-
clear(input: z.input<typeof
|
|
382
|
+
clear(input: z.input<InstanceType<typeof TimegoalClearAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['run']>>>;
|
|
531
383
|
/** 列出所有有 timegoal 的目录(按截止升序;已到点的单列在归档区) */
|
|
532
384
|
timegoalList(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalListAction>['run']>>>;
|
|
533
385
|
/** 查看本目录 timegoal 的检查日志(每轮 check 的现状) */
|
|
534
|
-
log(input: z.input<typeof
|
|
386
|
+
log(input: z.input<InstanceType<typeof TimegoalLogAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalLogAction>['run']>>>;
|
|
535
387
|
/** 彻底清除已到点 / 已归档的时间目标(到点本身已自动归档,这里是连归档区一起清) */
|
|
536
388
|
timegoalPrune(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalPruneAction>['run']>>>;
|
|
537
389
|
/** 为本目录设置/替换 timegoal:duration + 完整全局提示词(原文固化到 store) */
|
|
538
|
-
timegoalSet(input: z.input<typeof
|
|
390
|
+
timegoalSet(input: z.input<InstanceType<typeof TimegoalSetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalSetAction>['run']>>>;
|
|
539
391
|
/** 查看当前 timegoal(不算时间):--cwd 目录级,--task 任务级(key 在领取交付里自带) */
|
|
540
|
-
show(input?: z.input<typeof
|
|
392
|
+
show(input?: z.input<InstanceType<typeof TimegoalShowAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalShowAction>['run']>>>;
|
|
541
393
|
/** 更新本目录 timegoal 的提示词(可选同时改时长,--duration;保留起点,不重置计时) */
|
|
542
|
-
timegoalUpdate(input: z.input<typeof
|
|
394
|
+
timegoalUpdate(input: z.input<InstanceType<typeof TimegoalUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalUpdateAction>['run']>>>;
|
|
543
395
|
/** 新增任务模板(--body 给 Markdown 正文;多行正文用 --body-file <文件> 或 --body - 读管道;--setDefault 同时设为默认;--scope 设可见域、--topic 记创建主题并默认仅该主题可见) */
|
|
544
|
-
templatesAdd(input: z.input<typeof
|
|
396
|
+
templatesAdd(input: z.input<InstanceType<typeof TemplatesAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesAddAction>['run']>>>;
|
|
545
397
|
/** 设置默认模板(新建页的起始正文换成它);带 --body/--name/--scope 则改默认模板本身 */
|
|
546
|
-
default(input: z.input<typeof
|
|
398
|
+
default(input: z.input<InstanceType<typeof TemplatesDefaultAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesDefaultAction>['run']>>>;
|
|
547
399
|
/** 列出任务模板(含默认模板 id;新建页的起始正文按默认模板取) */
|
|
548
|
-
templatesList(input?: z.input<typeof
|
|
400
|
+
templatesList(input?: z.input<InstanceType<typeof TemplatesListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesListAction>['run']>>>;
|
|
549
401
|
/** 删除任务模板(内置默认模板不可删;删的是默认模板则默认回落到内置) */
|
|
550
|
-
templatesRemove(input: z.input<typeof
|
|
402
|
+
templatesRemove(input: z.input<InstanceType<typeof TemplatesRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesRemoveAction>['run']>>>;
|
|
551
403
|
/** 编辑任务模板(--name 改名 / --body 改正文 / --scope 改可见域,只改传入项;多行正文用 --body-file;内置模板的正文也可改) */
|
|
552
|
-
templatesUpdate(input: z.input<typeof
|
|
404
|
+
templatesUpdate(input: z.input<InstanceType<typeof TemplatesUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesUpdateAction>['run']>>>;
|
|
553
405
|
/** 新建工作空间 */
|
|
554
|
-
groupAdd(input: z.input<typeof
|
|
406
|
+
groupAdd(input: z.input<InstanceType<typeof GroupAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupAddAction>['run']>>>;
|
|
555
407
|
/** 查看当前工作空间 */
|
|
556
408
|
current(): Promise<Awaited<ReturnType<InstanceType<typeof GroupCurrentAction>['run']>>>;
|
|
557
409
|
/** 查看单个工作空间 */
|
|
558
|
-
groupGet(input: z.input<typeof
|
|
410
|
+
groupGet(input: z.input<InstanceType<typeof GroupGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupGetAction>['run']>>>;
|
|
559
411
|
/** 列出我的工作空间(* 为当前) */
|
|
560
412
|
groupList(): Promise<Awaited<ReturnType<InstanceType<typeof GroupListAction>['run']>>>;
|
|
561
413
|
/** 查看工作空间成员 */
|
|
562
|
-
members(input: z.input<typeof
|
|
414
|
+
members(input: z.input<InstanceType<typeof GroupMembersAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupMembersAction>['run']>>>;
|
|
563
415
|
/** 解散工作空间(后端要求组内已无 KV) */
|
|
564
|
-
groupRemove(input: z.input<typeof
|
|
416
|
+
groupRemove(input: z.input<InstanceType<typeof GroupRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupRemoveAction>['run']>>>;
|
|
565
417
|
/** 改名 / 改描述(只改传入的字段) */
|
|
566
|
-
groupUpdate(input: z.input<typeof
|
|
418
|
+
groupUpdate(input: z.input<InstanceType<typeof GroupUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupUpdateAction>['run']>>>;
|
|
567
419
|
/** 切换当前工作空间(id 或名称;0 / default 回默认组) */
|
|
568
|
-
use(input: z.input<typeof
|
|
420
|
+
use(input: z.input<InstanceType<typeof GroupUseAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupUseAction>['run']>>>;
|
|
569
421
|
/** 读取某主题的上下文提示词 */
|
|
570
|
-
promptGet(input: z.input<typeof
|
|
422
|
+
promptGet(input: z.input<InstanceType<typeof PromptGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof PromptGetAction>['run']>>>;
|
|
571
423
|
/** 删除某主题的提示词 */
|
|
572
|
-
promptRemove(input: z.input<typeof
|
|
424
|
+
promptRemove(input: z.input<InstanceType<typeof PromptRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof PromptRemoveAction>['run']>>>;
|
|
573
425
|
/** 写入某主题的上下文提示词(覆盖) */
|
|
574
|
-
promptSet(input: z.input<typeof
|
|
426
|
+
promptSet(input: z.input<InstanceType<typeof PromptSetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof PromptSetAction>['run']>>>;
|
|
575
427
|
/** 新增任务到待办(topic 不在快捷列表时自动补上) */
|
|
576
|
-
todoAdd(input: z.input<typeof
|
|
428
|
+
todoAdd(input: z.input<InstanceType<typeof TodoAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAddAction>['run']>>>;
|
|
577
429
|
/** 把已完成里较旧的条目归档到冷 key(默认 30 天前) */
|
|
578
|
-
archive(input?: z.input<typeof
|
|
430
|
+
archive(input?: z.input<InstanceType<typeof TodoArchiveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoArchiveAction>['run']>>>;
|
|
579
431
|
/** 给任务追加附件:--path 上传本机文件,或 --fileId 追加已上传附件,以 markdown 嵌入正文末尾 */
|
|
580
|
-
todoAttach(input: z.input<typeof
|
|
432
|
+
todoAttach(input: z.input<InstanceType<typeof TodoAttachAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAttachAction>['run']>>>;
|
|
581
433
|
/** 列出某条任务引用的附件,以及本地是否已有(给 agent 直接读本地文件) */
|
|
582
|
-
todoAttachments(input: z.input<typeof
|
|
434
|
+
todoAttachments(input: z.input<InstanceType<typeof TodoAttachmentsAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAttachmentsAction>['run']>>>;
|
|
583
435
|
/** 标记完成(--ref 定位;--result 写进 note 作为完成结果) */
|
|
584
|
-
todoDone(input: z.input<typeof
|
|
436
|
+
todoDone(input: z.input<InstanceType<typeof TodoDoneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoDoneAction>['run']>>>;
|
|
585
437
|
/** 冻结任务(按内容定位;id 保留,解冻时校验冲突) */
|
|
586
|
-
freeze(input: z.input<typeof
|
|
438
|
+
freeze(input: z.input<InstanceType<typeof TodoFreezeAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoFreezeAction>['run']>>>;
|
|
587
439
|
/** 查看单个任务(按内容定位;自动在待办/已完成/冻结里找) */
|
|
588
|
-
todoGet(input: z.input<typeof
|
|
440
|
+
todoGet(input: z.input<InstanceType<typeof TodoGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoGetAction>['run']>>>;
|
|
589
441
|
/** 列出任务(--topic / --status 过滤;默认三个桶全列) */
|
|
590
|
-
todoList(input?: z.input<typeof
|
|
442
|
+
todoList(input?: z.input<InstanceType<typeof TodoListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoListAction>['run']>>>;
|
|
591
443
|
/** 删除任务(按内容定位,只删命中的那一条) */
|
|
592
|
-
todoRemove(input: z.input<typeof
|
|
444
|
+
todoRemove(input: z.input<InstanceType<typeof TodoRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoRemoveAction>['run']>>>;
|
|
593
445
|
/** 解冻回待办(按内容定位;id 撞车时自动换新 id) */
|
|
594
|
-
unfreeze(input: z.input<typeof
|
|
446
|
+
unfreeze(input: z.input<InstanceType<typeof TodoUnfreezeAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUnfreezeAction>['run']>>>;
|
|
595
447
|
/** 编辑任务(按内容定位,只改传入的字段) */
|
|
596
|
-
todoUpdate(input: z.input<typeof
|
|
448
|
+
todoUpdate(input: z.input<InstanceType<typeof TodoUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUpdateAction>['run']>>>;
|
|
597
449
|
/** 加入快捷主题 */
|
|
598
|
-
topicAdd2(input: z.input<typeof
|
|
450
|
+
topicAdd2(input: z.input<InstanceType<typeof TopicAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TopicAddAction>['run']>>>;
|
|
599
451
|
/** 快捷主题列表(含各状态任务数) */
|
|
600
|
-
topicList(input?: z.input<typeof
|
|
452
|
+
topicList(input?: z.input<InstanceType<typeof TopicListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TopicListAction>['run']>>>;
|
|
601
453
|
/** 移出快捷主题(不动已有任务;仍被任务使用时会在结果里提示) */
|
|
602
|
-
topicRemove2(input: z.input<typeof
|
|
454
|
+
topicRemove2(input: z.input<InstanceType<typeof TopicRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TopicRemoveAction>['run']>>>;
|
|
603
455
|
/** 取附件本体:面板内联预览;CLI 打印出图地址与本地路径 */
|
|
604
|
-
content(input: z.input<typeof
|
|
456
|
+
content(input: z.input<InstanceType<typeof FileContentAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileContentAction>['run']>>>;
|
|
605
457
|
/** 查单个附件的元数据与本地路径 */
|
|
606
|
-
fileGet(input: z.input<typeof
|
|
458
|
+
fileGet(input: z.input<InstanceType<typeof FileGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileGetAction>['run']>>>;
|
|
607
459
|
/** 列出当前用户空间的附件(含本地已同步路径) */
|
|
608
|
-
fileList(input?: z.input<typeof
|
|
460
|
+
fileList(input?: z.input<InstanceType<typeof FileListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileListAction>['run']>>>;
|
|
609
461
|
/** 列出无主资源(没有任何任务/文档关系边;删任务、删文档、删正文行之后用) */
|
|
610
462
|
orphans(): Promise<Awaited<ReturnType<InstanceType<typeof FileOrphansAction>['run']>>>;
|
|
611
463
|
/** 回收无主资源(DB 行 + 附件根目录内的本机/镜像字节;仍被引用的不删) */
|
|
612
|
-
filePrune(input?: z.input<typeof
|
|
464
|
+
filePrune(input?: z.input<InstanceType<typeof FilePruneAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FilePruneAction>['run']>>>;
|
|
613
465
|
/** 删除附件(后端软删;本地副本要清用 file sync --prune) */
|
|
614
|
-
fileRemove(input: z.input<typeof
|
|
466
|
+
fileRemove(input: z.input<InstanceType<typeof FileRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileRemoveAction>['run']>>>;
|
|
615
467
|
/** 把附件同步到本机(默认全部;--ids 只同步指定附件)——为了不再依赖网络读附件 */
|
|
616
|
-
fileSync(input?: z.input<typeof
|
|
468
|
+
fileSync(input?: z.input<InstanceType<typeof FileSyncAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileSyncAction>['run']>>>;
|
|
617
469
|
/** 上传附件(--local 存本机附件仓,本地任务贴图用;默认传当前用户空间的云端图床) */
|
|
618
|
-
upload(input?: z.input<typeof
|
|
470
|
+
upload(input?: z.input<InstanceType<typeof FileUploadAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileUploadAction>['run']>>>;
|
|
619
471
|
/** 输出内置 skill 全文(prefix + sentinel + 正文 + install 状态),并顺手装到本机 */
|
|
620
|
-
bundledGet(input?: z.input<typeof
|
|
472
|
+
bundledGet(input?: z.input<InstanceType<typeof BundledGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BundledGetAction>['run']>>>;
|
|
621
473
|
/** 列出可装的 group(groups.json 的组名 → 它包含哪些 skill) */
|
|
622
474
|
groups(): Promise<Awaited<ReturnType<InstanceType<typeof BundledGroupsAction>['run']>>>;
|
|
623
475
|
/** 安装内置 skill 到 skills 目录(默认 nx-kv → ~/.claude/skills;--group <key> 一键装一组;--all 装全部并直接覆盖) */
|
|
624
|
-
install(input?: z.input<typeof
|
|
476
|
+
install(input?: z.input<InstanceType<typeof BundledInstallAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['run']>>>;
|
|
625
477
|
/** 列出包内自带 skill(含文件数与描述)+ 默认装哪个 + 有哪些 group */
|
|
626
478
|
bundledList(): Promise<Awaited<ReturnType<InstanceType<typeof BundledListAction>['run']>>>;
|
|
627
479
|
}
|
|
@@ -644,15 +496,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
644
496
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof SettingGetAction>['run']>>;
|
|
645
497
|
},
|
|
646
498
|
// action: setting.set
|
|
647
|
-
async set(input?: z.input<typeof
|
|
648
|
-
const inp = input ?? ({} as z.input<typeof
|
|
499
|
+
async set(input?: z.input<InstanceType<typeof SettingSetAction>['_input']>) {
|
|
500
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof SettingSetAction>['_input']>);
|
|
649
501
|
const path = `/api/setting`;
|
|
650
502
|
const body = { "autoSyncAttachments": inp["autoSyncAttachments"], "attachmentsDir": inp["attachmentsDir"], "gitRepoRoot": inp["gitRepoRoot"], "gitDevRoot": inp["gitDevRoot"] };
|
|
651
503
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof SettingSetAction>['run']>>;
|
|
652
504
|
},
|
|
653
505
|
// action: auth.login
|
|
654
|
-
async login(input: z.input<typeof
|
|
655
|
-
const inp = input ?? ({} as z.input<typeof
|
|
506
|
+
async login(input: z.input<InstanceType<typeof AuthLoginAction>['_input']>) {
|
|
507
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof AuthLoginAction>['_input']>);
|
|
656
508
|
const path = `/api/auth/login`;
|
|
657
509
|
const body = { "email": inp["email"], "password": inp["password"], "baseUrl": inp["baseUrl"] };
|
|
658
510
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['run']>>;
|
|
@@ -673,15 +525,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
673
525
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof AuthStatusAction>['run']>>;
|
|
674
526
|
},
|
|
675
527
|
// action: board.add
|
|
676
|
-
async add(input: z.input<typeof
|
|
677
|
-
const inp = input ?? ({} as z.input<typeof
|
|
528
|
+
async add(input: z.input<InstanceType<typeof BoardAddAction>['_input']>) {
|
|
529
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardAddAction>['_input']>);
|
|
678
530
|
const path = `/api/boards`;
|
|
679
531
|
const body = { "name": inp["name"], "desc": inp["desc"] };
|
|
680
532
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardAddAction>['run']>>;
|
|
681
533
|
},
|
|
682
534
|
// action: board.assign
|
|
683
|
-
async assign(input: z.input<typeof
|
|
684
|
-
const inp = input ?? ({} as z.input<typeof
|
|
535
|
+
async assign(input: z.input<InstanceType<typeof BoardAssignAction>['_input']>) {
|
|
536
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardAssignAction>['_input']>);
|
|
685
537
|
const path = `/api/boards/assign`;
|
|
686
538
|
const body = { "id": inp["id"], "board": inp["board"], "before": inp["before"], "remove": inp["remove"] };
|
|
687
539
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['run']>>;
|
|
@@ -692,14 +544,14 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
692
544
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardExportAction>['run']>>;
|
|
693
545
|
},
|
|
694
546
|
// action: board.get
|
|
695
|
-
async boardGet(input: z.input<typeof
|
|
696
|
-
const inp = input ?? ({} as z.input<typeof
|
|
547
|
+
async boardGet(input: z.input<InstanceType<typeof BoardGetAction>['_input']>) {
|
|
548
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardGetAction>['_input']>);
|
|
697
549
|
const path = `/api/boards/${encodeURIComponent(String(inp["id"]))}`;
|
|
698
550
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardGetAction>['run']>>;
|
|
699
551
|
},
|
|
700
552
|
// action: board.import
|
|
701
|
-
async import(input?: z.input<typeof
|
|
702
|
-
const inp = input ?? ({} as z.input<typeof
|
|
553
|
+
async import(input?: z.input<InstanceType<typeof BoardImportAction>['_input']>) {
|
|
554
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardImportAction>['_input']>);
|
|
703
555
|
const path = `/api/boards/import`;
|
|
704
556
|
const body = { "file": inp["file"] };
|
|
705
557
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardImportAction>['run']>>;
|
|
@@ -710,91 +562,91 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
710
562
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardListAction>['run']>>;
|
|
711
563
|
},
|
|
712
564
|
// action: board.note
|
|
713
|
-
async note(input: z.input<typeof
|
|
714
|
-
const inp = input ?? ({} as z.input<typeof
|
|
565
|
+
async note(input: z.input<InstanceType<typeof BoardNoteAction>['_input']>) {
|
|
566
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardNoteAction>['_input']>);
|
|
715
567
|
const path = `/api/boards/note`;
|
|
716
568
|
const body = { "id": inp["id"], "board": inp["board"], "note": inp["note"] };
|
|
717
569
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardNoteAction>['run']>>;
|
|
718
570
|
},
|
|
719
571
|
// action: board.prefix
|
|
720
|
-
async prefix(input: z.input<typeof
|
|
721
|
-
const inp = input ?? ({} as z.input<typeof
|
|
572
|
+
async prefix(input: z.input<InstanceType<typeof BoardPrefixAction>['_input']>) {
|
|
573
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardPrefixAction>['_input']>);
|
|
722
574
|
const path = `/api/boards/prefix`;
|
|
723
575
|
const body = { "prefix": inp["prefix"], "board": inp["board"] };
|
|
724
576
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardPrefixAction>['run']>>;
|
|
725
577
|
},
|
|
726
578
|
// action: board.prune
|
|
727
|
-
async prune(input?: z.input<typeof
|
|
728
|
-
const inp = input ?? ({} as z.input<typeof
|
|
579
|
+
async prune(input?: z.input<InstanceType<typeof BoardPruneAction>['_input']>) {
|
|
580
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardPruneAction>['_input']>);
|
|
729
581
|
const path = `/api/boards/prune`;
|
|
730
582
|
const body = { "board": inp["board"], "all": inp["all"], "apply": inp["apply"] };
|
|
731
583
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardPruneAction>['run']>>;
|
|
732
584
|
},
|
|
733
585
|
// action: board.rekey
|
|
734
|
-
async rekey(input: z.input<typeof
|
|
735
|
-
const inp = input ?? ({} as z.input<typeof
|
|
586
|
+
async rekey(input: z.input<InstanceType<typeof BoardRekeyAction>['_input']>) {
|
|
587
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardRekeyAction>['_input']>);
|
|
736
588
|
const path = `/api/boards/rekey`;
|
|
737
589
|
const body = { "from": inp["from"], "to": inp["to"], "board": inp["board"] };
|
|
738
590
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardRekeyAction>['run']>>;
|
|
739
591
|
},
|
|
740
592
|
// action: board.remove
|
|
741
|
-
async remove(input: z.input<typeof
|
|
742
|
-
const inp = input ?? ({} as z.input<typeof
|
|
593
|
+
async remove(input: z.input<InstanceType<typeof BoardRemoveAction>['_input']>) {
|
|
594
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardRemoveAction>['_input']>);
|
|
743
595
|
const path = `/api/boards/${encodeURIComponent(String(inp["id"]))}`;
|
|
744
596
|
return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof BoardRemoveAction>['run']>>;
|
|
745
597
|
},
|
|
746
598
|
// action: board.update
|
|
747
|
-
async update(input: z.input<typeof
|
|
748
|
-
const inp = input ?? ({} as z.input<typeof
|
|
599
|
+
async update(input: z.input<InstanceType<typeof BoardUpdateAction>['_input']>) {
|
|
600
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BoardUpdateAction>['_input']>);
|
|
749
601
|
const path = `/api/boards/${encodeURIComponent(String(inp["id"]))}`;
|
|
750
602
|
const body = { "name": inp["name"], "desc": inp["desc"] };
|
|
751
603
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardUpdateAction>['run']>>;
|
|
752
604
|
},
|
|
753
605
|
// action: repo.add
|
|
754
|
-
async repoAdd(input: z.input<typeof
|
|
755
|
-
const inp = input ?? ({} as z.input<typeof
|
|
606
|
+
async repoAdd(input: z.input<InstanceType<typeof RepoAddAction>['_input']>) {
|
|
607
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoAddAction>['_input']>);
|
|
756
608
|
const path = `/api/repos`;
|
|
757
609
|
const body = { "path": inp["path"], "name": inp["name"], "icon": inp["icon"], "desc": inp["desc"], "notes": inp["notes"], "type": inp["type"], "remote": inp["remote"], "key": inp["key"], "key-custom": inp["key-custom"] };
|
|
758
610
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoAddAction>['run']>>;
|
|
759
611
|
},
|
|
760
612
|
// action: repo.bind-topics
|
|
761
|
-
async bindTopics(input?: z.input<typeof
|
|
762
|
-
const inp = input ?? ({} as z.input<typeof
|
|
613
|
+
async bindTopics(input?: z.input<InstanceType<typeof RepoBindTopicsAction>['_input']>) {
|
|
614
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoBindTopicsAction>['_input']>);
|
|
763
615
|
const path = `/api/repos/bind-topics`;
|
|
764
616
|
const body = { "repo": inp["repo"], "apply": inp["apply"] };
|
|
765
617
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoBindTopicsAction>['run']>>;
|
|
766
618
|
},
|
|
767
619
|
// action: repo.bind
|
|
768
|
-
async bind(input: z.input<typeof
|
|
769
|
-
const inp = input ?? ({} as z.input<typeof
|
|
620
|
+
async bind(input: z.input<InstanceType<typeof RepoBindAction>['_input']>) {
|
|
621
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoBindAction>['_input']>);
|
|
770
622
|
const path = `/api/repos/bind`;
|
|
771
623
|
const body = { "id": inp["id"], "repo": inp["repo"], "board": inp["board"], "remove": inp["remove"] };
|
|
772
624
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoBindAction>['run']>>;
|
|
773
625
|
},
|
|
774
626
|
// action: repo.clone
|
|
775
|
-
async clone(input: z.input<typeof
|
|
776
|
-
const inp = input ?? ({} as z.input<typeof
|
|
627
|
+
async clone(input: z.input<InstanceType<typeof RepoCloneAction>['_input']>) {
|
|
628
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoCloneAction>['_input']>);
|
|
777
629
|
const path = `/api/repos/clone`;
|
|
778
630
|
const body = { "remote": inp["remote"], "key": inp["key"], "name": inp["name"], "desc": inp["desc"], "type": inp["type"], "depth": inp["depth"] };
|
|
779
631
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoCloneAction>['run']>>;
|
|
780
632
|
},
|
|
781
633
|
// action: repo.detect
|
|
782
|
-
async detect(input: z.input<typeof
|
|
783
|
-
const inp = input ?? ({} as z.input<typeof
|
|
634
|
+
async detect(input: z.input<InstanceType<typeof RepoDetectAction>['_input']>) {
|
|
635
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoDetectAction>['_input']>);
|
|
784
636
|
const path = `/api/repos/detect`;
|
|
785
637
|
const body = { "path": inp["path"] };
|
|
786
638
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDetectAction>['run']>>;
|
|
787
639
|
},
|
|
788
640
|
// action: repo.doc.add
|
|
789
|
-
async docAdd(input: z.input<typeof
|
|
790
|
-
const inp = input ?? ({} as z.input<typeof
|
|
641
|
+
async docAdd(input: z.input<InstanceType<typeof RepoDocAddAction>['_input']>) {
|
|
642
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoDocAddAction>['_input']>);
|
|
791
643
|
const path = `/api/repos/docs`;
|
|
792
644
|
const body = { "id": inp["id"], "rel": inp["rel"], "path": inp["path"], "ref": inp["ref"], "file": inp["file"], "note": inp["note"], "tag": inp["tag"] };
|
|
793
645
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDocAddAction>['run']>>;
|
|
794
646
|
},
|
|
795
647
|
// action: repo.doc.list
|
|
796
|
-
async docList(input: z.input<typeof
|
|
797
|
-
const inp = input ?? ({} as z.input<typeof
|
|
648
|
+
async docList(input: z.input<InstanceType<typeof RepoDocListAction>['_input']>) {
|
|
649
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoDocListAction>['_input']>);
|
|
798
650
|
let path = `/api/repos/docs`;
|
|
799
651
|
const q = new URLSearchParams();
|
|
800
652
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -803,15 +655,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
803
655
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoDocListAction>['run']>>;
|
|
804
656
|
},
|
|
805
657
|
// action: repo.doc.remove
|
|
806
|
-
async docRemove(input: z.input<typeof
|
|
807
|
-
const inp = input ?? ({} as z.input<typeof
|
|
658
|
+
async docRemove(input: z.input<InstanceType<typeof RepoDocRemoveAction>['_input']>) {
|
|
659
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoDocRemoveAction>['_input']>);
|
|
808
660
|
const path = `/api/repos/docs`;
|
|
809
661
|
const body = { "id": inp["id"], "index": inp["index"] };
|
|
810
662
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDocRemoveAction>['run']>>;
|
|
811
663
|
},
|
|
812
664
|
// action: repo.export
|
|
813
|
-
async repoExport(input?: z.input<typeof
|
|
814
|
-
const inp = input ?? ({} as z.input<typeof
|
|
665
|
+
async repoExport(input?: z.input<InstanceType<typeof RepoExportAction>['_input']>) {
|
|
666
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoExportAction>['_input']>);
|
|
815
667
|
let path = `/api/repos/export`;
|
|
816
668
|
const q = new URLSearchParams();
|
|
817
669
|
if (inp["zip"] !== undefined) q.set("zip", String(inp["zip"]));
|
|
@@ -823,49 +675,49 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
823
675
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoExportAction>['run']>>;
|
|
824
676
|
},
|
|
825
677
|
// action: repo.get
|
|
826
|
-
async repoGet(input: z.input<typeof
|
|
827
|
-
const inp = input ?? ({} as z.input<typeof
|
|
678
|
+
async repoGet(input: z.input<InstanceType<typeof RepoGetAction>['_input']>) {
|
|
679
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoGetAction>['_input']>);
|
|
828
680
|
const path = `/api/repos/${encodeURIComponent(String(inp["id"]))}`;
|
|
829
681
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoGetAction>['run']>>;
|
|
830
682
|
},
|
|
831
683
|
// action: repo.import.diff
|
|
832
|
-
async diff(input?: z.input<typeof
|
|
833
|
-
const inp = input ?? ({} as z.input<typeof
|
|
684
|
+
async diff(input?: z.input<InstanceType<typeof RepoImportDiffAction>['_input']>) {
|
|
685
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoImportDiffAction>['_input']>);
|
|
834
686
|
const path = `/api/repos/import/diff`;
|
|
835
687
|
const body = { "file": inp["file"], "json": inp["json"] };
|
|
836
688
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoImportDiffAction>['run']>>;
|
|
837
689
|
},
|
|
838
690
|
// action: repo.import
|
|
839
|
-
async repoImport(input?: z.input<typeof
|
|
840
|
-
const inp = input ?? ({} as z.input<typeof
|
|
691
|
+
async repoImport(input?: z.input<InstanceType<typeof RepoImportAction>['_input']>) {
|
|
692
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoImportAction>['_input']>);
|
|
841
693
|
const path = `/api/repos/import`;
|
|
842
694
|
const body = { "file": inp["file"], "json": inp["json"], "strategy": inp["strategy"], "select": inp["select"], "boards": inp["boards"], "clone": inp["clone"] };
|
|
843
695
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoImportAction>['run']>>;
|
|
844
696
|
},
|
|
845
697
|
// action: repo.key.migrate
|
|
846
|
-
async migrate(input?: z.input<typeof
|
|
847
|
-
const inp = input ?? ({} as z.input<typeof
|
|
698
|
+
async migrate(input?: z.input<InstanceType<typeof RepoKeyMigrateAction>['_input']>) {
|
|
699
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoKeyMigrateAction>['_input']>);
|
|
848
700
|
const path = `/api/repos/key/migrate`;
|
|
849
701
|
const body = { "apply": inp["apply"] };
|
|
850
702
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeyMigrateAction>['run']>>;
|
|
851
703
|
},
|
|
852
704
|
// action: repo.key.refresh
|
|
853
|
-
async refresh(input?: z.input<typeof
|
|
854
|
-
const inp = input ?? ({} as z.input<typeof
|
|
705
|
+
async refresh(input?: z.input<InstanceType<typeof RepoKeyRefreshAction>['_input']>) {
|
|
706
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoKeyRefreshAction>['_input']>);
|
|
855
707
|
const path = `/api/repos/key/refresh`;
|
|
856
708
|
const body = { "id": inp["id"], "all": inp["all"], "apply": inp["apply"] };
|
|
857
709
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeyRefreshAction>['run']>>;
|
|
858
710
|
},
|
|
859
711
|
// action: repo.key.set
|
|
860
|
-
async keySet(input: z.input<typeof
|
|
861
|
-
const inp = input ?? ({} as z.input<typeof
|
|
712
|
+
async keySet(input: z.input<InstanceType<typeof RepoKeySetAction>['_input']>) {
|
|
713
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoKeySetAction>['_input']>);
|
|
862
714
|
const path = `/api/repos/key`;
|
|
863
715
|
const body = { "id": inp["id"], "key": inp["key"], "follow": inp["follow"] };
|
|
864
716
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeySetAction>['run']>>;
|
|
865
717
|
},
|
|
866
718
|
// action: repo.knowledge
|
|
867
|
-
async knowledge(input?: z.input<typeof
|
|
868
|
-
const inp = input ?? ({} as z.input<typeof
|
|
719
|
+
async knowledge(input?: z.input<InstanceType<typeof RepoKnowledgeAction>['_input']>) {
|
|
720
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoKnowledgeAction>['_input']>);
|
|
869
721
|
let path = `/api/repos/knowledge`;
|
|
870
722
|
const q = new URLSearchParams();
|
|
871
723
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -875,8 +727,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
875
727
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoKnowledgeAction>['run']>>;
|
|
876
728
|
},
|
|
877
729
|
// action: repo.list
|
|
878
|
-
async repoList(input?: z.input<typeof
|
|
879
|
-
const inp = input ?? ({} as z.input<typeof
|
|
730
|
+
async repoList(input?: z.input<InstanceType<typeof RepoListAction>['_input']>) {
|
|
731
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoListAction>['_input']>);
|
|
880
732
|
let path = `/api/repos`;
|
|
881
733
|
const q = new URLSearchParams();
|
|
882
734
|
if (inp["type"] !== undefined) q.set("type", String(inp["type"]));
|
|
@@ -885,15 +737,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
885
737
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoListAction>['run']>>;
|
|
886
738
|
},
|
|
887
739
|
// action: repo.open
|
|
888
|
-
async open(input: z.input<typeof
|
|
889
|
-
const inp = input ?? ({} as z.input<typeof
|
|
740
|
+
async open(input: z.input<InstanceType<typeof RepoOpenAction>['_input']>) {
|
|
741
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoOpenAction>['_input']>);
|
|
890
742
|
const path = `/api/repos/open`;
|
|
891
743
|
const body = { "id": inp["id"] };
|
|
892
744
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoOpenAction>['run']>>;
|
|
893
745
|
},
|
|
894
746
|
// action: repo.ref.add
|
|
895
|
-
async refAdd(input: z.input<typeof
|
|
896
|
-
const inp = input ?? ({} as z.input<typeof
|
|
747
|
+
async refAdd(input: z.input<InstanceType<typeof RepoRefAddAction>['_input']>) {
|
|
748
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRefAddAction>['_input']>);
|
|
897
749
|
const path = `/api/repos/ref/add`;
|
|
898
750
|
const body = { "path": inp["path"], "remote": inp["remote"], "name": inp["name"], "desc": inp["desc"], "notes": inp["notes"] };
|
|
899
751
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['run']>>;
|
|
@@ -904,22 +756,22 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
904
756
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRefCheckAction>['run']>>;
|
|
905
757
|
},
|
|
906
758
|
// action: repo.ref.clone
|
|
907
|
-
async refClone(input: z.input<typeof
|
|
908
|
-
const inp = input ?? ({} as z.input<typeof
|
|
759
|
+
async refClone(input: z.input<InstanceType<typeof RepoRefCloneAction>['_input']>) {
|
|
760
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRefCloneAction>['_input']>);
|
|
909
761
|
const path = `/api/repos/ref/clone`;
|
|
910
762
|
const body = { "url": inp["url"], "name": inp["name"], "desc": inp["desc"], "notes": inp["notes"], "board": inp["board"], "bind": inp["bind"], "depth": inp["depth"], "no-bind": inp["no-bind"] };
|
|
911
763
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefCloneAction>['run']>>;
|
|
912
764
|
},
|
|
913
765
|
// action: repo.ref.note
|
|
914
|
-
async refNote(input: z.input<typeof
|
|
915
|
-
const inp = input ?? ({} as z.input<typeof
|
|
766
|
+
async refNote(input: z.input<InstanceType<typeof RepoRefNoteAction>['_input']>) {
|
|
767
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRefNoteAction>['_input']>);
|
|
916
768
|
const path = `/api/repos/ref/note`;
|
|
917
769
|
const body = { "id": inp["id"], "repo": inp["repo"], "board": inp["board"], "note": inp["note"] };
|
|
918
770
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefNoteAction>['run']>>;
|
|
919
771
|
},
|
|
920
772
|
// action: repo.ref.of
|
|
921
|
-
async of(input?: z.input<typeof
|
|
922
|
-
const inp = input ?? ({} as z.input<typeof
|
|
773
|
+
async of(input?: z.input<InstanceType<typeof RepoRefOfAction>['_input']>) {
|
|
774
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRefOfAction>['_input']>);
|
|
923
775
|
let path = `/api/repos/ref/of`;
|
|
924
776
|
const q = new URLSearchParams();
|
|
925
777
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -928,15 +780,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
928
780
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRefOfAction>['run']>>;
|
|
929
781
|
},
|
|
930
782
|
// action: repo.ref.sync
|
|
931
|
-
async sync(input?: z.input<typeof
|
|
932
|
-
const inp = input ?? ({} as z.input<typeof
|
|
783
|
+
async sync(input?: z.input<InstanceType<typeof RepoRefSyncAction>['_input']>) {
|
|
784
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRefSyncAction>['_input']>);
|
|
933
785
|
const path = `/api/repos/ref/sync`;
|
|
934
786
|
const body = { "id": inp["id"], "all": inp["all"] };
|
|
935
787
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefSyncAction>['run']>>;
|
|
936
788
|
},
|
|
937
789
|
// action: repo.remote.check
|
|
938
|
-
async remoteCheck(input?: z.input<typeof
|
|
939
|
-
const inp = input ?? ({} as z.input<typeof
|
|
790
|
+
async remoteCheck(input?: z.input<InstanceType<typeof RepoRemoteCheckAction>['_input']>) {
|
|
791
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRemoteCheckAction>['_input']>);
|
|
940
792
|
let path = `/api/repos/remote/check`;
|
|
941
793
|
const q = new URLSearchParams();
|
|
942
794
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -946,8 +798,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
946
798
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteCheckAction>['run']>>;
|
|
947
799
|
},
|
|
948
800
|
// action: repo.remote.list
|
|
949
|
-
async remoteList(input?: z.input<typeof
|
|
950
|
-
const inp = input ?? ({} as z.input<typeof
|
|
801
|
+
async remoteList(input?: z.input<InstanceType<typeof RepoRemoteListAction>['_input']>) {
|
|
802
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRemoteListAction>['_input']>);
|
|
951
803
|
let path = `/api/repos/remote/list`;
|
|
952
804
|
const q = new URLSearchParams();
|
|
953
805
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -956,63 +808,63 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
956
808
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteListAction>['run']>>;
|
|
957
809
|
},
|
|
958
810
|
// action: repo.remote.pick
|
|
959
|
-
async pick(input: z.input<typeof
|
|
960
|
-
const inp = input ?? ({} as z.input<typeof
|
|
811
|
+
async pick(input: z.input<InstanceType<typeof RepoRemotePickAction>['_input']>) {
|
|
812
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRemotePickAction>['_input']>);
|
|
961
813
|
const path = `/api/repos/remote/pick`;
|
|
962
814
|
const body = { "id": inp["id"], "url": inp["url"] };
|
|
963
815
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRemotePickAction>['run']>>;
|
|
964
816
|
},
|
|
965
817
|
// action: repo.remote
|
|
966
|
-
async remote(input: z.input<typeof
|
|
967
|
-
const inp = input ?? ({} as z.input<typeof
|
|
818
|
+
async remote(input: z.input<InstanceType<typeof RepoRemoteAction>['_input']>) {
|
|
819
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRemoteAction>['_input']>);
|
|
968
820
|
const path = `/api/repos/remote`;
|
|
969
821
|
const body = { "id": inp["id"], "url": inp["url"], "refresh": inp["refresh"] };
|
|
970
822
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteAction>['run']>>;
|
|
971
823
|
},
|
|
972
824
|
// action: repo.remove
|
|
973
|
-
async repoRemove(input: z.input<typeof
|
|
974
|
-
const inp = input ?? ({} as z.input<typeof
|
|
825
|
+
async repoRemove(input: z.input<InstanceType<typeof RepoRemoveAction>['_input']>) {
|
|
826
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoRemoveAction>['_input']>);
|
|
975
827
|
const path = `/api/repos/${encodeURIComponent(String(inp["id"]))}`;
|
|
976
828
|
return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof RepoRemoveAction>['run']>>;
|
|
977
829
|
},
|
|
978
830
|
// action: repo.scan
|
|
979
|
-
async scan(input?: z.input<typeof
|
|
980
|
-
const inp = input ?? ({} as z.input<typeof
|
|
831
|
+
async scan(input?: z.input<InstanceType<typeof RepoScanAction>['_input']>) {
|
|
832
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoScanAction>['_input']>);
|
|
981
833
|
const path = `/api/repos/scan`;
|
|
982
834
|
const body = { "root": inp["root"], "depth": inp["depth"], "dry-run": inp["dry-run"] };
|
|
983
835
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoScanAction>['run']>>;
|
|
984
836
|
},
|
|
985
837
|
// action: repo.update
|
|
986
|
-
async repoUpdate(input: z.input<typeof
|
|
987
|
-
const inp = input ?? ({} as z.input<typeof
|
|
838
|
+
async repoUpdate(input: z.input<InstanceType<typeof RepoUpdateAction>['_input']>) {
|
|
839
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof RepoUpdateAction>['_input']>);
|
|
988
840
|
const path = `/api/repos/${encodeURIComponent(String(inp["id"]))}`;
|
|
989
841
|
const body = { "path": inp["path"], "name": inp["name"], "icon": inp["icon"], "desc": inp["desc"], "notes": inp["notes"], "type": inp["type"], "remote": inp["remote"], "key": inp["key"], "key-custom": inp["key-custom"], "get-loop": inp["get-loop"], "get-loop-minutes": inp["get-loop-minutes"], "get-loop-template": inp["get-loop-template"] };
|
|
990
842
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoUpdateAction>['run']>>;
|
|
991
843
|
},
|
|
992
844
|
// action: doc.add
|
|
993
|
-
async docAdd2(input: z.input<typeof
|
|
994
|
-
const inp = input ?? ({} as z.input<typeof
|
|
845
|
+
async docAdd2(input: z.input<InstanceType<typeof DocAddAction>['_input']>) {
|
|
846
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocAddAction>['_input']>);
|
|
995
847
|
const path = `/api/docs/item`;
|
|
996
848
|
const body = { "rel": inp["rel"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"] };
|
|
997
849
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAddAction>['run']>>;
|
|
998
850
|
},
|
|
999
851
|
// action: doc.attach-note
|
|
1000
|
-
async attachNote(input: z.input<typeof
|
|
1001
|
-
const inp = input ?? ({} as z.input<typeof
|
|
852
|
+
async attachNote(input: z.input<InstanceType<typeof DocAttachNoteAction>['_input']>) {
|
|
853
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocAttachNoteAction>['_input']>);
|
|
1002
854
|
const path = `/api/docs/attach-note`;
|
|
1003
855
|
const body = { "ref": inp["ref"], "attachment": inp["attachment"], "note": inp["note"] };
|
|
1004
856
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAttachNoteAction>['run']>>;
|
|
1005
857
|
},
|
|
1006
858
|
// action: doc.attach
|
|
1007
|
-
async attach(input: z.input<typeof
|
|
1008
|
-
const inp = input ?? ({} as z.input<typeof
|
|
859
|
+
async attach(input: z.input<InstanceType<typeof DocAttachAction>['_input']>) {
|
|
860
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocAttachAction>['_input']>);
|
|
1009
861
|
const path = `/api/docs/attach`;
|
|
1010
862
|
const body = { "ref": inp["ref"], "path": inp["path"], "fileId": inp["fileId"], "url": inp["url"], "task": inp["task"], "doc": inp["doc"], "name": inp["name"], "note": inp["note"], "noEmbed": inp["noEmbed"], "no-embed": inp["no-embed"] };
|
|
1011
863
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAttachAction>['run']>>;
|
|
1012
864
|
},
|
|
1013
865
|
// action: doc.attachments
|
|
1014
|
-
async attachments(input: z.input<typeof
|
|
1015
|
-
const inp = input ?? ({} as z.input<typeof
|
|
866
|
+
async attachments(input: z.input<InstanceType<typeof DocAttachmentsAction>['_input']>) {
|
|
867
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocAttachmentsAction>['_input']>);
|
|
1016
868
|
let path = `/api/docs/attachments`;
|
|
1017
869
|
const q = new URLSearchParams();
|
|
1018
870
|
if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
|
|
@@ -1021,15 +873,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1021
873
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocAttachmentsAction>['run']>>;
|
|
1022
874
|
},
|
|
1023
875
|
// action: doc.detach
|
|
1024
|
-
async detach(input: z.input<typeof
|
|
1025
|
-
const inp = input ?? ({} as z.input<typeof
|
|
876
|
+
async detach(input: z.input<InstanceType<typeof DocDetachAction>['_input']>) {
|
|
877
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocDetachAction>['_input']>);
|
|
1026
878
|
const path = `/api/docs/attach`;
|
|
1027
879
|
const body = { "ref": inp["ref"], "attachment": inp["attachment"], "purge": inp["purge"] };
|
|
1028
880
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof DocDetachAction>['run']>>;
|
|
1029
881
|
},
|
|
1030
882
|
// action: doc.get
|
|
1031
|
-
async docGet(input: z.input<typeof
|
|
1032
|
-
const inp = input ?? ({} as z.input<typeof
|
|
883
|
+
async docGet(input: z.input<InstanceType<typeof DocGetAction>['_input']>) {
|
|
884
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocGetAction>['_input']>);
|
|
1033
885
|
let path = `/api/docs/item`;
|
|
1034
886
|
const q = new URLSearchParams();
|
|
1035
887
|
if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
|
|
@@ -1038,8 +890,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1038
890
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocGetAction>['run']>>;
|
|
1039
891
|
},
|
|
1040
892
|
// action: doc.list
|
|
1041
|
-
async docList2(input?: z.input<typeof
|
|
1042
|
-
const inp = input ?? ({} as z.input<typeof
|
|
893
|
+
async docList2(input?: z.input<InstanceType<typeof DocListAction>['_input']>) {
|
|
894
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocListAction>['_input']>);
|
|
1043
895
|
let path = `/api/docs`;
|
|
1044
896
|
const q = new URLSearchParams();
|
|
1045
897
|
if (inp["external"] !== undefined) q.set("external", String(inp["external"]));
|
|
@@ -1048,22 +900,22 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1048
900
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocListAction>['run']>>;
|
|
1049
901
|
},
|
|
1050
902
|
// action: doc.remove
|
|
1051
|
-
async docRemove2(input: z.input<typeof
|
|
1052
|
-
const inp = input ?? ({} as z.input<typeof
|
|
903
|
+
async docRemove2(input: z.input<InstanceType<typeof DocRemoveAction>['_input']>) {
|
|
904
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocRemoveAction>['_input']>);
|
|
1053
905
|
const path = `/api/docs/item`;
|
|
1054
906
|
const body = { "ref": inp["ref"] };
|
|
1055
907
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof DocRemoveAction>['run']>>;
|
|
1056
908
|
},
|
|
1057
909
|
// action: doc.update
|
|
1058
|
-
async docUpdate(input: z.input<typeof
|
|
1059
|
-
const inp = input ?? ({} as z.input<typeof
|
|
910
|
+
async docUpdate(input: z.input<InstanceType<typeof DocUpdateAction>['_input']>) {
|
|
911
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocUpdateAction>['_input']>);
|
|
1060
912
|
const path = `/api/docs/item`;
|
|
1061
913
|
const body = { "ref": inp["ref"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"] };
|
|
1062
914
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof DocUpdateAction>['run']>>;
|
|
1063
915
|
},
|
|
1064
916
|
// action: docs.bind
|
|
1065
|
-
async docsBind(input?: z.input<typeof
|
|
1066
|
-
const inp = input ?? ({} as z.input<typeof
|
|
917
|
+
async docsBind(input?: z.input<InstanceType<typeof DocsBindAction>['_input']>) {
|
|
918
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocsBindAction>['_input']>);
|
|
1067
919
|
const path = `/api/docs/bind`;
|
|
1068
920
|
const body = { "repo": inp["repo"], "board": inp["board"], "rel": inp["rel"], "path": inp["path"], "reset": inp["reset"] };
|
|
1069
921
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsBindAction>['run']>>;
|
|
@@ -1074,50 +926,50 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1074
926
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocsIndexAction>['run']>>;
|
|
1075
927
|
},
|
|
1076
928
|
// action: docs.link
|
|
1077
|
-
async link(input: z.input<typeof
|
|
1078
|
-
const inp = input ?? ({} as z.input<typeof
|
|
929
|
+
async link(input: z.input<InstanceType<typeof DocsLinkAction>['_input']>) {
|
|
930
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocsLinkAction>['_input']>);
|
|
1079
931
|
const path = `/api/docs/link`;
|
|
1080
932
|
const body = { "board": inp["board"], "doc": inp["doc"], "note": inp["note"], "tag": inp["tag"], "remove": inp["remove"], "before": inp["before"] };
|
|
1081
933
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsLinkAction>['run']>>;
|
|
1082
934
|
},
|
|
1083
935
|
// action: docs.notebind
|
|
1084
|
-
async notebind(input: z.input<typeof
|
|
1085
|
-
const inp = input ?? ({} as z.input<typeof
|
|
936
|
+
async notebind(input: z.input<InstanceType<typeof DocsNotebindAction>['_input']>) {
|
|
937
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocsNotebindAction>['_input']>);
|
|
1086
938
|
const path = `/api/docs/note-bind`;
|
|
1087
939
|
const body = { "board": inp["board"], "repo": inp["repo"], "rel": inp["rel"], "path": inp["path"], "reset": inp["reset"] };
|
|
1088
940
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsNotebindAction>['run']>>;
|
|
1089
941
|
},
|
|
1090
942
|
// action: docs.seed
|
|
1091
|
-
async seed(input?: z.input<typeof
|
|
1092
|
-
const inp = input ?? ({} as z.input<typeof
|
|
943
|
+
async seed(input?: z.input<InstanceType<typeof DocsSeedAction>['_input']>) {
|
|
944
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof DocsSeedAction>['_input']>);
|
|
1093
945
|
const path = `/api/docs/seed`;
|
|
1094
946
|
const body = { "apply": inp["apply"] };
|
|
1095
947
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsSeedAction>['run']>>;
|
|
1096
948
|
},
|
|
1097
949
|
// action: localtask.add
|
|
1098
|
-
async localtaskAdd(input: z.input<typeof
|
|
1099
|
-
const inp = input ?? ({} as z.input<typeof
|
|
950
|
+
async localtaskAdd(input: z.input<InstanceType<typeof LocaltaskAddAction>['_input']>) {
|
|
951
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskAddAction>['_input']>);
|
|
1100
952
|
const path = `/api/localtasks`;
|
|
1101
953
|
const body = { "text": inp["text"], "cwd": inp["cwd"], "summary": inp["summary"], "global": inp["global"], "board": inp["board"], "project": inp["project"], "duration": inp["duration"], "goal-prompt": inp["goal-prompt"], "goalPrompt": inp["goalPrompt"], "block-by": inp["block-by"], "blockBy": inp["blockBy"], "gate": inp["gate"], "fork-of": inp["fork-of"], "forkOf": inp["forkOf"], "fork-kind": inp["fork-kind"], "forkKind": inp["forkKind"] };
|
|
1102
954
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAddAction>['run']>>;
|
|
1103
955
|
},
|
|
1104
956
|
// action: localtask.attach-note
|
|
1105
|
-
async localtaskAttachNote(input: z.input<typeof
|
|
1106
|
-
const inp = input ?? ({} as z.input<typeof
|
|
957
|
+
async localtaskAttachNote(input: z.input<InstanceType<typeof LocaltaskAttachNoteAction>['_input']>) {
|
|
958
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskAttachNoteAction>['_input']>);
|
|
1107
959
|
const path = `/api/localtasks/attach-note`;
|
|
1108
960
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "attachment": inp["attachment"], "note": inp["note"] };
|
|
1109
961
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachNoteAction>['run']>>;
|
|
1110
962
|
},
|
|
1111
963
|
// action: localtask.attach
|
|
1112
|
-
async localtaskAttach(input: z.input<typeof
|
|
1113
|
-
const inp = input ?? ({} as z.input<typeof
|
|
964
|
+
async localtaskAttach(input: z.input<InstanceType<typeof LocaltaskAttachAction>['_input']>) {
|
|
965
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskAttachAction>['_input']>);
|
|
1114
966
|
const path = `/api/localtasks/attach`;
|
|
1115
967
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "path": inp["path"], "fileId": inp["fileId"], "url": inp["url"], "task": inp["task"], "ref": inp["ref"], "inline": inp["inline"], "name": inp["name"], "kind": inp["kind"], "note": inp["note"], "noEmbed": inp["noEmbed"], "no-embed": inp["no-embed"] };
|
|
1116
968
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachAction>['run']>>;
|
|
1117
969
|
},
|
|
1118
970
|
// action: localtask.attachments
|
|
1119
|
-
async localtaskAttachments(input: z.input<typeof
|
|
1120
|
-
const inp = input ?? ({} as z.input<typeof
|
|
971
|
+
async localtaskAttachments(input: z.input<InstanceType<typeof LocaltaskAttachmentsAction>['_input']>) {
|
|
972
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskAttachmentsAction>['_input']>);
|
|
1121
973
|
let path = `/api/localtasks/attachments`;
|
|
1122
974
|
const q = new URLSearchParams();
|
|
1123
975
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -1128,22 +980,22 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1128
980
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachmentsAction>['run']>>;
|
|
1129
981
|
},
|
|
1130
982
|
// action: localtask.cancel
|
|
1131
|
-
async cancel(input?: z.input<typeof
|
|
1132
|
-
const inp = input ?? ({} as z.input<typeof
|
|
983
|
+
async cancel(input?: z.input<InstanceType<typeof LocaltaskCancelAction>['_input']>) {
|
|
984
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskCancelAction>['_input']>);
|
|
1133
985
|
const path = `/api/localtasks/cancel`;
|
|
1134
986
|
const body = { "cwd": inp["cwd"], "key": inp["key"] };
|
|
1135
987
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCancelAction>['run']>>;
|
|
1136
988
|
},
|
|
1137
989
|
// action: localtask.cancelMany
|
|
1138
|
-
async cancelMany(input: z.input<typeof
|
|
1139
|
-
const inp = input ?? ({} as z.input<typeof
|
|
990
|
+
async cancelMany(input: z.input<InstanceType<typeof LocaltaskCancelManyAction>['_input']>) {
|
|
991
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskCancelManyAction>['_input']>);
|
|
1140
992
|
const path = `/api/localtasks/items/cancel`;
|
|
1141
993
|
const body = { "ids": inp["ids"], "cwd": inp["cwd"], "key": inp["key"] };
|
|
1142
994
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCancelManyAction>['run']>>;
|
|
1143
995
|
},
|
|
1144
996
|
// action: localtask.chain
|
|
1145
|
-
async chain(input: z.input<typeof
|
|
1146
|
-
const inp = input ?? ({} as z.input<typeof
|
|
997
|
+
async chain(input: z.input<InstanceType<typeof LocaltaskChainAction>['_input']>) {
|
|
998
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskChainAction>['_input']>);
|
|
1147
999
|
let path = `/api/localtasks/chain`;
|
|
1148
1000
|
const q = new URLSearchParams();
|
|
1149
1001
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -1154,50 +1006,50 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1154
1006
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskChainAction>['run']>>;
|
|
1155
1007
|
},
|
|
1156
1008
|
// action: localtask.claim
|
|
1157
|
-
async claim(input?: z.input<typeof
|
|
1158
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1009
|
+
async claim(input?: z.input<InstanceType<typeof LocaltaskClaimAction>['_input']>) {
|
|
1010
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskClaimAction>['_input']>);
|
|
1159
1011
|
const path = `/api/localtasks/claim`;
|
|
1160
1012
|
const body = { "cwd": inp["cwd"], "timeout": inp["timeout"], "no-open": inp["no-open"], "param": inp["param"] };
|
|
1161
1013
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskClaimAction>['run']>>;
|
|
1162
1014
|
},
|
|
1163
1015
|
// action: localtask.clone
|
|
1164
|
-
async localtaskClone(input: z.input<typeof
|
|
1165
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1016
|
+
async localtaskClone(input: z.input<InstanceType<typeof LocaltaskCloneAction>['_input']>) {
|
|
1017
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskCloneAction>['_input']>);
|
|
1166
1018
|
const path = `/api/localtasks/clone`;
|
|
1167
1019
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"] };
|
|
1168
1020
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCloneAction>['run']>>;
|
|
1169
1021
|
},
|
|
1170
1022
|
// action: localtask.closeMany
|
|
1171
|
-
async closeMany(input: z.input<typeof
|
|
1172
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1023
|
+
async closeMany(input: z.input<InstanceType<typeof LocaltaskCloseManyAction>['_input']>) {
|
|
1024
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskCloseManyAction>['_input']>);
|
|
1173
1025
|
const path = `/api/localtasks/items/close`;
|
|
1174
1026
|
const body = { "ids": inp["ids"], "cwd": inp["cwd"], "key": inp["key"], "status": inp["status"], "summary": inp["summary"] };
|
|
1175
1027
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCloseManyAction>['run']>>;
|
|
1176
1028
|
},
|
|
1177
1029
|
// action: localtask.config
|
|
1178
|
-
async config(input?: z.input<typeof
|
|
1179
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1030
|
+
async config(input?: z.input<InstanceType<typeof LocaltaskConfigAction>['_input']>) {
|
|
1031
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskConfigAction>['_input']>);
|
|
1180
1032
|
const path = `/api/localtasks/setting`;
|
|
1181
1033
|
const body = { "timeout": inp["timeout"], "ack": inp["ack"], "ack-list": inp["ack-list"], "ackList": inp["ackList"], "delivery-template": inp["delivery-template"], "reset-delivery-template": inp["reset-delivery-template"], "attach-template": inp["attach-template"], "attachTemplate": inp["attachTemplate"], "reset-attach-template": inp["reset-attach-template"], "append-mode": inp["append-mode"], "block-templates": inp["block-templates"] };
|
|
1182
1034
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskConfigAction>['run']>>;
|
|
1183
1035
|
},
|
|
1184
1036
|
// action: localtask.detach
|
|
1185
|
-
async localtaskDetach(input: z.input<typeof
|
|
1186
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1037
|
+
async localtaskDetach(input: z.input<InstanceType<typeof LocaltaskDetachAction>['_input']>) {
|
|
1038
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskDetachAction>['_input']>);
|
|
1187
1039
|
const path = `/api/localtasks/attach`;
|
|
1188
1040
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "attachment": inp["attachment"], "purge": inp["purge"] };
|
|
1189
1041
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskDetachAction>['run']>>;
|
|
1190
1042
|
},
|
|
1191
1043
|
// action: localtask.done
|
|
1192
|
-
async done(input: z.input<typeof
|
|
1193
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1044
|
+
async done(input: z.input<InstanceType<typeof LocaltaskDoneAction>['_input']>) {
|
|
1045
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskDoneAction>['_input']>);
|
|
1194
1046
|
const path = `/api/localtasks/done`;
|
|
1195
1047
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "summary": inp["summary"] };
|
|
1196
1048
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskDoneAction>['run']>>;
|
|
1197
1049
|
},
|
|
1198
1050
|
// action: localtask.events
|
|
1199
|
-
async events(input?: z.input<typeof
|
|
1200
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1051
|
+
async events(input?: z.input<InstanceType<typeof LocaltaskEventsAction>['_input']>) {
|
|
1052
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskEventsAction>['_input']>);
|
|
1201
1053
|
let path = `/api/localtasks/events`;
|
|
1202
1054
|
const q = new URLSearchParams();
|
|
1203
1055
|
if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
|
|
@@ -1209,15 +1061,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1209
1061
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskEventsAction>['run']>>;
|
|
1210
1062
|
},
|
|
1211
1063
|
// action: localtask.fork
|
|
1212
|
-
async fork(input: z.input<typeof
|
|
1213
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1064
|
+
async fork(input: z.input<InstanceType<typeof LocaltaskForkAction>['_input']>) {
|
|
1065
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskForkAction>['_input']>);
|
|
1214
1066
|
const path = `/api/localtasks/fork`;
|
|
1215
1067
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"] };
|
|
1216
1068
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskForkAction>['run']>>;
|
|
1217
1069
|
},
|
|
1218
1070
|
// action: localtask.get
|
|
1219
|
-
async localtaskGet(input: z.input<typeof
|
|
1220
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1071
|
+
async localtaskGet(input: z.input<InstanceType<typeof LocaltaskGetAction>['_input']>) {
|
|
1072
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskGetAction>['_input']>);
|
|
1221
1073
|
let path = `/api/localtasks/item`;
|
|
1222
1074
|
const q = new URLSearchParams();
|
|
1223
1075
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -1228,8 +1080,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1228
1080
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskGetAction>['run']>>;
|
|
1229
1081
|
},
|
|
1230
1082
|
// action: localtask.importRemote
|
|
1231
|
-
async importRemote(input?: z.input<typeof
|
|
1232
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1083
|
+
async importRemote(input?: z.input<InstanceType<typeof LocaltaskImportRemoteAction>['_input']>) {
|
|
1084
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskImportRemoteAction>['_input']>);
|
|
1233
1085
|
const path = `/api/localtasks/import-remote`;
|
|
1234
1086
|
const body = { "ref": inp["ref"], "cwd": inp["cwd"], "global": inp["global"], "topic": inp["topic"], "pick": inp["pick"] };
|
|
1235
1087
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['run']>>;
|
|
@@ -1245,57 +1097,57 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1245
1097
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPresenceAction>['run']>>;
|
|
1246
1098
|
},
|
|
1247
1099
|
// action: localtask.preview
|
|
1248
|
-
async preview(input?: z.input<typeof
|
|
1249
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1100
|
+
async preview(input?: z.input<InstanceType<typeof LocaltaskPreviewAction>['_input']>) {
|
|
1101
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskPreviewAction>['_input']>);
|
|
1250
1102
|
const path = `/api/localtasks/preview`;
|
|
1251
1103
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "text": inp["text"], "param": inp["param"] };
|
|
1252
1104
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPreviewAction>['run']>>;
|
|
1253
1105
|
},
|
|
1254
1106
|
// action: localtask.prune
|
|
1255
|
-
async localtaskPrune(input?: z.input<typeof
|
|
1256
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1107
|
+
async localtaskPrune(input?: z.input<InstanceType<typeof LocaltaskPruneAction>['_input']>) {
|
|
1108
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskPruneAction>['_input']>);
|
|
1257
1109
|
const path = `/api/localtasks/prune`;
|
|
1258
1110
|
const body = { "all-finished": inp["all-finished"], "dry-run": inp["dry-run"] };
|
|
1259
1111
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPruneAction>['run']>>;
|
|
1260
1112
|
},
|
|
1261
1113
|
// action: localtask.remove
|
|
1262
|
-
async localtaskRemove(input: z.input<typeof
|
|
1263
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1114
|
+
async localtaskRemove(input: z.input<InstanceType<typeof LocaltaskRemoveAction>['_input']>) {
|
|
1115
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskRemoveAction>['_input']>);
|
|
1264
1116
|
const path = `/api/localtasks/item`;
|
|
1265
1117
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "purge": inp["purge"] };
|
|
1266
1118
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveAction>['run']>>;
|
|
1267
1119
|
},
|
|
1268
1120
|
// action: localtask.removeMany
|
|
1269
|
-
async removeMany(input: z.input<typeof
|
|
1270
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1121
|
+
async removeMany(input: z.input<InstanceType<typeof LocaltaskRemoveManyAction>['_input']>) {
|
|
1122
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskRemoveManyAction>['_input']>);
|
|
1271
1123
|
const path = `/api/localtasks/items`;
|
|
1272
1124
|
const body = { "ids": inp["ids"], "cwd": inp["cwd"], "key": inp["key"], "purge": inp["purge"] };
|
|
1273
1125
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveManyAction>['run']>>;
|
|
1274
1126
|
},
|
|
1275
1127
|
// action: localtask.reopen
|
|
1276
|
-
async reopen(input: z.input<typeof
|
|
1277
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1128
|
+
async reopen(input: z.input<InstanceType<typeof LocaltaskReopenAction>['_input']>) {
|
|
1129
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskReopenAction>['_input']>);
|
|
1278
1130
|
const path = `/api/localtasks/reopen`;
|
|
1279
1131
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "text": inp["text"], "kind": inp["kind"], "quote": inp["quote"], "feedback": inp["feedback"], "feedbackHeading": inp["feedbackHeading"], "feedbackBold": inp["feedbackBold"] };
|
|
1280
1132
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskReopenAction>['run']>>;
|
|
1281
1133
|
},
|
|
1282
1134
|
// action: localtask.reorder
|
|
1283
|
-
async reorder(input: z.input<typeof
|
|
1284
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1135
|
+
async reorder(input: z.input<InstanceType<typeof LocaltaskReorderAction>['_input']>) {
|
|
1136
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskReorderAction>['_input']>);
|
|
1285
1137
|
const path = `/api/localtasks/reorder`;
|
|
1286
1138
|
const body = { "id": inp["id"], "beforeId": inp["beforeId"], "afterId": inp["afterId"], "before-id": inp["before-id"], "after-id": inp["after-id"], "cwd": inp["cwd"], "key": inp["key"] };
|
|
1287
1139
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskReorderAction>['run']>>;
|
|
1288
1140
|
},
|
|
1289
1141
|
// action: localtask.task.restore
|
|
1290
|
-
async restore(input: z.input<typeof
|
|
1291
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1142
|
+
async restore(input: z.input<InstanceType<typeof LocaltaskTaskRestoreAction>['_input']>) {
|
|
1143
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskTaskRestoreAction>['_input']>);
|
|
1292
1144
|
const path = `/api/localtasks/tasks/restore`;
|
|
1293
1145
|
const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"] };
|
|
1294
1146
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTaskRestoreAction>['run']>>;
|
|
1295
1147
|
},
|
|
1296
1148
|
// action: localtask.timegoalLog
|
|
1297
|
-
async timegoalLog(input: z.input<typeof
|
|
1298
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1149
|
+
async timegoalLog(input: z.input<InstanceType<typeof LocaltaskTimegoalLogAction>['_input']>) {
|
|
1150
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskTimegoalLogAction>['_input']>);
|
|
1299
1151
|
let path = `/api/localtasks/timegoal-log`;
|
|
1300
1152
|
const q = new URLSearchParams();
|
|
1301
1153
|
if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
|
|
@@ -1306,43 +1158,43 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1306
1158
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTimegoalLogAction>['run']>>;
|
|
1307
1159
|
},
|
|
1308
1160
|
// action: localtask.topic.add
|
|
1309
|
-
async topicAdd(input: z.input<typeof
|
|
1310
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1161
|
+
async topicAdd(input: z.input<InstanceType<typeof LocaltaskTopicAddAction>['_input']>) {
|
|
1162
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskTopicAddAction>['_input']>);
|
|
1311
1163
|
const path = `/api/localtasks/topic`;
|
|
1312
1164
|
const body = { "cwd": inp["cwd"], "summary": inp["summary"] };
|
|
1313
1165
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicAddAction>['run']>>;
|
|
1314
1166
|
},
|
|
1315
1167
|
// action: localtask.topic.remove
|
|
1316
|
-
async topicRemove(input?: z.input<typeof
|
|
1317
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1168
|
+
async topicRemove(input?: z.input<InstanceType<typeof LocaltaskTopicRemoveAction>['_input']>) {
|
|
1169
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskTopicRemoveAction>['_input']>);
|
|
1318
1170
|
const path = `/api/localtasks/topic`;
|
|
1319
1171
|
const body = { "cwd": inp["cwd"], "key": inp["key"], "force": inp["force"] };
|
|
1320
1172
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveAction>['run']>>;
|
|
1321
1173
|
},
|
|
1322
1174
|
// action: localtask.topic.removeMany
|
|
1323
|
-
async topicRemoveMany(input?: z.input<typeof
|
|
1324
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1175
|
+
async topicRemoveMany(input?: z.input<InstanceType<typeof LocaltaskTopicRemoveManyAction>['_input']>) {
|
|
1176
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskTopicRemoveManyAction>['_input']>);
|
|
1325
1177
|
const path = `/api/localtasks/topics/remove`;
|
|
1326
1178
|
const body = { "keys": inp["keys"], "cwds": inp["cwds"], "all": inp["all"], "force": inp["force"] };
|
|
1327
1179
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveManyAction>['run']>>;
|
|
1328
1180
|
},
|
|
1329
1181
|
// action: localtask.update
|
|
1330
|
-
async localtaskUpdate(input: z.input<typeof
|
|
1331
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1182
|
+
async localtaskUpdate(input: z.input<InstanceType<typeof LocaltaskUpdateAction>['_input']>) {
|
|
1183
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof LocaltaskUpdateAction>['_input']>);
|
|
1332
1184
|
const path = `/api/localtasks/item`;
|
|
1333
1185
|
const body = { "id": inp["id"], "text": inp["text"], "cwd": inp["cwd"], "key": inp["key"], "duration": inp["duration"], "goal-prompt": inp["goal-prompt"], "goalPrompt": inp["goalPrompt"], "clear-goal": inp["clear-goal"], "clearGoal": inp["clearGoal"], "block-by": inp["block-by"], "blockBy": inp["blockBy"], "clear-block-by": inp["clear-block-by"], "clearBlockBy": inp["clearBlockBy"], "gate": inp["gate"] };
|
|
1334
1186
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskUpdateAction>['run']>>;
|
|
1335
1187
|
},
|
|
1336
1188
|
// action: task.move
|
|
1337
|
-
async move(input?: z.input<typeof
|
|
1338
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1189
|
+
async move(input?: z.input<InstanceType<typeof TaskMoveAction>['_input']>) {
|
|
1190
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TaskMoveAction>['_input']>);
|
|
1339
1191
|
const path = `/api/task/move`;
|
|
1340
1192
|
const body = { "from": inp["from"], "to": inp["to"], "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "topic": inp["topic"], "text": inp["text"], "pick": inp["pick"], "merge": inp["merge"], "group": inp["group"], "undo": inp["undo"], "target-id": inp["target-id"], "tombstone-id": inp["tombstone-id"] };
|
|
1341
1193
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TaskMoveAction>['run']>>;
|
|
1342
1194
|
},
|
|
1343
1195
|
// action: timegoal.check
|
|
1344
|
-
async timegoalCheck(input: z.input<typeof
|
|
1345
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1196
|
+
async timegoalCheck(input: z.input<InstanceType<typeof TimegoalCheckAction>['_input']>) {
|
|
1197
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TimegoalCheckAction>['_input']>);
|
|
1346
1198
|
let path = `/api/timegoals/check`;
|
|
1347
1199
|
const q = new URLSearchParams();
|
|
1348
1200
|
if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
|
|
@@ -1353,8 +1205,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1353
1205
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalCheckAction>['run']>>;
|
|
1354
1206
|
},
|
|
1355
1207
|
// action: timegoal.clear
|
|
1356
|
-
async clear(input: z.input<typeof
|
|
1357
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1208
|
+
async clear(input: z.input<InstanceType<typeof TimegoalClearAction>['_input']>) {
|
|
1209
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TimegoalClearAction>['_input']>);
|
|
1358
1210
|
const path = `/api/timegoals`;
|
|
1359
1211
|
const body = { "cwd": inp["cwd"] };
|
|
1360
1212
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['run']>>;
|
|
@@ -1365,8 +1217,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1365
1217
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalListAction>['run']>>;
|
|
1366
1218
|
},
|
|
1367
1219
|
// action: timegoal.log
|
|
1368
|
-
async log(input: z.input<typeof
|
|
1369
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1220
|
+
async log(input: z.input<InstanceType<typeof TimegoalLogAction>['_input']>) {
|
|
1221
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TimegoalLogAction>['_input']>);
|
|
1370
1222
|
let path = `/api/timegoals/log`;
|
|
1371
1223
|
const q = new URLSearchParams();
|
|
1372
1224
|
if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
|
|
@@ -1380,15 +1232,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1380
1232
|
return (await transport.request("POST", path, undefined)) as Awaited<ReturnType<InstanceType<typeof TimegoalPruneAction>['run']>>;
|
|
1381
1233
|
},
|
|
1382
1234
|
// action: timegoal.set
|
|
1383
|
-
async timegoalSet(input: z.input<typeof
|
|
1384
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1235
|
+
async timegoalSet(input: z.input<InstanceType<typeof TimegoalSetAction>['_input']>) {
|
|
1236
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TimegoalSetAction>['_input']>);
|
|
1385
1237
|
const path = `/api/timegoals`;
|
|
1386
1238
|
const body = { "cwd": inp["cwd"], "duration": inp["duration"], "prompt": inp["prompt"] };
|
|
1387
1239
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalSetAction>['run']>>;
|
|
1388
1240
|
},
|
|
1389
1241
|
// action: timegoal.show
|
|
1390
|
-
async show(input?: z.input<typeof
|
|
1391
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1242
|
+
async show(input?: z.input<InstanceType<typeof TimegoalShowAction>['_input']>) {
|
|
1243
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TimegoalShowAction>['_input']>);
|
|
1392
1244
|
let path = `/api/timegoals`;
|
|
1393
1245
|
const q = new URLSearchParams();
|
|
1394
1246
|
if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
|
|
@@ -1398,29 +1250,29 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1398
1250
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalShowAction>['run']>>;
|
|
1399
1251
|
},
|
|
1400
1252
|
// action: timegoal.update
|
|
1401
|
-
async timegoalUpdate(input: z.input<typeof
|
|
1402
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1253
|
+
async timegoalUpdate(input: z.input<InstanceType<typeof TimegoalUpdateAction>['_input']>) {
|
|
1254
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TimegoalUpdateAction>['_input']>);
|
|
1403
1255
|
const path = `/api/timegoals`;
|
|
1404
1256
|
const body = { "cwd": inp["cwd"], "prompt": inp["prompt"], "duration": inp["duration"] };
|
|
1405
1257
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalUpdateAction>['run']>>;
|
|
1406
1258
|
},
|
|
1407
1259
|
// action: templates.add
|
|
1408
|
-
async templatesAdd(input: z.input<typeof
|
|
1409
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1260
|
+
async templatesAdd(input: z.input<InstanceType<typeof TemplatesAddAction>['_input']>) {
|
|
1261
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TemplatesAddAction>['_input']>);
|
|
1410
1262
|
const path = `/api/templates`;
|
|
1411
1263
|
const body = { "name": inp["name"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"], "setDefault": inp["setDefault"], "set-default": inp["set-default"], "scope": inp["scope"], "topic": inp["topic"], "cwd": inp["cwd"] };
|
|
1412
1264
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesAddAction>['run']>>;
|
|
1413
1265
|
},
|
|
1414
1266
|
// action: templates.default
|
|
1415
|
-
async default(input: z.input<typeof
|
|
1416
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1267
|
+
async default(input: z.input<InstanceType<typeof TemplatesDefaultAction>['_input']>) {
|
|
1268
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TemplatesDefaultAction>['_input']>);
|
|
1417
1269
|
const path = `/api/templates/default`;
|
|
1418
1270
|
const body = { "id": inp["id"], "name": inp["name"], "body": inp["body"], "values": inp["values"], "scope": inp["scope"] };
|
|
1419
1271
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesDefaultAction>['run']>>;
|
|
1420
1272
|
},
|
|
1421
1273
|
// action: templates.list
|
|
1422
|
-
async templatesList(input?: z.input<typeof
|
|
1423
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1274
|
+
async templatesList(input?: z.input<InstanceType<typeof TemplatesListAction>['_input']>) {
|
|
1275
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TemplatesListAction>['_input']>);
|
|
1424
1276
|
let path = `/api/templates`;
|
|
1425
1277
|
const q = new URLSearchParams();
|
|
1426
1278
|
if (inp["topic"] !== undefined) q.set("topic", String(inp["topic"]));
|
|
@@ -1431,21 +1283,21 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1431
1283
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TemplatesListAction>['run']>>;
|
|
1432
1284
|
},
|
|
1433
1285
|
// action: templates.remove
|
|
1434
|
-
async templatesRemove(input: z.input<typeof
|
|
1435
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1286
|
+
async templatesRemove(input: z.input<InstanceType<typeof TemplatesRemoveAction>['_input']>) {
|
|
1287
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TemplatesRemoveAction>['_input']>);
|
|
1436
1288
|
const path = `/api/templates/${encodeURIComponent(String(inp["id"]))}`;
|
|
1437
1289
|
return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof TemplatesRemoveAction>['run']>>;
|
|
1438
1290
|
},
|
|
1439
1291
|
// action: templates.update
|
|
1440
|
-
async templatesUpdate(input: z.input<typeof
|
|
1441
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1292
|
+
async templatesUpdate(input: z.input<InstanceType<typeof TemplatesUpdateAction>['_input']>) {
|
|
1293
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TemplatesUpdateAction>['_input']>);
|
|
1442
1294
|
const path = `/api/templates/${encodeURIComponent(String(inp["id"]))}`;
|
|
1443
1295
|
const body = { "name": inp["name"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"], "scope": inp["scope"], "values": inp["values"] };
|
|
1444
1296
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesUpdateAction>['run']>>;
|
|
1445
1297
|
},
|
|
1446
1298
|
// action: group.add
|
|
1447
|
-
async groupAdd(input: z.input<typeof
|
|
1448
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1299
|
+
async groupAdd(input: z.input<InstanceType<typeof GroupAddAction>['_input']>) {
|
|
1300
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof GroupAddAction>['_input']>);
|
|
1449
1301
|
const path = `/api/groups`;
|
|
1450
1302
|
const body = { "name": inp["name"], "description": inp["description"] };
|
|
1451
1303
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupAddAction>['run']>>;
|
|
@@ -1456,8 +1308,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1456
1308
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupCurrentAction>['run']>>;
|
|
1457
1309
|
},
|
|
1458
1310
|
// action: group.get
|
|
1459
|
-
async groupGet(input: z.input<typeof
|
|
1460
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1311
|
+
async groupGet(input: z.input<InstanceType<typeof GroupGetAction>['_input']>) {
|
|
1312
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof GroupGetAction>['_input']>);
|
|
1461
1313
|
const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}`;
|
|
1462
1314
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupGetAction>['run']>>;
|
|
1463
1315
|
},
|
|
@@ -1467,34 +1319,34 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1467
1319
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupListAction>['run']>>;
|
|
1468
1320
|
},
|
|
1469
1321
|
// action: group.members
|
|
1470
|
-
async members(input: z.input<typeof
|
|
1471
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1322
|
+
async members(input: z.input<InstanceType<typeof GroupMembersAction>['_input']>) {
|
|
1323
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof GroupMembersAction>['_input']>);
|
|
1472
1324
|
const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}/members`;
|
|
1473
1325
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupMembersAction>['run']>>;
|
|
1474
1326
|
},
|
|
1475
1327
|
// action: group.remove
|
|
1476
|
-
async groupRemove(input: z.input<typeof
|
|
1477
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1328
|
+
async groupRemove(input: z.input<InstanceType<typeof GroupRemoveAction>['_input']>) {
|
|
1329
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof GroupRemoveAction>['_input']>);
|
|
1478
1330
|
const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}`;
|
|
1479
1331
|
return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof GroupRemoveAction>['run']>>;
|
|
1480
1332
|
},
|
|
1481
1333
|
// action: group.update
|
|
1482
|
-
async groupUpdate(input: z.input<typeof
|
|
1483
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1334
|
+
async groupUpdate(input: z.input<InstanceType<typeof GroupUpdateAction>['_input']>) {
|
|
1335
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof GroupUpdateAction>['_input']>);
|
|
1484
1336
|
const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}`;
|
|
1485
1337
|
const body = { "name": inp["name"], "description": inp["description"] };
|
|
1486
1338
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupUpdateAction>['run']>>;
|
|
1487
1339
|
},
|
|
1488
1340
|
// action: group.use
|
|
1489
|
-
async use(input: z.input<typeof
|
|
1490
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1341
|
+
async use(input: z.input<InstanceType<typeof GroupUseAction>['_input']>) {
|
|
1342
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof GroupUseAction>['_input']>);
|
|
1491
1343
|
const path = `/api/group`;
|
|
1492
1344
|
const body = { "locator": inp["locator"] };
|
|
1493
1345
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupUseAction>['run']>>;
|
|
1494
1346
|
},
|
|
1495
1347
|
// action: prompt.get
|
|
1496
|
-
async promptGet(input: z.input<typeof
|
|
1497
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1348
|
+
async promptGet(input: z.input<InstanceType<typeof PromptGetAction>['_input']>) {
|
|
1349
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof PromptGetAction>['_input']>);
|
|
1498
1350
|
let path = `/api/prompts/${encodeURIComponent(String(inp["topic"]))}`;
|
|
1499
1351
|
const q = new URLSearchParams();
|
|
1500
1352
|
if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
|
|
@@ -1503,43 +1355,43 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1503
1355
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof PromptGetAction>['run']>>;
|
|
1504
1356
|
},
|
|
1505
1357
|
// action: prompt.remove
|
|
1506
|
-
async promptRemove(input: z.input<typeof
|
|
1507
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1358
|
+
async promptRemove(input: z.input<InstanceType<typeof PromptRemoveAction>['_input']>) {
|
|
1359
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof PromptRemoveAction>['_input']>);
|
|
1508
1360
|
const path = `/api/prompts/${encodeURIComponent(String(inp["topic"]))}`;
|
|
1509
1361
|
const body = { "group": inp["group"] };
|
|
1510
1362
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof PromptRemoveAction>['run']>>;
|
|
1511
1363
|
},
|
|
1512
1364
|
// action: prompt.set
|
|
1513
|
-
async promptSet(input: z.input<typeof
|
|
1514
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1365
|
+
async promptSet(input: z.input<InstanceType<typeof PromptSetAction>['_input']>) {
|
|
1366
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof PromptSetAction>['_input']>);
|
|
1515
1367
|
const path = `/api/prompts/${encodeURIComponent(String(inp["topic"]))}`;
|
|
1516
1368
|
const body = { "text": inp["text"], "group": inp["group"] };
|
|
1517
1369
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof PromptSetAction>['run']>>;
|
|
1518
1370
|
},
|
|
1519
1371
|
// action: todo.add
|
|
1520
|
-
async todoAdd(input: z.input<typeof
|
|
1521
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1372
|
+
async todoAdd(input: z.input<InstanceType<typeof TodoAddAction>['_input']>) {
|
|
1373
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoAddAction>['_input']>);
|
|
1522
1374
|
const path = `/api/todo`;
|
|
1523
1375
|
const body = { "text": inp["text"], "topic": inp["topic"], "group": inp["group"] };
|
|
1524
1376
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoAddAction>['run']>>;
|
|
1525
1377
|
},
|
|
1526
1378
|
// action: todo.archive
|
|
1527
|
-
async archive(input?: z.input<typeof
|
|
1528
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1379
|
+
async archive(input?: z.input<InstanceType<typeof TodoArchiveAction>['_input']>) {
|
|
1380
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoArchiveAction>['_input']>);
|
|
1529
1381
|
const path = `/api/todo/archive`;
|
|
1530
1382
|
const body = { "before": inp["before"], "group": inp["group"] };
|
|
1531
1383
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoArchiveAction>['run']>>;
|
|
1532
1384
|
},
|
|
1533
1385
|
// action: todo.attach
|
|
1534
|
-
async todoAttach(input: z.input<typeof
|
|
1535
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1386
|
+
async todoAttach(input: z.input<InstanceType<typeof TodoAttachAction>['_input']>) {
|
|
1387
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoAttachAction>['_input']>);
|
|
1536
1388
|
const path = `/api/todo/attach`;
|
|
1537
1389
|
const body = { "ref": inp["ref"], "path": inp["path"], "fileId": inp["fileId"], "name": inp["name"], "kind": inp["kind"], "accessLevel": inp["accessLevel"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
|
|
1538
1390
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoAttachAction>['run']>>;
|
|
1539
1391
|
},
|
|
1540
1392
|
// action: todo.attachments
|
|
1541
|
-
async todoAttachments(input: z.input<typeof
|
|
1542
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1393
|
+
async todoAttachments(input: z.input<InstanceType<typeof TodoAttachmentsAction>['_input']>) {
|
|
1394
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoAttachmentsAction>['_input']>);
|
|
1543
1395
|
let path = `/api/todo/attachments`;
|
|
1544
1396
|
const q = new URLSearchParams();
|
|
1545
1397
|
if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
|
|
@@ -1551,22 +1403,22 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1551
1403
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoAttachmentsAction>['run']>>;
|
|
1552
1404
|
},
|
|
1553
1405
|
// action: todo.done
|
|
1554
|
-
async todoDone(input: z.input<typeof
|
|
1555
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1406
|
+
async todoDone(input: z.input<InstanceType<typeof TodoDoneAction>['_input']>) {
|
|
1407
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoDoneAction>['_input']>);
|
|
1556
1408
|
const path = `/api/todo/done`;
|
|
1557
1409
|
const body = { "ref": inp["ref"], "result": inp["result"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
|
|
1558
1410
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoDoneAction>['run']>>;
|
|
1559
1411
|
},
|
|
1560
1412
|
// action: todo.freeze
|
|
1561
|
-
async freeze(input: z.input<typeof
|
|
1562
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1413
|
+
async freeze(input: z.input<InstanceType<typeof TodoFreezeAction>['_input']>) {
|
|
1414
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoFreezeAction>['_input']>);
|
|
1563
1415
|
const path = `/api/todo/freeze`;
|
|
1564
1416
|
const body = { "ref": inp["ref"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
|
|
1565
1417
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoFreezeAction>['run']>>;
|
|
1566
1418
|
},
|
|
1567
1419
|
// action: todo.get
|
|
1568
|
-
async todoGet(input: z.input<typeof
|
|
1569
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1420
|
+
async todoGet(input: z.input<InstanceType<typeof TodoGetAction>['_input']>) {
|
|
1421
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoGetAction>['_input']>);
|
|
1570
1422
|
let path = `/api/todo/item`;
|
|
1571
1423
|
const q = new URLSearchParams();
|
|
1572
1424
|
if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
|
|
@@ -1578,8 +1430,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1578
1430
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoGetAction>['run']>>;
|
|
1579
1431
|
},
|
|
1580
1432
|
// action: todo.list
|
|
1581
|
-
async todoList(input?: z.input<typeof
|
|
1582
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1433
|
+
async todoList(input?: z.input<InstanceType<typeof TodoListAction>['_input']>) {
|
|
1434
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoListAction>['_input']>);
|
|
1583
1435
|
let path = `/api/todo`;
|
|
1584
1436
|
const q = new URLSearchParams();
|
|
1585
1437
|
if (inp["topic"] !== undefined) q.set("topic", String(inp["topic"]));
|
|
@@ -1590,36 +1442,36 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1590
1442
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoListAction>['run']>>;
|
|
1591
1443
|
},
|
|
1592
1444
|
// action: todo.remove
|
|
1593
|
-
async todoRemove(input: z.input<typeof
|
|
1594
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1445
|
+
async todoRemove(input: z.input<InstanceType<typeof TodoRemoveAction>['_input']>) {
|
|
1446
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoRemoveAction>['_input']>);
|
|
1595
1447
|
const path = `/api/todo/item`;
|
|
1596
1448
|
const body = { "ref": inp["ref"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
|
|
1597
1449
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoRemoveAction>['run']>>;
|
|
1598
1450
|
},
|
|
1599
1451
|
// action: todo.unfreeze
|
|
1600
|
-
async unfreeze(input: z.input<typeof
|
|
1601
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1452
|
+
async unfreeze(input: z.input<InstanceType<typeof TodoUnfreezeAction>['_input']>) {
|
|
1453
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoUnfreezeAction>['_input']>);
|
|
1602
1454
|
const path = `/api/todo/unfreeze`;
|
|
1603
1455
|
const body = { "ref": inp["ref"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
|
|
1604
1456
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoUnfreezeAction>['run']>>;
|
|
1605
1457
|
},
|
|
1606
1458
|
// action: todo.update
|
|
1607
|
-
async todoUpdate(input: z.input<typeof
|
|
1608
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1459
|
+
async todoUpdate(input: z.input<InstanceType<typeof TodoUpdateAction>['_input']>) {
|
|
1460
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TodoUpdateAction>['_input']>);
|
|
1609
1461
|
const path = `/api/todo/item`;
|
|
1610
1462
|
const body = { "ref": inp["ref"], "topic": inp["topic"], "text": inp["text"], "note": inp["note"], "matchTopic": inp["matchTopic"], "pick": inp["pick"], "group": inp["group"] };
|
|
1611
1463
|
return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoUpdateAction>['run']>>;
|
|
1612
1464
|
},
|
|
1613
1465
|
// action: topic.add
|
|
1614
|
-
async topicAdd2(input: z.input<typeof
|
|
1615
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1466
|
+
async topicAdd2(input: z.input<InstanceType<typeof TopicAddAction>['_input']>) {
|
|
1467
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TopicAddAction>['_input']>);
|
|
1616
1468
|
const path = `/api/topics`;
|
|
1617
1469
|
const body = { "name": inp["name"], "group": inp["group"] };
|
|
1618
1470
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TopicAddAction>['run']>>;
|
|
1619
1471
|
},
|
|
1620
1472
|
// action: topic.list
|
|
1621
|
-
async topicList(input?: z.input<typeof
|
|
1622
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1473
|
+
async topicList(input?: z.input<InstanceType<typeof TopicListAction>['_input']>) {
|
|
1474
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TopicListAction>['_input']>);
|
|
1623
1475
|
let path = `/api/topics`;
|
|
1624
1476
|
const q = new URLSearchParams();
|
|
1625
1477
|
if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
|
|
@@ -1628,15 +1480,15 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1628
1480
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TopicListAction>['run']>>;
|
|
1629
1481
|
},
|
|
1630
1482
|
// action: topic.remove
|
|
1631
|
-
async topicRemove2(input: z.input<typeof
|
|
1632
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1483
|
+
async topicRemove2(input: z.input<InstanceType<typeof TopicRemoveAction>['_input']>) {
|
|
1484
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof TopicRemoveAction>['_input']>);
|
|
1633
1485
|
const path = `/api/topics`;
|
|
1634
1486
|
const body = { "name": inp["name"], "group": inp["group"] };
|
|
1635
1487
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TopicRemoveAction>['run']>>;
|
|
1636
1488
|
},
|
|
1637
1489
|
// action: file.content
|
|
1638
|
-
async content(input: z.input<typeof
|
|
1639
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1490
|
+
async content(input: z.input<InstanceType<typeof FileContentAction>['_input']>) {
|
|
1491
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof FileContentAction>['_input']>);
|
|
1640
1492
|
let path = `/api/file/content/${encodeURIComponent(String(inp["fileId"]))}`;
|
|
1641
1493
|
const q = new URLSearchParams();
|
|
1642
1494
|
if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
|
|
@@ -1645,8 +1497,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1645
1497
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileContentAction>['run']>>;
|
|
1646
1498
|
},
|
|
1647
1499
|
// action: file.get
|
|
1648
|
-
async fileGet(input: z.input<typeof
|
|
1649
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1500
|
+
async fileGet(input: z.input<InstanceType<typeof FileGetAction>['_input']>) {
|
|
1501
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof FileGetAction>['_input']>);
|
|
1650
1502
|
let path = `/api/file/item`;
|
|
1651
1503
|
const q = new URLSearchParams();
|
|
1652
1504
|
if (inp["fileId"] !== undefined) q.set("fileId", String(inp["fileId"]));
|
|
@@ -1656,8 +1508,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1656
1508
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileGetAction>['run']>>;
|
|
1657
1509
|
},
|
|
1658
1510
|
// action: file.list
|
|
1659
|
-
async fileList(input?: z.input<typeof
|
|
1660
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1511
|
+
async fileList(input?: z.input<InstanceType<typeof FileListAction>['_input']>) {
|
|
1512
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof FileListAction>['_input']>);
|
|
1661
1513
|
let path = `/api/file`;
|
|
1662
1514
|
const q = new URLSearchParams();
|
|
1663
1515
|
if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
|
|
@@ -1673,36 +1525,36 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1673
1525
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileOrphansAction>['run']>>;
|
|
1674
1526
|
},
|
|
1675
1527
|
// action: file.prune
|
|
1676
|
-
async filePrune(input?: z.input<typeof
|
|
1677
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1528
|
+
async filePrune(input?: z.input<InstanceType<typeof FilePruneAction>['_input']>) {
|
|
1529
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof FilePruneAction>['_input']>);
|
|
1678
1530
|
const path = `/api/file/prune`;
|
|
1679
1531
|
const body = { "dry-run": inp["dry-run"], "dryRun": inp["dryRun"] };
|
|
1680
1532
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FilePruneAction>['run']>>;
|
|
1681
1533
|
},
|
|
1682
1534
|
// action: file.remove
|
|
1683
|
-
async fileRemove(input: z.input<typeof
|
|
1684
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1535
|
+
async fileRemove(input: z.input<InstanceType<typeof FileRemoveAction>['_input']>) {
|
|
1536
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof FileRemoveAction>['_input']>);
|
|
1685
1537
|
const path = `/api/file/item`;
|
|
1686
1538
|
const body = { "fileId": inp["fileId"], "group": inp["group"] };
|
|
1687
1539
|
return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof FileRemoveAction>['run']>>;
|
|
1688
1540
|
},
|
|
1689
1541
|
// action: file.sync
|
|
1690
|
-
async fileSync(input?: z.input<typeof
|
|
1691
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1542
|
+
async fileSync(input?: z.input<InstanceType<typeof FileSyncAction>['_input']>) {
|
|
1543
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof FileSyncAction>['_input']>);
|
|
1692
1544
|
const path = `/api/file/sync`;
|
|
1693
1545
|
const body = { "ids": inp["ids"], "dir": inp["dir"], "prune": inp["prune"], "dryRun": inp["dryRun"], "group": inp["group"] };
|
|
1694
1546
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FileSyncAction>['run']>>;
|
|
1695
1547
|
},
|
|
1696
1548
|
// action: file.upload
|
|
1697
|
-
async upload(input?: z.input<typeof
|
|
1698
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1549
|
+
async upload(input?: z.input<InstanceType<typeof FileUploadAction>['_input']>) {
|
|
1550
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof FileUploadAction>['_input']>);
|
|
1699
1551
|
const path = `/api/file`;
|
|
1700
1552
|
const body = { "path": inp["path"], "content": inp["content"], "name": inp["name"], "contentType": inp["contentType"], "local": inp["local"], "accessLevel": inp["accessLevel"], "group": inp["group"] };
|
|
1701
1553
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FileUploadAction>['run']>>;
|
|
1702
1554
|
},
|
|
1703
1555
|
// action: bundled.get
|
|
1704
|
-
async bundledGet(input?: z.input<typeof
|
|
1705
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1556
|
+
async bundledGet(input?: z.input<InstanceType<typeof BundledGetAction>['_input']>) {
|
|
1557
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BundledGetAction>['_input']>);
|
|
1706
1558
|
let path = `/api/bundled/content`;
|
|
1707
1559
|
const q = new URLSearchParams();
|
|
1708
1560
|
if (inp["name"] !== undefined) q.set("name", String(inp["name"]));
|
|
@@ -1719,8 +1571,8 @@ export function createApiClient(transport: Transport): ApiClient {
|
|
|
1719
1571
|
return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledGroupsAction>['run']>>;
|
|
1720
1572
|
},
|
|
1721
1573
|
// action: bundled.install
|
|
1722
|
-
async install(input?: z.input<typeof
|
|
1723
|
-
const inp = input ?? ({} as z.input<typeof
|
|
1574
|
+
async install(input?: z.input<InstanceType<typeof BundledInstallAction>['_input']>) {
|
|
1575
|
+
const inp = input ?? ({} as z.input<InstanceType<typeof BundledInstallAction>['_input']>);
|
|
1724
1576
|
const path = `/api/bundled/install`;
|
|
1725
1577
|
const body = { "name": inp["name"], "group": inp["group"], "to": inp["to"], "force": inp["force"], "all": inp["all"] };
|
|
1726
1578
|
return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['run']>>;
|