nx-kv 0.48.0 → 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.
Files changed (242) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/package.json +1 -1
  3. package/src/modules/auth/actions/auth-login.ts +13 -6
  4. package/src/modules/auth/actions/auth-logout.ts +11 -6
  5. package/src/modules/auth/actions/auth-me.ts +11 -6
  6. package/src/modules/auth/actions/auth-status.ts +11 -6
  7. package/src/modules/bundled/actions/bundled-get.ts +14 -6
  8. package/src/modules/bundled/actions/bundled-groups.ts +11 -6
  9. package/src/modules/bundled/actions/bundled-install.ts +15 -6
  10. package/src/modules/bundled/actions/bundled-list.ts +11 -6
  11. package/src/modules/db/actions/db-backup.ts +12 -6
  12. package/src/modules/db/actions/db-migrate.ts +12 -6
  13. package/src/modules/db/actions/db-status.ts +11 -6
  14. package/src/modules/db/actions/db-verify.ts +11 -6
  15. package/src/modules/docs/actions/doc-add.ts +14 -6
  16. package/src/modules/docs/actions/doc-attach-note.ts +13 -6
  17. package/src/modules/docs/actions/doc-attach.ts +20 -6
  18. package/src/modules/docs/actions/doc-attachments.ts +11 -6
  19. package/src/modules/docs/actions/doc-detach.ts +13 -6
  20. package/src/modules/docs/actions/doc-get.ts +11 -6
  21. package/src/modules/docs/actions/doc-list.ts +11 -6
  22. package/src/modules/docs/actions/doc-remove.ts +11 -6
  23. package/src/modules/docs/actions/doc-update.ts +14 -6
  24. package/src/modules/docs/actions/docs-bind.ts +15 -6
  25. package/src/modules/docs/actions/docs-index.ts +11 -6
  26. package/src/modules/docs/actions/docs-link.ts +16 -6
  27. package/src/modules/docs/actions/docs-notebind.ts +15 -6
  28. package/src/modules/docs/actions/docs-seed.ts +11 -6
  29. package/src/modules/file/actions/file-content.ts +18 -10
  30. package/src/modules/file/actions/file-get.ts +12 -6
  31. package/src/modules/file/actions/file-list.ts +13 -6
  32. package/src/modules/file/actions/file-orphans.ts +11 -6
  33. package/src/modules/file/actions/file-prune.ts +12 -6
  34. package/src/modules/file/actions/file-remove.ts +12 -6
  35. package/src/modules/file/actions/file-sync.ts +15 -6
  36. package/src/modules/file/actions/file-upload.ts +17 -6
  37. package/src/modules/localtask/actions/localtask-add.ts +26 -6
  38. package/src/modules/localtask/actions/localtask-attach-note.ts +15 -6
  39. package/src/modules/localtask/actions/localtask-attach.ts +24 -6
  40. package/src/modules/localtask/actions/localtask-attachments.ts +13 -6
  41. package/src/modules/localtask/actions/localtask-cancel.ts +12 -6
  42. package/src/modules/localtask/actions/localtask-cancelMany.ts +13 -6
  43. package/src/modules/localtask/actions/localtask-chain.ts +13 -6
  44. package/src/modules/localtask/actions/localtask-claim.ts +14 -6
  45. package/src/modules/localtask/actions/localtask-clone.ts +13 -6
  46. package/src/modules/localtask/actions/localtask-closeMany.ts +15 -6
  47. package/src/modules/localtask/actions/localtask-config.ts +23 -8
  48. package/src/modules/localtask/actions/localtask-detach.ts +15 -6
  49. package/src/modules/localtask/actions/localtask-done.ts +14 -6
  50. package/src/modules/localtask/actions/localtask-events.ts +19 -9
  51. package/src/modules/localtask/actions/localtask-fork.ts +13 -6
  52. package/src/modules/localtask/actions/localtask-get.ts +13 -6
  53. package/src/modules/localtask/actions/localtask-importRemote.ts +20 -9
  54. package/src/modules/localtask/actions/localtask-list.ts +11 -6
  55. package/src/modules/localtask/actions/localtask-presence.ts +11 -6
  56. package/src/modules/localtask/actions/localtask-preview.ts +15 -6
  57. package/src/modules/localtask/actions/localtask-prune.ts +12 -6
  58. package/src/modules/localtask/actions/localtask-remove.ts +14 -6
  59. package/src/modules/localtask/actions/localtask-removeMany.ts +14 -6
  60. package/src/modules/localtask/actions/localtask-reopen.ts +22 -7
  61. package/src/modules/localtask/actions/localtask-reorder.ts +17 -6
  62. package/src/modules/localtask/actions/localtask-task-restore.ts +13 -6
  63. package/src/modules/localtask/actions/localtask-timegoalLog.ts +13 -6
  64. package/src/modules/localtask/actions/localtask-topic-add.ts +12 -6
  65. package/src/modules/localtask/actions/localtask-topic-remove.ts +13 -6
  66. package/src/modules/localtask/actions/localtask-topic-removeMany.ts +14 -6
  67. package/src/modules/localtask/actions/localtask-update.ts +24 -6
  68. package/src/modules/localtask/actions/localtask-wait.ts +15 -6
  69. package/src/modules/localtask/actions/task-move.ts +23 -6
  70. package/src/modules/repos/actions/board-add.ts +12 -6
  71. package/src/modules/repos/actions/board-assign.ts +14 -6
  72. package/src/modules/repos/actions/board-export.ts +11 -6
  73. package/src/modules/repos/actions/board-get.ts +11 -6
  74. package/src/modules/repos/actions/board-import.ts +17 -7
  75. package/src/modules/repos/actions/board-list.ts +11 -6
  76. package/src/modules/repos/actions/board-note.ts +13 -6
  77. package/src/modules/repos/actions/board-prefix.ts +12 -6
  78. package/src/modules/repos/actions/board-prune.ts +13 -6
  79. package/src/modules/repos/actions/board-rekey.ts +13 -6
  80. package/src/modules/repos/actions/board-remove.ts +11 -6
  81. package/src/modules/repos/actions/board-update.ts +13 -6
  82. package/src/modules/repos/actions/repo-add.ts +19 -6
  83. package/src/modules/repos/actions/repo-bind-topics.ts +12 -6
  84. package/src/modules/repos/actions/repo-bind.ts +14 -6
  85. package/src/modules/repos/actions/repo-clone.ts +16 -6
  86. package/src/modules/repos/actions/repo-detect.ts +11 -6
  87. package/src/modules/repos/actions/repo-doc-add.ts +17 -6
  88. package/src/modules/repos/actions/repo-doc-list.ts +11 -6
  89. package/src/modules/repos/actions/repo-doc-remove.ts +12 -6
  90. package/src/modules/repos/actions/repo-export.ts +14 -6
  91. package/src/modules/repos/actions/repo-get.ts +11 -6
  92. package/src/modules/repos/actions/repo-import-diff.ts +12 -6
  93. package/src/modules/repos/actions/repo-import.ts +16 -6
  94. package/src/modules/repos/actions/repo-key-migrate.ts +11 -6
  95. package/src/modules/repos/actions/repo-key-refresh.ts +13 -6
  96. package/src/modules/repos/actions/repo-key-set.ts +13 -6
  97. package/src/modules/repos/actions/repo-knowledge.ts +12 -6
  98. package/src/modules/repos/actions/repo-list.ts +11 -6
  99. package/src/modules/repos/actions/repo-open.ts +11 -6
  100. package/src/modules/repos/actions/repo-ref-add.ts +15 -6
  101. package/src/modules/repos/actions/repo-ref-backfill.ts +12 -6
  102. package/src/modules/repos/actions/repo-ref-check.ts +11 -6
  103. package/src/modules/repos/actions/repo-ref-clone.ts +18 -6
  104. package/src/modules/repos/actions/repo-ref-note.ts +14 -6
  105. package/src/modules/repos/actions/repo-ref-of.ts +11 -6
  106. package/src/modules/repos/actions/repo-ref-sync.ts +12 -6
  107. package/src/modules/repos/actions/repo-remote-check.ts +12 -6
  108. package/src/modules/repos/actions/repo-remote-list.ts +11 -6
  109. package/src/modules/repos/actions/repo-remote-pick.ts +12 -6
  110. package/src/modules/repos/actions/repo-remote.ts +13 -6
  111. package/src/modules/repos/actions/repo-remove.ts +11 -6
  112. package/src/modules/repos/actions/repo-scan.ts +13 -6
  113. package/src/modules/repos/actions/repo-update.ts +23 -6
  114. package/src/modules/setting/actions/setting-get.ts +11 -6
  115. package/src/modules/setting/actions/setting-set.ts +14 -6
  116. package/src/modules/system/actions/bootstrap.ts +9 -7
  117. package/src/modules/system/actions/health.ts +8 -6
  118. package/src/modules/system/actions/routes.ts +13 -6
  119. package/src/modules/system/routes.ts +1 -1
  120. package/src/modules/tasktool/actions/timegoal-check.ts +13 -6
  121. package/src/modules/tasktool/actions/timegoal-clear.ts +11 -6
  122. package/src/modules/tasktool/actions/timegoal-list.ts +11 -6
  123. package/src/modules/tasktool/actions/timegoal-log.ts +11 -6
  124. package/src/modules/tasktool/actions/timegoal-prune.ts +11 -6
  125. package/src/modules/tasktool/actions/timegoal-set.ts +13 -6
  126. package/src/modules/tasktool/actions/timegoal-show.ts +12 -6
  127. package/src/modules/tasktool/actions/timegoal-update.ts +13 -6
  128. package/src/modules/templates/actions/templates-add.ts +19 -6
  129. package/src/modules/templates/actions/templates-default.ts +15 -6
  130. package/src/modules/templates/actions/templates-list.ts +13 -6
  131. package/src/modules/templates/actions/templates-remove.ts +11 -6
  132. package/src/modules/templates/actions/templates-update.ts +17 -6
  133. package/src/modules/todo/actions/group-add.ts +12 -6
  134. package/src/modules/todo/actions/group-current.ts +11 -6
  135. package/src/modules/todo/actions/group-get.ts +11 -6
  136. package/src/modules/todo/actions/group-list.ts +11 -6
  137. package/src/modules/todo/actions/group-members.ts +11 -6
  138. package/src/modules/todo/actions/group-remove.ts +11 -6
  139. package/src/modules/todo/actions/group-update.ts +13 -6
  140. package/src/modules/todo/actions/group-use.ts +11 -6
  141. package/src/modules/todo/actions/prompt-get.ts +12 -6
  142. package/src/modules/todo/actions/prompt-remove.ts +12 -6
  143. package/src/modules/todo/actions/prompt-set.ts +13 -6
  144. package/src/modules/todo/actions/todo-add.ts +13 -6
  145. package/src/modules/todo/actions/todo-archive.ts +12 -6
  146. package/src/modules/todo/actions/todo-attach.ts +19 -6
  147. package/src/modules/todo/actions/todo-attachments.ts +14 -6
  148. package/src/modules/todo/actions/todo-done.ts +15 -6
  149. package/src/modules/todo/actions/todo-freeze.ts +14 -6
  150. package/src/modules/todo/actions/todo-get.ts +14 -6
  151. package/src/modules/todo/actions/todo-list.ts +13 -6
  152. package/src/modules/todo/actions/todo-remove.ts +14 -6
  153. package/src/modules/todo/actions/todo-unfreeze.ts +14 -6
  154. package/src/modules/todo/actions/todo-update.ts +17 -6
  155. package/src/modules/todo/actions/topic-add.ts +12 -6
  156. package/src/modules/todo/actions/topic-list.ts +11 -6
  157. package/src/modules/todo/actions/topic-remove.ts +12 -6
  158. package/src/runtime/action-base.ts +41 -1
  159. package/src/runtime/action-decorator.ts +28 -13
  160. package/src/runtime/codegen.ts +26 -41
  161. package/src/runtime/registry.ts +2 -2
  162. package/src/web/frontend/api/client.generated.ts +550 -698
  163. package/src/web/frontend/page/cloud/api.ts +99 -0
  164. package/src/web/frontend/page/cloud/index.tsx +13 -32
  165. package/src/web/frontend/page/dag/api.ts +20 -0
  166. package/src/web/frontend/page/dag/index.tsx +2 -5
  167. package/src/web/frontend/page/dir/api.ts +135 -0
  168. package/src/web/frontend/page/dir/index.tsx +37 -57
  169. package/src/web/frontend/page/dir/task-actions.ts +39 -59
  170. package/src/web/frontend/page/dir/task-chain.ts +2 -2
  171. package/src/web/frontend/page/dir/task-feedback.ts +19 -23
  172. package/src/web/frontend/page/dir/task-goal.ts +3 -3
  173. package/src/web/frontend/page/dir/task.tsx +3 -3
  174. package/src/web/frontend/page/doc/api.ts +82 -0
  175. package/src/web/frontend/page/doc/index.tsx +29 -32
  176. package/src/web/frontend/page/group/api.ts +24 -0
  177. package/src/web/frontend/page/group/index.tsx +7 -16
  178. package/src/web/frontend/page/overview/api.ts +16 -0
  179. package/src/web/frontend/page/overview/index.tsx +2 -2
  180. package/src/web/frontend/page/progress/api.ts +20 -0
  181. package/src/web/frontend/page/progress/index.tsx +3 -6
  182. package/src/web/frontend/page/refs/api.ts +14 -0
  183. package/src/web/frontend/page/refs/index.tsx +2 -4
  184. package/src/web/frontend/page/repos/api.ts +197 -0
  185. package/src/web/frontend/page/repos/bind-modals.tsx +4 -7
  186. package/src/web/frontend/page/repos/board-admin.tsx +6 -6
  187. package/src/web/frontend/page/repos/doc-search-modal.tsx +4 -4
  188. package/src/web/frontend/page/repos/index.tsx +10 -14
  189. package/src/web/frontend/page/repos/pending-section.tsx +7 -13
  190. package/src/web/frontend/page/repos/ref-panel.tsx +9 -14
  191. package/src/web/frontend/page/repos/remote-modal.tsx +4 -28
  192. package/src/web/frontend/page/repos/repo-form-modal.tsx +4 -4
  193. package/src/web/frontend/page/settings/api.ts +29 -0
  194. package/src/web/frontend/page/settings/index.tsx +3 -3
  195. package/src/web/frontend/page/settings/prompt-templates-section.tsx +4 -4
  196. package/src/web/frontend/page/settings/sidebar-section.tsx +2 -2
  197. package/src/web/public/assets/Introduction-Du_dycft.js +6 -0
  198. package/src/web/public/assets/{bar-B9WWmCpt.js → bar-B52NTf_v.js} +1 -1
  199. package/src/web/public/assets/cloud-Droja_aT.js +3 -0
  200. package/src/web/public/assets/{composer-panel-ByezS8Xv.js → composer-panel-DpiU2h50.js} +1 -1
  201. package/src/web/public/assets/dag-Ca-wjIxQ.js +1 -0
  202. package/src/web/public/assets/{deleted-panel-BcbtctNF.js → deleted-panel-K9GgfR8t.js} +1 -1
  203. package/src/web/public/assets/dir-DacRpcBt.js +5 -0
  204. package/src/web/public/assets/group-TPuU-QVc.js +2 -0
  205. package/src/web/public/assets/{index-D8MvtVAm.js → index-BkLkooKe.js} +2 -2
  206. package/src/web/public/assets/{md-history-BqZvzWiD.js → md-history-0GBWw4qr.js} +1 -1
  207. package/src/web/public/assets/overview-B3kHI66i.js +1 -0
  208. package/src/web/public/assets/progress-CdhFz0Lz.js +3 -0
  209. package/src/web/public/assets/refs-BDxfuH6R.js +1 -0
  210. package/src/web/public/assets/repos-C8jRM7wS.js +15 -0
  211. package/src/web/public/assets/{route-crumb-CWVu80du.js → route-crumb-QvahotvN.js} +1 -1
  212. package/src/web/public/assets/settings-BBcdGLTc.js +1 -0
  213. package/src/web/public/assets/{status-tag-DRl9E2Os.js → status-tag-BheHByek.js} +1 -1
  214. package/src/web/public/assets/task-CUkQaLBZ.js +11 -0
  215. package/src/web/public/assets/task-utils-_JAWRAz6.js +12 -0
  216. package/src/web/public/assets/{templates-Df__0k-F.js → templates-CbRyW3PJ.js} +1 -1
  217. package/src/web/public/assets/{tool-bar-Cv7f6p4v.js → tool-bar-BAmT-BI-.js} +1 -1
  218. package/src/web/public/index.html +1 -1
  219. package/src/modules/auth/schemas.ts +0 -27
  220. package/src/modules/bundled/schemas.ts +0 -32
  221. package/src/modules/db/schemas.ts +0 -27
  222. package/src/modules/docs/schemas.ts +0 -107
  223. package/src/modules/file/schemas.ts +0 -61
  224. package/src/modules/localtask/schemas.ts +0 -310
  225. package/src/modules/repos/schemas.ts +0 -310
  226. package/src/modules/setting/schemas.ts +0 -18
  227. package/src/modules/system/schemas.ts +0 -29
  228. package/src/modules/tasktool/schemas.ts +0 -52
  229. package/src/modules/templates/schemas.ts +0 -50
  230. package/src/modules/todo/schemas.ts +0 -177
  231. package/src/web/public/assets/Introduction-aQCeCLrV.js +0 -6
  232. package/src/web/public/assets/cloud-C4b8SU7C.js +0 -3
  233. package/src/web/public/assets/dag-jvrjx4i7.js +0 -1
  234. package/src/web/public/assets/dir-B82XBb1J.js +0 -5
  235. package/src/web/public/assets/group-BPUOO_QM.js +0 -2
  236. package/src/web/public/assets/overview-DMihuyzh.js +0 -1
  237. package/src/web/public/assets/progress-D-rMgz3w.js +0 -3
  238. package/src/web/public/assets/refs-D21jmrn6.js +0 -1
  239. package/src/web/public/assets/repos-B94tMDGs.js +0 -15
  240. package/src/web/public/assets/settings-DgTt4JG5.js +0 -1
  241. package/src/web/public/assets/task-B2x5GoV3.js +0 -11
  242. 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,
@@ -331,299 +183,299 @@ export interface Transport {
331
183
 
332
184
  export interface ApiClient {
333
185
  /** 聚合上下文:版本 / 登录态 / 工作空间 / 命令表 */
334
- bootstrap(): Promise<Awaited<ReturnType<InstanceType<typeof BootstrapAction>['bootstrap']>>>;
186
+ bootstrap(): Promise<Awaited<ReturnType<InstanceType<typeof BootstrapAction>['run']>>>;
335
187
  /** 健康检查(本机配置 + 后端可达性) */
336
- health(): Promise<Awaited<ReturnType<InstanceType<typeof HealthAction>['health']>>>;
188
+ health(): Promise<Awaited<ReturnType<InstanceType<typeof HealthAction>['run']>>>;
337
189
  /** 读本机设置(附件自动下载、附件目录、参考仓库存储根) */
338
- get(): Promise<Awaited<ReturnType<InstanceType<typeof SettingGetAction>['get']>>>;
190
+ get(): Promise<Awaited<ReturnType<InstanceType<typeof SettingGetAction>['run']>>>;
339
191
  /** 改本机设置(只改传入项) */
340
- set(input?: z.input<typeof settingSetInput>): Promise<Awaited<ReturnType<InstanceType<typeof SettingSetAction>['set']>>>;
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 authLoginInput>): Promise<Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['login']>>>;
194
+ login(input: z.input<InstanceType<typeof AuthLoginAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['run']>>>;
343
195
  /** 清除本机保存的 token */
344
- logout(): Promise<Awaited<ReturnType<InstanceType<typeof AuthLogoutAction>['logout']>>>;
196
+ logout(): Promise<Awaited<ReturnType<InstanceType<typeof AuthLogoutAction>['run']>>>;
345
197
  /** 向后端确认身份(验证 token 是否仍有效) */
346
- me(): Promise<Awaited<ReturnType<InstanceType<typeof AuthMeAction>['me']>>>;
198
+ me(): Promise<Awaited<ReturnType<InstanceType<typeof AuthMeAction>['run']>>>;
347
199
  /** 查看本机登录态(不请求后端,离线可用) */
348
- status(): Promise<Awaited<ReturnType<InstanceType<typeof AuthStatusAction>['status']>>>;
200
+ status(): Promise<Awaited<ReturnType<InstanceType<typeof AuthStatusAction>['run']>>>;
349
201
  /** 新建看板(主题容器) */
350
- add(input: z.input<typeof boardAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardAddAction>['add']>>>;
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 boardAssignInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['assign']>>>;
204
+ assign(input: z.input<InstanceType<typeof BoardAssignAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['run']>>>;
353
205
  /** 导出看板 JSON(可回灌给 board import) */
354
- export(): Promise<Awaited<ReturnType<InstanceType<typeof BoardExportAction>['export']>>>;
206
+ export(): Promise<Awaited<ReturnType<InstanceType<typeof BoardExportAction>['run']>>>;
355
207
  /** 查看单个看板(含成员仓库与描述) */
356
- boardGet(input: z.input<typeof boardGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardGetAction>['get']>>>;
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 boardImportInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardImportAction>['import']>>>;
210
+ import(input?: z.input<InstanceType<typeof BoardImportAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardImportAction>['run']>>>;
359
211
  /** 看板清单:每个主题里有哪些仓库、各自的一句话描述 */
360
- list(): Promise<Awaited<ReturnType<InstanceType<typeof BoardListAction>['list']>>>;
212
+ list(): Promise<Awaited<ReturnType<InstanceType<typeof BoardListAction>['run']>>>;
361
213
  /** 写/清组内描述:仓库在看板里的角色与配合关系(--note 留空 = 清除;仓库给 id / key / 绝对路径) */
362
- note(input: z.input<typeof boardNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardNoteAction>['note']>>>;
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 boardPrefixInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardPrefixAction>['prefix']>>>;
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 boardPruneInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardPruneAction>['prune']>>>;
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 boardRekeyInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRekeyAction>['rekey']>>>;
220
+ rekey(input: z.input<InstanceType<typeof BoardRekeyAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRekeyAction>['run']>>>;
369
221
  /** 删看板(里面的仓库回到未分组,登记不动) */
370
- remove(input: z.input<typeof boardRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRemoveAction>['remove']>>>;
222
+ remove(input: z.input<InstanceType<typeof BoardRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRemoveAction>['run']>>>;
371
223
  /** 改看板名称 / 描述 */
372
- update(input: z.input<typeof boardUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardUpdateAction>['update']>>>;
224
+ update(input: z.input<InstanceType<typeof BoardUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BoardUpdateAction>['run']>>>;
373
225
  /** 登记一个仓库 */
374
- repoAdd(input: z.input<typeof repoAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoAddAction>['add']>>>;
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 repoBindTopicsInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoBindTopicsAction>['bindTopics']>>>;
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 repoBindInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoBindAction>['bind']>>>;
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 repoCloneInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoCloneAction>['clone']>>>;
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 repoDetectInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDetectAction>['detect']>>>;
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 repoDocAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocAddAction>['add']>>>;
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 repoDocListInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocListAction>['list']>>>;
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 repoDocRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocRemoveAction>['remove']>>>;
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 repoExportInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoExportAction>['export']>>>;
242
+ repoExport(input?: z.input<InstanceType<typeof RepoExportAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoExportAction>['run']>>>;
391
243
  /** 查看单个仓库的登记信息 */
392
- repoGet(input: z.input<typeof repoGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoGetAction>['get']>>>;
244
+ repoGet(input: z.input<InstanceType<typeof RepoGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoGetAction>['run']>>>;
393
245
  /** 导入前的差异检查:逐条给出 新增/有差异/一致/本地未拥有(零副作用) */
394
- diff(input?: z.input<typeof repoImportDiffInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoImportDiffAction>['diff']>>>;
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 repoImportInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoImportAction>['import']>>>;
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 repoKeyMigrateInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeyMigrateAction>['migrate']>>>;
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 repoKeyRefreshInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeyRefreshAction>['refresh']>>>;
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 repoKeySetInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeySetAction>['set']>>>;
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 repoKnowledgeInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKnowledgeAction>['knowledge']>>>;
256
+ knowledge(input?: z.input<InstanceType<typeof RepoKnowledgeAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKnowledgeAction>['run']>>>;
405
257
  /** 仓库清单(本地任务的主题会按路径匹配到这里,取它的上下文) */
406
- repoList(input?: z.input<typeof repoListInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoListAction>['list']>>>;
258
+ repoList(input?: z.input<InstanceType<typeof RepoListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoListAction>['run']>>>;
407
259
  /** 在系统文件管理器中打开 */
408
- open(input: z.input<typeof repoOpenInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoOpenAction>['open']>>>;
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 repoRefAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['add']>>>;
262
+ refAdd(input: z.input<InstanceType<typeof RepoRefAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['run']>>>;
411
263
  /** 检查参考仓库完整性:目录/.git/origin 一致性 + 组级/仓库级绑定死链(零副作用) */
412
- check(): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefCheckAction>['check']>>>;
264
+ check(): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefCheckAction>['run']>>>;
413
265
  /** 克隆远程仓库为参考仓库(落到 gitRepoRoot,登记 + 可选绑定当前目录的开发仓库) */
414
- refClone(input: z.input<typeof repoRefCloneInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefCloneAction>['clone']>>>;
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 repoRefNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefNoteAction>['note']>>>;
268
+ refNote(input: z.input<InstanceType<typeof RepoRefNoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefNoteAction>['run']>>>;
417
269
  /** 查某仓库(缺省当前目录)的参考仓库:直接绑定到本仓库的 + 所属组绑定的,两类并列 */
418
- of(input?: z.input<typeof repoRefOfInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefOfAction>['of']>>>;
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 repoRefSyncInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefSyncAction>['sync']>>>;
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 repoRemoteCheckInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteCheckAction>['check']>>>;
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 repoRemoteListInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteListAction>['list']>>>;
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 repoRemotePickInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemotePickAction>['pick']>>>;
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 repoRemoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteAction>['remote']>>>;
280
+ remote(input: z.input<InstanceType<typeof RepoRemoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteAction>['run']>>>;
429
281
  /** 移除登记(不动磁盘文件) */
430
- repoRemove(input: z.input<typeof repoRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoveAction>['remove']>>>;
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 repoScanInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoScanAction>['scan']>>>;
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 repoUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoUpdateAction>['update']>>>;
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 docAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAddAction>['add']>>>;
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 docAttachNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachNoteAction>['attachNote']>>>;
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 docAttachInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachAction>['attach']>>>;
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 docAttachmentsInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachmentsAction>['attachments']>>>;
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 docDetachInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocDetachAction>['detach']>>>;
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 docGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocGetAction>['get']>>>;
298
+ docGet(input: z.input<InstanceType<typeof DocGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocGetAction>['run']>>>;
447
299
  /** 文档树索引(自有 + 可选外部;零副作用,双链解析的数据源) */
448
- docList2(input?: z.input<typeof docListInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocListAction>['list']>>>;
300
+ docList2(input?: z.input<InstanceType<typeof DocListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocListAction>['run']>>>;
449
301
  /** 删除自有文档(外部绑定不可删) */
450
- docRemove2(input: z.input<typeof docRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocRemoveAction>['remove']>>>;
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 docUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocUpdateAction>['update']>>>;
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 docsBindInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsBindAction>['bind']>>>;
306
+ docsBind(input?: z.input<InstanceType<typeof DocsBindAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof DocsBindAction>['run']>>>;
455
307
  /** 双链索引(docId + 文件名;前端点击 [[..]] 前拉一次;解析规则见 core/wikilink.js) */
456
- index(): Promise<Awaited<ReturnType<InstanceType<typeof DocsIndexAction>['index']>>>;
308
+ index(): Promise<Awaited<ReturnType<InstanceType<typeof DocsIndexAction>['run']>>>;
457
309
  /** 维护组的附加文档列表(--doc <自有路径|绝对路径> + --note/--tag;--remove <序号> 移除;--before <序号> 插位;同 doc 重复添加 = 更新) */
458
- link(input: z.input<typeof docsLinkInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsLinkAction>['link']>>>;
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 docsNotebindInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsNotebindAction>['notebind']>>>;
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 docsSeedInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsSeedAction>['seed']>>>;
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 localtaskAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAddAction>['add']>>>;
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 localtaskAttachNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachNoteAction>['attachNote']>>>;
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 localtaskAttachInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachAction>['attach']>>>;
320
+ localtaskAttach(input: z.input<InstanceType<typeof LocaltaskAttachAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachAction>['run']>>>;
469
321
  /** 列出某条任务引用的附件(正文里的 ![名](fileId) 嵌入),以及本地是否已有(给 agent 直接读本地文件) */
470
- localtaskAttachments(input: z.input<typeof localtaskAttachmentsInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachmentsAction>['attachments']>>>;
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 localtaskCancelInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCancelAction>['cancel']>>>;
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 localtaskCancelManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCancelManyAction>['cancelMany']>>>;
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 localtaskChainInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskChainAction>['chain']>>>;
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 localtaskClaimInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskClaimAction>['claim']>>>;
330
+ claim(input?: z.input<InstanceType<typeof LocaltaskClaimAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskClaimAction>['run']>>>;
479
331
  /** 克隆任务:复制正文内容为一条新任务(同主题;全局任务仍进全局池)。不带派生链、不继承时间目标与依赖——开新活用 */
480
- localtaskClone(input: z.input<typeof localtaskCloneInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCloneAction>['clone']>>>;
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 localtaskCloseManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCloseManyAction>['closeMany']>>>;
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 localtaskConfigInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskConfigAction>['config']>>>;
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 localtaskDetachInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskDetachAction>['detach']>>>;
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 localtaskDoneInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskDoneAction>['done']>>>;
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 localtaskEventsInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskEventsAction>['events']>>>;
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 localtaskForkInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskForkAction>['fork']>>>;
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 localtaskGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskGetAction>['get']>>>;
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 localtaskImportRemoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['importRemote']>>>;
348
+ importRemote(input?: z.input<InstanceType<typeof LocaltaskImportRemoteAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['run']>>>;
497
349
  /** 总览全部主题(工作目录、现状、是否等待中、待领取数) */
498
- localtaskList(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskListAction>['list']>>>;
350
+ localtaskList(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskListAction>['run']>>>;
499
351
  /** 探测主面板上当前打开的「实时任务」标签数(活动 SSE 连接数;用于 wait 不重复开页) */
500
- presence(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPresenceAction>['presence']>>>;
352
+ presence(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPresenceAction>['run']>>>;
501
353
  /** 预览一条任务在 get/wait 时的交付提示词(只读:不领取、不写盘、不启动计时、不为附件发网);草稿用 --text 直接预览 */
502
- preview(input?: z.input<typeof localtaskPreviewInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPreviewAction>['preview']>>>;
354
+ preview(input?: z.input<InstanceType<typeof LocaltaskPreviewAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPreviewAction>['run']>>>;
503
355
  /** 清理旧脏数据(旧模型无目录主题、空主题;等待中一律保留) */
504
- localtaskPrune(input?: z.input<typeof localtaskPruneInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPruneAction>['prune']>>>;
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 localtaskRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveAction>['remove']>>>;
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 localtaskRemoveManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveManyAction>['removeMany']>>>;
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 localtaskReopenInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskReopenAction>['reopen']>>>;
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 localtaskReorderInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskReorderAction>['reorder']>>>;
364
+ reorder(input: z.input<InstanceType<typeof LocaltaskReorderAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskReorderAction>['run']>>>;
513
365
  /** 恢复一条被删除(软删除)的任务(撤销删除) */
514
- restore(input: z.input<typeof localtaskTaskRestoreInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTaskRestoreAction>['restore']>>>;
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 localtaskTimegoalLogInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTimegoalLogAction>['timegoalLog']>>>;
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 localtaskTopicAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicAddAction>['add']>>>;
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 localtaskTopicRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveAction>['remove']>>>;
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 localtaskTopicRemoveManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveManyAction>['removeMany']>>>;
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 localtaskUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskUpdateAction>['update']>>>;
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 taskMoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TaskMoveAction>['move']>>>;
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 timegoalCheckInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalCheckAction>['check']>>>;
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 timegoalClearInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['clear']>>>;
382
+ clear(input: z.input<InstanceType<typeof TimegoalClearAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['run']>>>;
531
383
  /** 列出所有有 timegoal 的目录(按截止升序;已到点的单列在归档区) */
532
- timegoalList(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalListAction>['list']>>>;
384
+ timegoalList(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalListAction>['run']>>>;
533
385
  /** 查看本目录 timegoal 的检查日志(每轮 check 的现状) */
534
- log(input: z.input<typeof timegoalLogInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalLogAction>['log']>>>;
386
+ log(input: z.input<InstanceType<typeof TimegoalLogAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalLogAction>['run']>>>;
535
387
  /** 彻底清除已到点 / 已归档的时间目标(到点本身已自动归档,这里是连归档区一起清) */
536
- timegoalPrune(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalPruneAction>['prune']>>>;
388
+ timegoalPrune(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalPruneAction>['run']>>>;
537
389
  /** 为本目录设置/替换 timegoal:duration + 完整全局提示词(原文固化到 store) */
538
- timegoalSet(input: z.input<typeof timegoalSetInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalSetAction>['set']>>>;
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 timegoalShowInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalShowAction>['show']>>>;
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 timegoalUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalUpdateAction>['update']>>>;
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 templatesAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesAddAction>['add']>>>;
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 templatesDefaultInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesDefaultAction>['default']>>>;
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 templatesListInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesListAction>['list']>>>;
400
+ templatesList(input?: z.input<InstanceType<typeof TemplatesListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesListAction>['run']>>>;
549
401
  /** 删除任务模板(内置默认模板不可删;删的是默认模板则默认回落到内置) */
550
- templatesRemove(input: z.input<typeof templatesRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesRemoveAction>['remove']>>>;
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 templatesUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesUpdateAction>['update']>>>;
404
+ templatesUpdate(input: z.input<InstanceType<typeof TemplatesUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesUpdateAction>['run']>>>;
553
405
  /** 新建工作空间 */
554
- groupAdd(input: z.input<typeof groupAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupAddAction>['add']>>>;
406
+ groupAdd(input: z.input<InstanceType<typeof GroupAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupAddAction>['run']>>>;
555
407
  /** 查看当前工作空间 */
556
- current(): Promise<Awaited<ReturnType<InstanceType<typeof GroupCurrentAction>['current']>>>;
408
+ current(): Promise<Awaited<ReturnType<InstanceType<typeof GroupCurrentAction>['run']>>>;
557
409
  /** 查看单个工作空间 */
558
- groupGet(input: z.input<typeof groupGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupGetAction>['get']>>>;
410
+ groupGet(input: z.input<InstanceType<typeof GroupGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupGetAction>['run']>>>;
559
411
  /** 列出我的工作空间(* 为当前) */
560
- groupList(): Promise<Awaited<ReturnType<InstanceType<typeof GroupListAction>['list']>>>;
412
+ groupList(): Promise<Awaited<ReturnType<InstanceType<typeof GroupListAction>['run']>>>;
561
413
  /** 查看工作空间成员 */
562
- members(input: z.input<typeof groupMembersInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupMembersAction>['members']>>>;
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 groupRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupRemoveAction>['remove']>>>;
416
+ groupRemove(input: z.input<InstanceType<typeof GroupRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupRemoveAction>['run']>>>;
565
417
  /** 改名 / 改描述(只改传入的字段) */
566
- groupUpdate(input: z.input<typeof groupUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupUpdateAction>['update']>>>;
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 groupUseInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupUseAction>['use']>>>;
420
+ use(input: z.input<InstanceType<typeof GroupUseAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof GroupUseAction>['run']>>>;
569
421
  /** 读取某主题的上下文提示词 */
570
- promptGet(input: z.input<typeof promptGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof PromptGetAction>['get']>>>;
422
+ promptGet(input: z.input<InstanceType<typeof PromptGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof PromptGetAction>['run']>>>;
571
423
  /** 删除某主题的提示词 */
572
- promptRemove(input: z.input<typeof promptRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof PromptRemoveAction>['remove']>>>;
424
+ promptRemove(input: z.input<InstanceType<typeof PromptRemoveAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof PromptRemoveAction>['run']>>>;
573
425
  /** 写入某主题的上下文提示词(覆盖) */
574
- promptSet(input: z.input<typeof promptSetInput>): Promise<Awaited<ReturnType<InstanceType<typeof PromptSetAction>['set']>>>;
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 todoAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAddAction>['add']>>>;
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 todoArchiveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoArchiveAction>['archive']>>>;
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 todoAttachInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAttachAction>['attach']>>>;
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 todoAttachmentsInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAttachmentsAction>['attachments']>>>;
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 todoDoneInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoDoneAction>['done']>>>;
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 todoFreezeInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoFreezeAction>['freeze']>>>;
438
+ freeze(input: z.input<InstanceType<typeof TodoFreezeAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoFreezeAction>['run']>>>;
587
439
  /** 查看单个任务(按内容定位;自动在待办/已完成/冻结里找) */
588
- todoGet(input: z.input<typeof todoGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoGetAction>['get']>>>;
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 todoListInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoListAction>['list']>>>;
442
+ todoList(input?: z.input<InstanceType<typeof TodoListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoListAction>['run']>>>;
591
443
  /** 删除任务(按内容定位,只删命中的那一条) */
592
- todoRemove(input: z.input<typeof todoRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoRemoveAction>['remove']>>>;
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 todoUnfreezeInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUnfreezeAction>['unfreeze']>>>;
446
+ unfreeze(input: z.input<InstanceType<typeof TodoUnfreezeAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUnfreezeAction>['run']>>>;
595
447
  /** 编辑任务(按内容定位,只改传入的字段) */
596
- todoUpdate(input: z.input<typeof todoUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUpdateAction>['update']>>>;
448
+ todoUpdate(input: z.input<InstanceType<typeof TodoUpdateAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUpdateAction>['run']>>>;
597
449
  /** 加入快捷主题 */
598
- topicAdd2(input: z.input<typeof topicAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof TopicAddAction>['add']>>>;
450
+ topicAdd2(input: z.input<InstanceType<typeof TopicAddAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TopicAddAction>['run']>>>;
599
451
  /** 快捷主题列表(含各状态任务数) */
600
- topicList(input?: z.input<typeof topicListInput>): Promise<Awaited<ReturnType<InstanceType<typeof TopicListAction>['list']>>>;
452
+ topicList(input?: z.input<InstanceType<typeof TopicListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof TopicListAction>['run']>>>;
601
453
  /** 移出快捷主题(不动已有任务;仍被任务使用时会在结果里提示) */
602
- topicRemove2(input: z.input<typeof topicRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TopicRemoveAction>['remove']>>>;
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 fileContentInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileContentAction>['content']>>>;
456
+ content(input: z.input<InstanceType<typeof FileContentAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileContentAction>['run']>>>;
605
457
  /** 查单个附件的元数据与本地路径 */
606
- fileGet(input: z.input<typeof fileGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileGetAction>['get']>>>;
458
+ fileGet(input: z.input<InstanceType<typeof FileGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileGetAction>['run']>>>;
607
459
  /** 列出当前用户空间的附件(含本地已同步路径) */
608
- fileList(input?: z.input<typeof fileListInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileListAction>['list']>>>;
460
+ fileList(input?: z.input<InstanceType<typeof FileListAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof FileListAction>['run']>>>;
609
461
  /** 列出无主资源(没有任何任务/文档关系边;删任务、删文档、删正文行之后用) */
610
- orphans(): Promise<Awaited<ReturnType<InstanceType<typeof FileOrphansAction>['orphans']>>>;
462
+ orphans(): Promise<Awaited<ReturnType<InstanceType<typeof FileOrphansAction>['run']>>>;
611
463
  /** 回收无主资源(DB 行 + 附件根目录内的本机/镜像字节;仍被引用的不删) */
612
- filePrune(input?: z.input<typeof filePruneInput>): Promise<Awaited<ReturnType<InstanceType<typeof FilePruneAction>['prune']>>>;
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 fileRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileRemoveAction>['remove']>>>;
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 fileSyncInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileSyncAction>['sync']>>>;
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 fileUploadInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileUploadAction>['upload']>>>;
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 bundledGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof BundledGetAction>['get']>>>;
472
+ bundledGet(input?: z.input<InstanceType<typeof BundledGetAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BundledGetAction>['run']>>>;
621
473
  /** 列出可装的 group(groups.json 的组名 → 它包含哪些 skill) */
622
- groups(): Promise<Awaited<ReturnType<InstanceType<typeof BundledGroupsAction>['groups']>>>;
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 bundledInstallInput>): Promise<Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['install']>>>;
476
+ install(input?: z.input<InstanceType<typeof BundledInstallAction>['_input']>): Promise<Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['run']>>>;
625
477
  /** 列出包内自带 skill(含文件数与描述)+ 默认装哪个 + 有哪些 group */
626
- bundledList(): Promise<Awaited<ReturnType<InstanceType<typeof BundledListAction>['list']>>>;
478
+ bundledList(): Promise<Awaited<ReturnType<InstanceType<typeof BundledListAction>['run']>>>;
627
479
  }
628
480
 
629
481
  export function createApiClient(transport: Transport): ApiClient {
@@ -631,187 +483,187 @@ export function createApiClient(transport: Transport): ApiClient {
631
483
  // action: system.bootstrap
632
484
  async bootstrap() {
633
485
  const path = `/api/bootstrap`;
634
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BootstrapAction>['bootstrap']>>;
486
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BootstrapAction>['run']>>;
635
487
  },
636
488
  // action: system.health
637
489
  async health() {
638
490
  const path = `/api/health`;
639
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof HealthAction>['health']>>;
491
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof HealthAction>['run']>>;
640
492
  },
641
493
  // action: setting.get
642
494
  async get() {
643
495
  const path = `/api/setting`;
644
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof SettingGetAction>['get']>>;
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 settingSetInput>) {
648
- const inp = input ?? ({} as z.input<typeof settingSetInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof SettingSetAction>['set']>>;
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 authLoginInput>) {
655
- const inp = input ?? ({} as z.input<typeof authLoginInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['login']>>;
510
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['run']>>;
659
511
  },
660
512
  // action: auth.logout
661
513
  async logout() {
662
514
  const path = `/api/auth/logout`;
663
- return (await transport.request("POST", path, undefined)) as Awaited<ReturnType<InstanceType<typeof AuthLogoutAction>['logout']>>;
515
+ return (await transport.request("POST", path, undefined)) as Awaited<ReturnType<InstanceType<typeof AuthLogoutAction>['run']>>;
664
516
  },
665
517
  // action: auth.me
666
518
  async me() {
667
519
  const path = `/api/auth/me`;
668
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof AuthMeAction>['me']>>;
520
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof AuthMeAction>['run']>>;
669
521
  },
670
522
  // action: auth.status
671
523
  async status() {
672
524
  const path = `/api/auth`;
673
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof AuthStatusAction>['status']>>;
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 boardAddInput>) {
677
- const inp = input ?? ({} as z.input<typeof boardAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardAddAction>['add']>>;
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 boardAssignInput>) {
684
- const inp = input ?? ({} as z.input<typeof boardAssignInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['assign']>>;
539
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['run']>>;
688
540
  },
689
541
  // action: board.export
690
542
  async export() {
691
543
  const path = `/api/boards/export`;
692
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardExportAction>['export']>>;
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 boardGetInput>) {
696
- const inp = input ?? ({} as z.input<typeof boardGetInput>);
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
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardGetAction>['get']>>;
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 boardImportInput>) {
702
- const inp = input ?? ({} as z.input<typeof boardImportInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardImportAction>['import']>>;
557
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardImportAction>['run']>>;
706
558
  },
707
559
  // action: board.list
708
560
  async list() {
709
561
  const path = `/api/boards`;
710
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardListAction>['list']>>;
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 boardNoteInput>) {
714
- const inp = input ?? ({} as z.input<typeof boardNoteInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardNoteAction>['note']>>;
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 boardPrefixInput>) {
721
- const inp = input ?? ({} as z.input<typeof boardPrefixInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardPrefixAction>['prefix']>>;
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 boardPruneInput>) {
728
- const inp = input ?? ({} as z.input<typeof boardPruneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardPruneAction>['prune']>>;
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 boardRekeyInput>) {
735
- const inp = input ?? ({} as z.input<typeof boardRekeyInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardRekeyAction>['rekey']>>;
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 boardRemoveInput>) {
742
- const inp = input ?? ({} as z.input<typeof boardRemoveInput>);
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
- return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof BoardRemoveAction>['remove']>>;
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 boardUpdateInput>) {
748
- const inp = input ?? ({} as z.input<typeof boardUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardUpdateAction>['update']>>;
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 repoAddInput>) {
755
- const inp = input ?? ({} as z.input<typeof repoAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoAddAction>['add']>>;
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 repoBindTopicsInput>) {
762
- const inp = input ?? ({} as z.input<typeof repoBindTopicsInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoBindTopicsAction>['bindTopics']>>;
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 repoBindInput>) {
769
- const inp = input ?? ({} as z.input<typeof repoBindInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoBindAction>['bind']>>;
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 repoCloneInput>) {
776
- const inp = input ?? ({} as z.input<typeof repoCloneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoCloneAction>['clone']>>;
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 repoDetectInput>) {
783
- const inp = input ?? ({} as z.input<typeof repoDetectInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDetectAction>['detect']>>;
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 repoDocAddInput>) {
790
- const inp = input ?? ({} as z.input<typeof repoDocAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDocAddAction>['add']>>;
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 repoDocListInput>) {
797
- const inp = input ?? ({} as z.input<typeof repoDocListInput>);
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"]));
801
653
  const query = q.toString();
802
654
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
803
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoDocListAction>['list']>>;
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 repoDocRemoveInput>) {
807
- const inp = input ?? ({} as z.input<typeof repoDocRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDocRemoveAction>['remove']>>;
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 repoExportInput>) {
814
- const inp = input ?? ({} as z.input<typeof repoExportInput>);
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"]));
@@ -820,304 +672,304 @@ export function createApiClient(transport: Transport): ApiClient {
820
672
  if (inp["no-unassigned"] !== undefined) q.set("no-unassigned", String(inp["no-unassigned"]));
821
673
  const query = q.toString();
822
674
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
823
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoExportAction>['export']>>;
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 repoGetInput>) {
827
- const inp = input ?? ({} as z.input<typeof repoGetInput>);
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
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoGetAction>['get']>>;
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 repoImportDiffInput>) {
833
- const inp = input ?? ({} as z.input<typeof repoImportDiffInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoImportDiffAction>['diff']>>;
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 repoImportInput>) {
840
- const inp = input ?? ({} as z.input<typeof repoImportInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoImportAction>['import']>>;
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 repoKeyMigrateInput>) {
847
- const inp = input ?? ({} as z.input<typeof repoKeyMigrateInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeyMigrateAction>['migrate']>>;
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 repoKeyRefreshInput>) {
854
- const inp = input ?? ({} as z.input<typeof repoKeyRefreshInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeyRefreshAction>['refresh']>>;
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 repoKeySetInput>) {
861
- const inp = input ?? ({} as z.input<typeof repoKeySetInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeySetAction>['set']>>;
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 repoKnowledgeInput>) {
868
- const inp = input ?? ({} as z.input<typeof repoKnowledgeInput>);
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"]));
872
724
  if (inp["md"] !== undefined) q.set("md", String(inp["md"]));
873
725
  const query = q.toString();
874
726
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
875
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoKnowledgeAction>['knowledge']>>;
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 repoListInput>) {
879
- const inp = input ?? ({} as z.input<typeof repoListInput>);
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"]));
883
735
  const query = q.toString();
884
736
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
885
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoListAction>['list']>>;
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 repoOpenInput>) {
889
- const inp = input ?? ({} as z.input<typeof repoOpenInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoOpenAction>['open']>>;
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 repoRefAddInput>) {
896
- const inp = input ?? ({} as z.input<typeof repoRefAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['add']>>;
751
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['run']>>;
900
752
  },
901
753
  // action: repo.ref.check
902
754
  async check() {
903
755
  const path = `/api/repos/ref/check`;
904
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRefCheckAction>['check']>>;
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 repoRefCloneInput>) {
908
- const inp = input ?? ({} as z.input<typeof repoRefCloneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefCloneAction>['clone']>>;
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 repoRefNoteInput>) {
915
- const inp = input ?? ({} as z.input<typeof repoRefNoteInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefNoteAction>['note']>>;
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 repoRefOfInput>) {
922
- const inp = input ?? ({} as z.input<typeof repoRefOfInput>);
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"]));
926
778
  const query = q.toString();
927
779
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
928
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRefOfAction>['of']>>;
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 repoRefSyncInput>) {
932
- const inp = input ?? ({} as z.input<typeof repoRefSyncInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefSyncAction>['sync']>>;
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 repoRemoteCheckInput>) {
939
- const inp = input ?? ({} as z.input<typeof repoRemoteCheckInput>);
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"]));
943
795
  if (inp["url"] !== undefined) q.set("url", String(inp["url"]));
944
796
  const query = q.toString();
945
797
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
946
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteCheckAction>['check']>>;
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 repoRemoteListInput>) {
950
- const inp = input ?? ({} as z.input<typeof repoRemoteListInput>);
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"]));
954
806
  const query = q.toString();
955
807
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
956
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteListAction>['list']>>;
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 repoRemotePickInput>) {
960
- const inp = input ?? ({} as z.input<typeof repoRemotePickInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRemotePickAction>['pick']>>;
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 repoRemoteInput>) {
967
- const inp = input ?? ({} as z.input<typeof repoRemoteInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteAction>['remote']>>;
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 repoRemoveInput>) {
974
- const inp = input ?? ({} as z.input<typeof repoRemoveInput>);
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
- return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof RepoRemoveAction>['remove']>>;
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 repoScanInput>) {
980
- const inp = input ?? ({} as z.input<typeof repoScanInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoScanAction>['scan']>>;
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 repoUpdateInput>) {
987
- const inp = input ?? ({} as z.input<typeof repoUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoUpdateAction>['update']>>;
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 docAddInput>) {
994
- const inp = input ?? ({} as z.input<typeof docAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAddAction>['add']>>;
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 docAttachNoteInput>) {
1001
- const inp = input ?? ({} as z.input<typeof docAttachNoteInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAttachNoteAction>['attachNote']>>;
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 docAttachInput>) {
1008
- const inp = input ?? ({} as z.input<typeof docAttachInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAttachAction>['attach']>>;
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 docAttachmentsInput>) {
1015
- const inp = input ?? ({} as z.input<typeof docAttachmentsInput>);
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"]));
1019
871
  const query = q.toString();
1020
872
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1021
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocAttachmentsAction>['attachments']>>;
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 docDetachInput>) {
1025
- const inp = input ?? ({} as z.input<typeof docDetachInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof DocDetachAction>['detach']>>;
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 docGetInput>) {
1032
- const inp = input ?? ({} as z.input<typeof docGetInput>);
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"]));
1036
888
  const query = q.toString();
1037
889
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1038
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocGetAction>['get']>>;
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 docListInput>) {
1042
- const inp = input ?? ({} as z.input<typeof docListInput>);
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"]));
1046
898
  const query = q.toString();
1047
899
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1048
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocListAction>['list']>>;
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 docRemoveInput>) {
1052
- const inp = input ?? ({} as z.input<typeof docRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof DocRemoveAction>['remove']>>;
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 docUpdateInput>) {
1059
- const inp = input ?? ({} as z.input<typeof docUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof DocUpdateAction>['update']>>;
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 docsBindInput>) {
1066
- const inp = input ?? ({} as z.input<typeof docsBindInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsBindAction>['bind']>>;
921
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsBindAction>['run']>>;
1070
922
  },
1071
923
  // action: docs.index
1072
924
  async index() {
1073
925
  const path = `/api/docs/index`;
1074
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocsIndexAction>['index']>>;
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 docsLinkInput>) {
1078
- const inp = input ?? ({} as z.input<typeof docsLinkInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsLinkAction>['link']>>;
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 docsNotebindInput>) {
1085
- const inp = input ?? ({} as z.input<typeof docsNotebindInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsNotebindAction>['notebind']>>;
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 docsSeedInput>) {
1092
- const inp = input ?? ({} as z.input<typeof docsSeedInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsSeedAction>['seed']>>;
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 localtaskAddInput>) {
1099
- const inp = input ?? ({} as z.input<typeof localtaskAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAddAction>['add']>>;
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 localtaskAttachNoteInput>) {
1106
- const inp = input ?? ({} as z.input<typeof localtaskAttachNoteInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachNoteAction>['attachNote']>>;
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 localtaskAttachInput>) {
1113
- const inp = input ?? ({} as z.input<typeof localtaskAttachInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachAction>['attach']>>;
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 localtaskAttachmentsInput>) {
1120
- const inp = input ?? ({} as z.input<typeof localtaskAttachmentsInput>);
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"]));
@@ -1125,25 +977,25 @@ export function createApiClient(transport: Transport): ApiClient {
1125
977
  if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1126
978
  const query = q.toString();
1127
979
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1128
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachmentsAction>['attachments']>>;
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 localtaskCancelInput>) {
1132
- const inp = input ?? ({} as z.input<typeof localtaskCancelInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCancelAction>['cancel']>>;
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 localtaskCancelManyInput>) {
1139
- const inp = input ?? ({} as z.input<typeof localtaskCancelManyInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCancelManyAction>['cancelMany']>>;
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 localtaskChainInput>) {
1146
- const inp = input ?? ({} as z.input<typeof localtaskChainInput>);
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"]));
@@ -1151,53 +1003,53 @@ export function createApiClient(transport: Transport): ApiClient {
1151
1003
  if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1152
1004
  const query = q.toString();
1153
1005
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1154
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskChainAction>['chain']>>;
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 localtaskClaimInput>) {
1158
- const inp = input ?? ({} as z.input<typeof localtaskClaimInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskClaimAction>['claim']>>;
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 localtaskCloneInput>) {
1165
- const inp = input ?? ({} as z.input<typeof localtaskCloneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCloneAction>['clone']>>;
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 localtaskCloseManyInput>) {
1172
- const inp = input ?? ({} as z.input<typeof localtaskCloseManyInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCloseManyAction>['closeMany']>>;
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 localtaskConfigInput>) {
1179
- const inp = input ?? ({} as z.input<typeof localtaskConfigInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskConfigAction>['config']>>;
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 localtaskDetachInput>) {
1186
- const inp = input ?? ({} as z.input<typeof localtaskDetachInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskDetachAction>['detach']>>;
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 localtaskDoneInput>) {
1193
- const inp = input ?? ({} as z.input<typeof localtaskDoneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskDoneAction>['done']>>;
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 localtaskEventsInput>) {
1200
- const inp = input ?? ({} as z.input<typeof localtaskEventsInput>);
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"]));
@@ -1206,18 +1058,18 @@ export function createApiClient(transport: Transport): ApiClient {
1206
1058
  if (inp["limit"] !== undefined) q.set("limit", String(inp["limit"]));
1207
1059
  const query = q.toString();
1208
1060
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1209
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskEventsAction>['events']>>;
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 localtaskForkInput>) {
1213
- const inp = input ?? ({} as z.input<typeof localtaskForkInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskForkAction>['fork']>>;
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 localtaskGetInput>) {
1220
- const inp = input ?? ({} as z.input<typeof localtaskGetInput>);
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"]));
@@ -1225,77 +1077,77 @@ export function createApiClient(transport: Transport): ApiClient {
1225
1077
  if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1226
1078
  const query = q.toString();
1227
1079
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1228
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskGetAction>['get']>>;
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 localtaskImportRemoteInput>) {
1232
- const inp = input ?? ({} as z.input<typeof localtaskImportRemoteInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['importRemote']>>;
1087
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['run']>>;
1236
1088
  },
1237
1089
  // action: localtask.list
1238
1090
  async localtaskList() {
1239
1091
  const path = `/api/localtasks`;
1240
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskListAction>['list']>>;
1092
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskListAction>['run']>>;
1241
1093
  },
1242
1094
  // action: localtask.presence
1243
1095
  async presence() {
1244
1096
  const path = `/api/localtasks/presence`;
1245
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPresenceAction>['presence']>>;
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 localtaskPreviewInput>) {
1249
- const inp = input ?? ({} as z.input<typeof localtaskPreviewInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPreviewAction>['preview']>>;
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 localtaskPruneInput>) {
1256
- const inp = input ?? ({} as z.input<typeof localtaskPruneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPruneAction>['prune']>>;
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 localtaskRemoveInput>) {
1263
- const inp = input ?? ({} as z.input<typeof localtaskRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveAction>['remove']>>;
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 localtaskRemoveManyInput>) {
1270
- const inp = input ?? ({} as z.input<typeof localtaskRemoveManyInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveManyAction>['removeMany']>>;
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 localtaskReopenInput>) {
1277
- const inp = input ?? ({} as z.input<typeof localtaskReopenInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskReopenAction>['reopen']>>;
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 localtaskReorderInput>) {
1284
- const inp = input ?? ({} as z.input<typeof localtaskReorderInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskReorderAction>['reorder']>>;
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 localtaskTaskRestoreInput>) {
1291
- const inp = input ?? ({} as z.input<typeof localtaskTaskRestoreInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTaskRestoreAction>['restore']>>;
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 localtaskTimegoalLogInput>) {
1298
- const inp = input ?? ({} as z.input<typeof localtaskTimegoalLogInput>);
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"]));
@@ -1303,46 +1155,46 @@ export function createApiClient(transport: Transport): ApiClient {
1303
1155
  if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1304
1156
  const query = q.toString();
1305
1157
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1306
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTimegoalLogAction>['timegoalLog']>>;
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 localtaskTopicAddInput>) {
1310
- const inp = input ?? ({} as z.input<typeof localtaskTopicAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicAddAction>['add']>>;
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 localtaskTopicRemoveInput>) {
1317
- const inp = input ?? ({} as z.input<typeof localtaskTopicRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveAction>['remove']>>;
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 localtaskTopicRemoveManyInput>) {
1324
- const inp = input ?? ({} as z.input<typeof localtaskTopicRemoveManyInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveManyAction>['removeMany']>>;
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 localtaskUpdateInput>) {
1331
- const inp = input ?? ({} as z.input<typeof localtaskUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskUpdateAction>['update']>>;
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 taskMoveInput>) {
1338
- const inp = input ?? ({} as z.input<typeof taskMoveInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TaskMoveAction>['move']>>;
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 timegoalCheckInput>) {
1345
- const inp = input ?? ({} as z.input<typeof timegoalCheckInput>);
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"]));
@@ -1350,77 +1202,77 @@ export function createApiClient(transport: Transport): ApiClient {
1350
1202
  if (inp["summary"] !== undefined) q.set("summary", String(inp["summary"]));
1351
1203
  const query = q.toString();
1352
1204
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1353
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalCheckAction>['check']>>;
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 timegoalClearInput>) {
1357
- const inp = input ?? ({} as z.input<typeof timegoalClearInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['clear']>>;
1212
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['run']>>;
1361
1213
  },
1362
1214
  // action: timegoal.list
1363
1215
  async timegoalList() {
1364
1216
  const path = `/api/timegoals/all`;
1365
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalListAction>['list']>>;
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 timegoalLogInput>) {
1369
- const inp = input ?? ({} as z.input<typeof timegoalLogInput>);
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"]));
1373
1225
  const query = q.toString();
1374
1226
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1375
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalLogAction>['log']>>;
1227
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalLogAction>['run']>>;
1376
1228
  },
1377
1229
  // action: timegoal.prune
1378
1230
  async timegoalPrune() {
1379
1231
  const path = `/api/timegoals/prune`;
1380
- return (await transport.request("POST", path, undefined)) as Awaited<ReturnType<InstanceType<typeof TimegoalPruneAction>['prune']>>;
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 timegoalSetInput>) {
1384
- const inp = input ?? ({} as z.input<typeof timegoalSetInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalSetAction>['set']>>;
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 timegoalShowInput>) {
1391
- const inp = input ?? ({} as z.input<typeof timegoalShowInput>);
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"]));
1395
1247
  if (inp["task"] !== undefined) q.set("task", String(inp["task"]));
1396
1248
  const query = q.toString();
1397
1249
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1398
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalShowAction>['show']>>;
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 timegoalUpdateInput>) {
1402
- const inp = input ?? ({} as z.input<typeof timegoalUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalUpdateAction>['update']>>;
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 templatesAddInput>) {
1409
- const inp = input ?? ({} as z.input<typeof templatesAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesAddAction>['add']>>;
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 templatesDefaultInput>) {
1416
- const inp = input ?? ({} as z.input<typeof templatesDefaultInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesDefaultAction>['default']>>;
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 templatesListInput>) {
1423
- const inp = input ?? ({} as z.input<typeof templatesListInput>);
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"]));
@@ -1428,118 +1280,118 @@ export function createApiClient(transport: Transport): ApiClient {
1428
1280
  if (inp["repo"] !== undefined) q.set("repo", String(inp["repo"]));
1429
1281
  const query = q.toString();
1430
1282
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1431
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TemplatesListAction>['list']>>;
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 templatesRemoveInput>) {
1435
- const inp = input ?? ({} as z.input<typeof templatesRemoveInput>);
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
- return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof TemplatesRemoveAction>['remove']>>;
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 templatesUpdateInput>) {
1441
- const inp = input ?? ({} as z.input<typeof templatesUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesUpdateAction>['update']>>;
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 groupAddInput>) {
1448
- const inp = input ?? ({} as z.input<typeof groupAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupAddAction>['add']>>;
1303
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupAddAction>['run']>>;
1452
1304
  },
1453
1305
  // action: group.current
1454
1306
  async current() {
1455
1307
  const path = `/api/group`;
1456
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupCurrentAction>['current']>>;
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 groupGetInput>) {
1460
- const inp = input ?? ({} as z.input<typeof groupGetInput>);
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
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupGetAction>['get']>>;
1314
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupGetAction>['run']>>;
1463
1315
  },
1464
1316
  // action: group.list
1465
1317
  async groupList() {
1466
1318
  const path = `/api/groups`;
1467
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupListAction>['list']>>;
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 groupMembersInput>) {
1471
- const inp = input ?? ({} as z.input<typeof groupMembersInput>);
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
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupMembersAction>['members']>>;
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 groupRemoveInput>) {
1477
- const inp = input ?? ({} as z.input<typeof groupRemoveInput>);
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
- return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof GroupRemoveAction>['remove']>>;
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 groupUpdateInput>) {
1483
- const inp = input ?? ({} as z.input<typeof groupUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupUpdateAction>['update']>>;
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 groupUseInput>) {
1490
- const inp = input ?? ({} as z.input<typeof groupUseInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupUseAction>['use']>>;
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 promptGetInput>) {
1497
- const inp = input ?? ({} as z.input<typeof promptGetInput>);
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"]));
1501
1353
  const query = q.toString();
1502
1354
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1503
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof PromptGetAction>['get']>>;
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 promptRemoveInput>) {
1507
- const inp = input ?? ({} as z.input<typeof promptRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof PromptRemoveAction>['remove']>>;
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 promptSetInput>) {
1514
- const inp = input ?? ({} as z.input<typeof promptSetInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof PromptSetAction>['set']>>;
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 todoAddInput>) {
1521
- const inp = input ?? ({} as z.input<typeof todoAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoAddAction>['add']>>;
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 todoArchiveInput>) {
1528
- const inp = input ?? ({} as z.input<typeof todoArchiveInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoArchiveAction>['archive']>>;
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 todoAttachInput>) {
1535
- const inp = input ?? ({} as z.input<typeof todoAttachInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoAttachAction>['attach']>>;
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 todoAttachmentsInput>) {
1542
- const inp = input ?? ({} as z.input<typeof todoAttachmentsInput>);
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"]));
@@ -1548,25 +1400,25 @@ export function createApiClient(transport: Transport): ApiClient {
1548
1400
  if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1549
1401
  const query = q.toString();
1550
1402
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1551
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoAttachmentsAction>['attachments']>>;
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 todoDoneInput>) {
1555
- const inp = input ?? ({} as z.input<typeof todoDoneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoDoneAction>['done']>>;
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 todoFreezeInput>) {
1562
- const inp = input ?? ({} as z.input<typeof todoFreezeInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoFreezeAction>['freeze']>>;
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 todoGetInput>) {
1569
- const inp = input ?? ({} as z.input<typeof todoGetInput>);
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"]));
@@ -1575,11 +1427,11 @@ export function createApiClient(transport: Transport): ApiClient {
1575
1427
  if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1576
1428
  const query = q.toString();
1577
1429
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1578
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoGetAction>['get']>>;
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 todoListInput>) {
1582
- const inp = input ?? ({} as z.input<typeof todoListInput>);
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"]));
@@ -1587,77 +1439,77 @@ export function createApiClient(transport: Transport): ApiClient {
1587
1439
  if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1588
1440
  const query = q.toString();
1589
1441
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1590
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoListAction>['list']>>;
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 todoRemoveInput>) {
1594
- const inp = input ?? ({} as z.input<typeof todoRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoRemoveAction>['remove']>>;
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 todoUnfreezeInput>) {
1601
- const inp = input ?? ({} as z.input<typeof todoUnfreezeInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoUnfreezeAction>['unfreeze']>>;
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 todoUpdateInput>) {
1608
- const inp = input ?? ({} as z.input<typeof todoUpdateInput>);
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
- return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoUpdateAction>['update']>>;
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 topicAddInput>) {
1615
- const inp = input ?? ({} as z.input<typeof topicAddInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TopicAddAction>['add']>>;
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 topicListInput>) {
1622
- const inp = input ?? ({} as z.input<typeof topicListInput>);
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"]));
1626
1478
  const query = q.toString();
1627
1479
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1628
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TopicListAction>['list']>>;
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 topicRemoveInput>) {
1632
- const inp = input ?? ({} as z.input<typeof topicRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TopicRemoveAction>['remove']>>;
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 fileContentInput>) {
1639
- const inp = input ?? ({} as z.input<typeof fileContentInput>);
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"]));
1643
1495
  const query = q.toString();
1644
1496
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1645
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileContentAction>['content']>>;
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 fileGetInput>) {
1649
- const inp = input ?? ({} as z.input<typeof fileGetInput>);
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"]));
1653
1505
  if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1654
1506
  const query = q.toString();
1655
1507
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1656
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileGetAction>['get']>>;
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 fileListInput>) {
1660
- const inp = input ?? ({} as z.input<typeof fileListInput>);
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"]));
@@ -1665,44 +1517,44 @@ export function createApiClient(transport: Transport): ApiClient {
1665
1517
  if (inp["offset"] !== undefined) q.set("offset", String(inp["offset"]));
1666
1518
  const query = q.toString();
1667
1519
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1668
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileListAction>['list']>>;
1520
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileListAction>['run']>>;
1669
1521
  },
1670
1522
  // action: file.orphans
1671
1523
  async orphans() {
1672
1524
  const path = `/api/file/orphans`;
1673
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileOrphansAction>['orphans']>>;
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 filePruneInput>) {
1677
- const inp = input ?? ({} as z.input<typeof filePruneInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FilePruneAction>['prune']>>;
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 fileRemoveInput>) {
1684
- const inp = input ?? ({} as z.input<typeof fileRemoveInput>);
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
- return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof FileRemoveAction>['remove']>>;
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 fileSyncInput>) {
1691
- const inp = input ?? ({} as z.input<typeof fileSyncInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FileSyncAction>['sync']>>;
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 fileUploadInput>) {
1698
- const inp = input ?? ({} as z.input<typeof fileUploadInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FileUploadAction>['upload']>>;
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 bundledGetInput>) {
1705
- const inp = input ?? ({} as z.input<typeof bundledGetInput>);
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"]));
@@ -1711,24 +1563,24 @@ export function createApiClient(transport: Transport): ApiClient {
1711
1563
  if (inp["to"] !== undefined) q.set("to", String(inp["to"]));
1712
1564
  const query = q.toString();
1713
1565
  if (query) path += path.includes('?') ? '&' + query : '?' + query;
1714
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledGetAction>['get']>>;
1566
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledGetAction>['run']>>;
1715
1567
  },
1716
1568
  // action: bundled.groups
1717
1569
  async groups() {
1718
1570
  const path = `/api/bundled/groups`;
1719
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledGroupsAction>['groups']>>;
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 bundledInstallInput>) {
1723
- const inp = input ?? ({} as z.input<typeof bundledInstallInput>);
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
- return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['install']>>;
1578
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['run']>>;
1727
1579
  },
1728
1580
  // action: bundled.list
1729
1581
  async bundledList() {
1730
1582
  const path = `/api/bundled`;
1731
- return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledListAction>['list']>>;
1583
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledListAction>['run']>>;
1732
1584
  },
1733
1585
  };
1734
1586
  }