dsh-botgroup 0.0.0-stage → 0.6.7

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 (810) hide show
  1. package/LICENSE +18 -0
  2. package/README.en.md +180 -0
  3. package/README.md +179 -2
  4. package/THIRD_PARTY_NOTICES.txt +212 -0
  5. package/assets/logo-1024.png +0 -0
  6. package/cordis.patch.yml +13 -0
  7. package/icon.svg +9 -0
  8. package/lib/client.js +28298 -0
  9. package/lib/client.js.map +7 -0
  10. package/lib/host/activity/first-user.d.ts +16 -0
  11. package/lib/host/activity/first-user.js +25 -0
  12. package/lib/host/activity/first-user.js.map +1 -0
  13. package/lib/host/activity/preview.d.ts +2 -0
  14. package/lib/host/activity/preview.js +5 -0
  15. package/lib/host/activity/preview.js.map +1 -0
  16. package/lib/host/activity/remote.d.ts +15 -0
  17. package/lib/host/activity/remote.js +66 -0
  18. package/lib/host/activity/remote.js.map +1 -0
  19. package/lib/host/activity/tracker.d.ts +12 -0
  20. package/lib/host/activity/tracker.js +157 -0
  21. package/lib/host/activity/tracker.js.map +1 -0
  22. package/lib/host/automation/coordinator.d.ts +26 -0
  23. package/lib/host/automation/coordinator.js +58 -0
  24. package/lib/host/automation/coordinator.js.map +1 -0
  25. package/lib/host/automation/delivery.d.ts +16 -0
  26. package/lib/host/automation/delivery.js +65 -0
  27. package/lib/host/automation/delivery.js.map +1 -0
  28. package/lib/host/automation/errors.d.ts +16 -0
  29. package/lib/host/automation/errors.js +19 -0
  30. package/lib/host/automation/errors.js.map +1 -0
  31. package/lib/host/automation/index.d.ts +2 -0
  32. package/lib/host/automation/index.js +4 -0
  33. package/lib/host/automation/index.js.map +1 -0
  34. package/lib/host/automation/remote.d.ts +280 -0
  35. package/lib/host/automation/remote.js +152 -0
  36. package/lib/host/automation/remote.js.map +1 -0
  37. package/lib/host/automation/store.d.ts +297 -0
  38. package/lib/host/automation/store.js +286 -0
  39. package/lib/host/automation/store.js.map +1 -0
  40. package/lib/host/bot-context.d.ts +11 -0
  41. package/lib/host/bot-context.js +318 -0
  42. package/lib/host/bot-context.js.map +1 -0
  43. package/lib/host/capabilities/platform.d.ts +17 -0
  44. package/lib/host/capabilities/platform.js +17 -0
  45. package/lib/host/capabilities/platform.js.map +1 -0
  46. package/lib/host/capabilities/remote.d.ts +94 -0
  47. package/lib/host/capabilities/remote.js +59 -0
  48. package/lib/host/capabilities/remote.js.map +1 -0
  49. package/lib/host/capabilities/service.d.ts +82 -0
  50. package/lib/host/capabilities/service.js +144 -0
  51. package/lib/host/capabilities/service.js.map +1 -0
  52. package/lib/host/collaboration/remote.d.ts +89 -0
  53. package/lib/host/collaboration/remote.js +109 -0
  54. package/lib/host/collaboration/remote.js.map +1 -0
  55. package/lib/host/collaboration/service.d.ts +61 -0
  56. package/lib/host/collaboration/service.js +191 -0
  57. package/lib/host/collaboration/service.js.map +1 -0
  58. package/lib/host/common/integration-stores.d.ts +162 -0
  59. package/lib/host/common/integration-stores.js +50 -0
  60. package/lib/host/common/integration-stores.js.map +1 -0
  61. package/lib/host/common/operations.d.ts +23 -0
  62. package/lib/host/common/operations.js +38 -0
  63. package/lib/host/common/operations.js.map +1 -0
  64. package/lib/host/composer.d.ts +15 -0
  65. package/lib/host/composer.js +102 -0
  66. package/lib/host/composer.js.map +1 -0
  67. package/lib/host/connectors/remote.d.ts +215 -0
  68. package/lib/host/connectors/remote.js +111 -0
  69. package/lib/host/connectors/remote.js.map +1 -0
  70. package/lib/host/connectors/service.d.ts +150 -0
  71. package/lib/host/connectors/service.js +491 -0
  72. package/lib/host/connectors/service.js.map +1 -0
  73. package/lib/host/data-flow/agent-binding.d.ts +8 -0
  74. package/lib/host/data-flow/agent-binding.js +4 -0
  75. package/lib/host/data-flow/agent-binding.js.map +1 -0
  76. package/lib/host/data-flow/connector-boundary.d.ts +7 -0
  77. package/lib/host/data-flow/connector-boundary.js +33 -0
  78. package/lib/host/data-flow/connector-boundary.js.map +1 -0
  79. package/lib/host/data-flow/delegation.d.ts +6 -0
  80. package/lib/host/data-flow/delegation.js +72 -0
  81. package/lib/host/data-flow/delegation.js.map +1 -0
  82. package/lib/host/data-flow/egress.d.ts +26 -0
  83. package/lib/host/data-flow/egress.js +118 -0
  84. package/lib/host/data-flow/egress.js.map +1 -0
  85. package/lib/host/data-flow/grants.d.ts +18 -0
  86. package/lib/host/data-flow/grants.js +39 -0
  87. package/lib/host/data-flow/grants.js.map +1 -0
  88. package/lib/host/data-flow/graph-capability.d.ts +3 -0
  89. package/lib/host/data-flow/graph-capability.js +21 -0
  90. package/lib/host/data-flow/graph-capability.js.map +1 -0
  91. package/lib/host/data-flow/labels.d.ts +6 -0
  92. package/lib/host/data-flow/labels.js +30 -0
  93. package/lib/host/data-flow/labels.js.map +1 -0
  94. package/lib/host/data-flow/lineage.d.ts +10 -0
  95. package/lib/host/data-flow/lineage.js +35 -0
  96. package/lib/host/data-flow/lineage.js.map +1 -0
  97. package/lib/host/data-flow/managed-copies.d.ts +208 -0
  98. package/lib/host/data-flow/managed-copies.js +37 -0
  99. package/lib/host/data-flow/managed-copies.js.map +1 -0
  100. package/lib/host/data-flow/native-policy.d.ts +26 -0
  101. package/lib/host/data-flow/native-policy.js +86 -0
  102. package/lib/host/data-flow/native-policy.js.map +1 -0
  103. package/lib/host/data-flow/outlets.d.ts +55 -0
  104. package/lib/host/data-flow/outlets.js +307 -0
  105. package/lib/host/data-flow/outlets.js.map +1 -0
  106. package/lib/host/data-flow/tool-guard.d.ts +13 -0
  107. package/lib/host/data-flow/tool-guard.js +114 -0
  108. package/lib/host/data-flow/tool-guard.js.map +1 -0
  109. package/lib/host/delegate/continuation.d.ts +5 -0
  110. package/lib/host/delegate/continuation.js +44 -0
  111. package/lib/host/delegate/continuation.js.map +1 -0
  112. package/lib/host/delegate/guard.d.ts +7 -0
  113. package/lib/host/delegate/guard.js +49 -0
  114. package/lib/host/delegate/guard.js.map +1 -0
  115. package/lib/host/delegate/tool.d.ts +3 -0
  116. package/lib/host/delegate/tool.js +180 -0
  117. package/lib/host/delegate/tool.js.map +1 -0
  118. package/lib/host/errors.d.ts +9 -0
  119. package/lib/host/errors.js +17 -0
  120. package/lib/host/errors.js.map +1 -0
  121. package/lib/host/groups/concurrent.d.ts +29 -0
  122. package/lib/host/groups/concurrent.js +272 -0
  123. package/lib/host/groups/concurrent.js.map +1 -0
  124. package/lib/host/groups/data-flow.d.ts +21 -0
  125. package/lib/host/groups/data-flow.js +54 -0
  126. package/lib/host/groups/data-flow.js.map +1 -0
  127. package/lib/host/groups/failure.d.ts +10 -0
  128. package/lib/host/groups/failure.js +36 -0
  129. package/lib/host/groups/failure.js.map +1 -0
  130. package/lib/host/groups/members.d.ts +105 -0
  131. package/lib/host/groups/members.js +204 -0
  132. package/lib/host/groups/members.js.map +1 -0
  133. package/lib/host/groups/messages.d.ts +335 -0
  134. package/lib/host/groups/messages.js +148 -0
  135. package/lib/host/groups/messages.js.map +1 -0
  136. package/lib/host/groups/model-selection.d.ts +15 -0
  137. package/lib/host/groups/model-selection.js +12 -0
  138. package/lib/host/groups/model-selection.js.map +1 -0
  139. package/lib/host/groups/model.d.ts +266 -0
  140. package/lib/host/groups/model.js +22 -0
  141. package/lib/host/groups/model.js.map +1 -0
  142. package/lib/host/groups/owner-follow-up.d.ts +4 -0
  143. package/lib/host/groups/owner-follow-up.js +34 -0
  144. package/lib/host/groups/owner-follow-up.js.map +1 -0
  145. package/lib/host/groups/recall-sessions.d.ts +32 -0
  146. package/lib/host/groups/recall-sessions.js +145 -0
  147. package/lib/host/groups/recall-sessions.js.map +1 -0
  148. package/lib/host/groups/recall-tool.d.ts +9 -0
  149. package/lib/host/groups/recall-tool.js +275 -0
  150. package/lib/host/groups/recall-tool.js.map +1 -0
  151. package/lib/host/groups/recall.d.ts +37 -0
  152. package/lib/host/groups/recall.js +406 -0
  153. package/lib/host/groups/recall.js.map +1 -0
  154. package/lib/host/groups/remote.d.ts +902 -0
  155. package/lib/host/groups/remote.js +146 -0
  156. package/lib/host/groups/remote.js.map +1 -0
  157. package/lib/host/groups/root-guard.d.ts +26 -0
  158. package/lib/host/groups/root-guard.js +59 -0
  159. package/lib/host/groups/root-guard.js.map +1 -0
  160. package/lib/host/groups/roots.d.ts +25 -0
  161. package/lib/host/groups/roots.js +225 -0
  162. package/lib/host/groups/roots.js.map +1 -0
  163. package/lib/host/groups/round-robin.d.ts +2 -0
  164. package/lib/host/groups/round-robin.js +7 -0
  165. package/lib/host/groups/round-robin.js.map +1 -0
  166. package/lib/host/groups/routing.d.ts +8 -0
  167. package/lib/host/groups/routing.js +62 -0
  168. package/lib/host/groups/routing.js.map +1 -0
  169. package/lib/host/groups/service.d.ts +1204 -0
  170. package/lib/host/groups/service.js +286 -0
  171. package/lib/host/groups/service.js.map +1 -0
  172. package/lib/host/groups/state.d.ts +818 -0
  173. package/lib/host/groups/state.js +227 -0
  174. package/lib/host/groups/state.js.map +1 -0
  175. package/lib/host/groups/turn-runner.d.ts +181 -0
  176. package/lib/host/groups/turn-runner.js +578 -0
  177. package/lib/host/groups/turn-runner.js.map +1 -0
  178. package/lib/host/groups/turns.d.ts +657 -0
  179. package/lib/host/groups/turns.js +480 -0
  180. package/lib/host/groups/turns.js.map +1 -0
  181. package/lib/host/groups/worker-tool.d.ts +43 -0
  182. package/lib/host/groups/worker-tool.js +86 -0
  183. package/lib/host/groups/worker-tool.js.map +1 -0
  184. package/lib/host/home.d.ts +27 -0
  185. package/lib/host/home.js +221 -0
  186. package/lib/host/home.js.map +1 -0
  187. package/lib/host/im/service.d.ts +4 -0
  188. package/lib/host/im/service.js +20 -0
  189. package/lib/host/im/service.js.map +1 -0
  190. package/lib/host/index.d.ts +9 -0
  191. package/lib/host/index.js +270 -0
  192. package/lib/host/index.js.map +1 -0
  193. package/lib/host/live-persona.d.ts +9 -0
  194. package/lib/host/live-persona.js +102 -0
  195. package/lib/host/live-persona.js.map +1 -0
  196. package/lib/host/main-session.d.ts +45 -0
  197. package/lib/host/main-session.js +249 -0
  198. package/lib/host/main-session.js.map +1 -0
  199. package/lib/host/memory/admission.d.ts +46 -0
  200. package/lib/host/memory/admission.js +269 -0
  201. package/lib/host/memory/admission.js.map +1 -0
  202. package/lib/host/memory/auto-share.d.ts +36 -0
  203. package/lib/host/memory/auto-share.js +38 -0
  204. package/lib/host/memory/auto-share.js.map +1 -0
  205. package/lib/host/memory/confirmation.d.ts +145 -0
  206. package/lib/host/memory/confirmation.js +88 -0
  207. package/lib/host/memory/confirmation.js.map +1 -0
  208. package/lib/host/memory/conflicts.d.ts +16 -0
  209. package/lib/host/memory/conflicts.js +87 -0
  210. package/lib/host/memory/conflicts.js.map +1 -0
  211. package/lib/host/memory/context.d.ts +16 -0
  212. package/lib/host/memory/context.js +96 -0
  213. package/lib/host/memory/context.js.map +1 -0
  214. package/lib/host/memory/domain-v2.d.ts +338 -0
  215. package/lib/host/memory/domain-v2.js +21 -0
  216. package/lib/host/memory/domain-v2.js.map +1 -0
  217. package/lib/host/memory/facade.d.ts +31 -0
  218. package/lib/host/memory/facade.js +182 -0
  219. package/lib/host/memory/facade.js.map +1 -0
  220. package/lib/host/memory/forget-preview.d.ts +27 -0
  221. package/lib/host/memory/forget-preview.js +100 -0
  222. package/lib/host/memory/forget-preview.js.map +1 -0
  223. package/lib/host/memory/forget-runner.d.ts +31 -0
  224. package/lib/host/memory/forget-runner.js +167 -0
  225. package/lib/host/memory/forget-runner.js.map +1 -0
  226. package/lib/host/memory/forget-service.d.ts +65 -0
  227. package/lib/host/memory/forget-service.js +169 -0
  228. package/lib/host/memory/forget-service.js.map +1 -0
  229. package/lib/host/memory/history-proof.d.ts +5 -0
  230. package/lib/host/memory/history-proof.js +37 -0
  231. package/lib/host/memory/history-proof.js.map +1 -0
  232. package/lib/host/memory/history.d.ts +31 -0
  233. package/lib/host/memory/history.js +45 -0
  234. package/lib/host/memory/history.js.map +1 -0
  235. package/lib/host/memory/layout-upgrade.d.ts +8 -0
  236. package/lib/host/memory/layout-upgrade.js +51 -0
  237. package/lib/host/memory/layout-upgrade.js.map +1 -0
  238. package/lib/host/memory/migration.d.ts +23 -0
  239. package/lib/host/memory/migration.js +105 -0
  240. package/lib/host/memory/migration.js.map +1 -0
  241. package/lib/host/memory/op-log.d.ts +44 -0
  242. package/lib/host/memory/op-log.js +155 -0
  243. package/lib/host/memory/op-log.js.map +1 -0
  244. package/lib/host/memory/open-v2.d.ts +7 -0
  245. package/lib/host/memory/open-v2.js +30 -0
  246. package/lib/host/memory/open-v2.js.map +1 -0
  247. package/lib/host/memory/owner-lease.d.ts +9 -0
  248. package/lib/host/memory/owner-lease.js +105 -0
  249. package/lib/host/memory/owner-lease.js.map +1 -0
  250. package/lib/host/memory/persistent-map.d.ts +40 -0
  251. package/lib/host/memory/persistent-map.js +88 -0
  252. package/lib/host/memory/persistent-map.js.map +1 -0
  253. package/lib/host/memory/port.d.ts +10 -0
  254. package/lib/host/memory/port.js +3 -0
  255. package/lib/host/memory/port.js.map +1 -0
  256. package/lib/host/memory/preserve-inbox.d.ts +7 -0
  257. package/lib/host/memory/preserve-inbox.js +45 -0
  258. package/lib/host/memory/preserve-inbox.js.map +1 -0
  259. package/lib/host/memory/projection.d.ts +22 -0
  260. package/lib/host/memory/projection.js +89 -0
  261. package/lib/host/memory/projection.js.map +1 -0
  262. package/lib/host/memory/prompt.d.ts +3 -0
  263. package/lib/host/memory/prompt.js +56 -0
  264. package/lib/host/memory/prompt.js.map +1 -0
  265. package/lib/host/memory/query.d.ts +5 -0
  266. package/lib/host/memory/query.js +8 -0
  267. package/lib/host/memory/query.js.map +1 -0
  268. package/lib/host/memory/quota-replay.d.ts +4 -0
  269. package/lib/host/memory/quota-replay.js +22 -0
  270. package/lib/host/memory/quota-replay.js.map +1 -0
  271. package/lib/host/memory/quota.d.ts +152 -0
  272. package/lib/host/memory/quota.js +101 -0
  273. package/lib/host/memory/quota.js.map +1 -0
  274. package/lib/host/memory/remote.d.ts +164 -0
  275. package/lib/host/memory/remote.js +191 -0
  276. package/lib/host/memory/remote.js.map +1 -0
  277. package/lib/host/memory/retrieval-aliases.json +55 -0
  278. package/lib/host/memory/retrieval-config.d.ts +15 -0
  279. package/lib/host/memory/retrieval-config.js +17 -0
  280. package/lib/host/memory/retrieval-config.js.map +1 -0
  281. package/lib/host/memory/retrieval-rank.d.ts +16 -0
  282. package/lib/host/memory/retrieval-rank.js +88 -0
  283. package/lib/host/memory/retrieval-rank.js.map +1 -0
  284. package/lib/host/memory/retrieval-text.d.ts +3 -0
  285. package/lib/host/memory/retrieval-text.js +34 -0
  286. package/lib/host/memory/retrieval-text.js.map +1 -0
  287. package/lib/host/memory/root-instructions.d.ts +4 -0
  288. package/lib/host/memory/root-instructions.js +21 -0
  289. package/lib/host/memory/root-instructions.js.map +1 -0
  290. package/lib/host/memory/secrets.d.ts +6 -0
  291. package/lib/host/memory/secrets.js +12 -0
  292. package/lib/host/memory/secrets.js.map +1 -0
  293. package/lib/host/memory/service.d.ts +59 -0
  294. package/lib/host/memory/service.js +148 -0
  295. package/lib/host/memory/service.js.map +1 -0
  296. package/lib/host/memory/shards.d.ts +4 -0
  297. package/lib/host/memory/shards.js +12 -0
  298. package/lib/host/memory/shards.js.map +1 -0
  299. package/lib/host/memory/store-v2.d.ts +37 -0
  300. package/lib/host/memory/store-v2.js +156 -0
  301. package/lib/host/memory/store-v2.js.map +1 -0
  302. package/lib/host/memory/temporal.d.ts +18 -0
  303. package/lib/host/memory/temporal.js +53 -0
  304. package/lib/host/memory/temporal.js.map +1 -0
  305. package/lib/host/memory/tool-guidance.d.ts +3 -0
  306. package/lib/host/memory/tool-guidance.js +11 -0
  307. package/lib/host/memory/tool-guidance.js.map +1 -0
  308. package/lib/host/memory/tools.d.ts +6 -0
  309. package/lib/host/memory/tools.js +121 -0
  310. package/lib/host/memory/tools.js.map +1 -0
  311. package/lib/host/memory/trusted-ingress.d.ts +14 -0
  312. package/lib/host/memory/trusted-ingress.js +13 -0
  313. package/lib/host/memory/trusted-ingress.js.map +1 -0
  314. package/lib/host/memory/version.d.ts +135 -0
  315. package/lib/host/memory/version.js +17 -0
  316. package/lib/host/memory/version.js.map +1 -0
  317. package/lib/host/messaging/config.d.ts +55 -0
  318. package/lib/host/messaging/config.js +44 -0
  319. package/lib/host/messaging/config.js.map +1 -0
  320. package/lib/host/messaging/core.d.ts +279 -0
  321. package/lib/host/messaging/core.js +109 -0
  322. package/lib/host/messaging/core.js.map +1 -0
  323. package/lib/host/messaging/delivery.d.ts +6 -0
  324. package/lib/host/messaging/delivery.js +237 -0
  325. package/lib/host/messaging/delivery.js.map +1 -0
  326. package/lib/host/messaging/evidence.d.ts +15 -0
  327. package/lib/host/messaging/evidence.js +63 -0
  328. package/lib/host/messaging/evidence.js.map +1 -0
  329. package/lib/host/messaging/interrupt.d.ts +3 -0
  330. package/lib/host/messaging/interrupt.js +15 -0
  331. package/lib/host/messaging/interrupt.js.map +1 -0
  332. package/lib/host/messaging/recovery.d.ts +19 -0
  333. package/lib/host/messaging/recovery.js +114 -0
  334. package/lib/host/messaging/recovery.js.map +1 -0
  335. package/lib/host/messaging/remote.d.ts +92 -0
  336. package/lib/host/messaging/remote.js +119 -0
  337. package/lib/host/messaging/remote.js.map +1 -0
  338. package/lib/host/messaging/reply-routing.d.ts +6 -0
  339. package/lib/host/messaging/reply-routing.js +203 -0
  340. package/lib/host/messaging/reply-routing.js.map +1 -0
  341. package/lib/host/messaging/safety.d.ts +29 -0
  342. package/lib/host/messaging/safety.js +78 -0
  343. package/lib/host/messaging/safety.js.map +1 -0
  344. package/lib/host/messaging/service.d.ts +22 -0
  345. package/lib/host/messaging/service.js +56 -0
  346. package/lib/host/messaging/service.js.map +1 -0
  347. package/lib/host/messaging/store.d.ts +732 -0
  348. package/lib/host/messaging/store.js +310 -0
  349. package/lib/host/messaging/store.js.map +1 -0
  350. package/lib/host/messaging/tool.d.ts +3 -0
  351. package/lib/host/messaging/tool.js +100 -0
  352. package/lib/host/messaging/tool.js.map +1 -0
  353. package/lib/host/messaging/wake.d.ts +5 -0
  354. package/lib/host/messaging/wake.js +14 -0
  355. package/lib/host/messaging/wake.js.map +1 -0
  356. package/lib/host/native-schedule/outcomes.d.ts +30 -0
  357. package/lib/host/native-schedule/outcomes.js +31 -0
  358. package/lib/host/native-schedule/outcomes.js.map +1 -0
  359. package/lib/host/native-schedule/service.d.ts +47 -0
  360. package/lib/host/native-schedule/service.js +164 -0
  361. package/lib/host/native-schedule/service.js.map +1 -0
  362. package/lib/host/notifications/data-flow.d.ts +6 -0
  363. package/lib/host/notifications/data-flow.js +56 -0
  364. package/lib/host/notifications/data-flow.js.map +1 -0
  365. package/lib/host/notifications/remote.d.ts +111 -0
  366. package/lib/host/notifications/remote.js +78 -0
  367. package/lib/host/notifications/remote.js.map +1 -0
  368. package/lib/host/notifications/service.d.ts +443 -0
  369. package/lib/host/notifications/service.js +466 -0
  370. package/lib/host/notifications/service.js.map +1 -0
  371. package/lib/host/notifications/time.d.ts +6 -0
  372. package/lib/host/notifications/time.js +21 -0
  373. package/lib/host/notifications/time.js.map +1 -0
  374. package/lib/host/notifications/tool.d.ts +4 -0
  375. package/lib/host/notifications/tool.js +97 -0
  376. package/lib/host/notifications/tool.js.map +1 -0
  377. package/lib/host/onboarding/coordinator.d.ts +87 -0
  378. package/lib/host/onboarding/coordinator.js +332 -0
  379. package/lib/host/onboarding/coordinator.js.map +1 -0
  380. package/lib/host/onboarding/guard.d.ts +5 -0
  381. package/lib/host/onboarding/guard.js +71 -0
  382. package/lib/host/onboarding/guard.js.map +1 -0
  383. package/lib/host/proactive/auto-admission.d.ts +17 -0
  384. package/lib/host/proactive/auto-admission.js +51 -0
  385. package/lib/host/proactive/auto-admission.js.map +1 -0
  386. package/lib/host/proactive/config.d.ts +192 -0
  387. package/lib/host/proactive/config.js +78 -0
  388. package/lib/host/proactive/config.js.map +1 -0
  389. package/lib/host/proactive/coordinator-client.d.ts +17 -0
  390. package/lib/host/proactive/coordinator-client.js +143 -0
  391. package/lib/host/proactive/coordinator-client.js.map +1 -0
  392. package/lib/host/proactive/deferred-notices.d.ts +21 -0
  393. package/lib/host/proactive/deferred-notices.js +147 -0
  394. package/lib/host/proactive/deferred-notices.js.map +1 -0
  395. package/lib/host/proactive/execution-prompt.d.ts +4 -0
  396. package/lib/host/proactive/execution-prompt.js +23 -0
  397. package/lib/host/proactive/execution-prompt.js.map +1 -0
  398. package/lib/host/proactive/execution.d.ts +36 -0
  399. package/lib/host/proactive/execution.js +607 -0
  400. package/lib/host/proactive/execution.js.map +1 -0
  401. package/lib/host/proactive/executors/command.d.ts +49 -0
  402. package/lib/host/proactive/executors/command.js +117 -0
  403. package/lib/host/proactive/executors/command.js.map +1 -0
  404. package/lib/host/proactive/executors/json-command-bridge-entry.d.ts +1 -0
  405. package/lib/host/proactive/executors/json-command-bridge-entry.js +29 -0
  406. package/lib/host/proactive/executors/json-command-bridge-entry.js.map +1 -0
  407. package/lib/host/proactive/executors/json-command-bridge.d.ts +46 -0
  408. package/lib/host/proactive/executors/json-command-bridge.js +135 -0
  409. package/lib/host/proactive/executors/json-command-bridge.js.map +1 -0
  410. package/lib/host/proactive/executors/loopback.d.ts +23 -0
  411. package/lib/host/proactive/executors/loopback.js +136 -0
  412. package/lib/host/proactive/executors/loopback.js.map +1 -0
  413. package/lib/host/proactive/feedback-workflow.d.ts +1336 -0
  414. package/lib/host/proactive/feedback-workflow.js +194 -0
  415. package/lib/host/proactive/feedback-workflow.js.map +1 -0
  416. package/lib/host/proactive/feedback.d.ts +25 -0
  417. package/lib/host/proactive/feedback.js +107 -0
  418. package/lib/host/proactive/feedback.js.map +1 -0
  419. package/lib/host/proactive/follow-up-events.d.ts +45 -0
  420. package/lib/host/proactive/follow-up-events.js +328 -0
  421. package/lib/host/proactive/follow-up-events.js.map +1 -0
  422. package/lib/host/proactive/follow-up-facts.d.ts +5 -0
  423. package/lib/host/proactive/follow-up-facts.js +34 -0
  424. package/lib/host/proactive/follow-up-facts.js.map +1 -0
  425. package/lib/host/proactive/follow-up-tool.d.ts +4 -0
  426. package/lib/host/proactive/follow-up-tool.js +195 -0
  427. package/lib/host/proactive/follow-up-tool.js.map +1 -0
  428. package/lib/host/proactive/governance-artifacts.d.ts +8 -0
  429. package/lib/host/proactive/governance-artifacts.js +182 -0
  430. package/lib/host/proactive/governance-artifacts.js.map +1 -0
  431. package/lib/host/proactive/governance-service.d.ts +39 -0
  432. package/lib/host/proactive/governance-service.js +146 -0
  433. package/lib/host/proactive/governance-service.js.map +1 -0
  434. package/lib/host/proactive/group-budget.d.ts +25 -0
  435. package/lib/host/proactive/group-budget.js +145 -0
  436. package/lib/host/proactive/group-budget.js.map +1 -0
  437. package/lib/host/proactive/group-follow-up.d.ts +10 -0
  438. package/lib/host/proactive/group-follow-up.js +95 -0
  439. package/lib/host/proactive/group-follow-up.js.map +1 -0
  440. package/lib/host/proactive/group-repair.d.ts +93 -0
  441. package/lib/host/proactive/group-repair.js +283 -0
  442. package/lib/host/proactive/group-repair.js.map +1 -0
  443. package/lib/host/proactive/index.d.ts +10 -0
  444. package/lib/host/proactive/index.js +26 -0
  445. package/lib/host/proactive/index.js.map +1 -0
  446. package/lib/host/proactive/lifecycle.d.ts +24 -0
  447. package/lib/host/proactive/lifecycle.js +187 -0
  448. package/lib/host/proactive/lifecycle.js.map +1 -0
  449. package/lib/host/proactive/method-evaluation.d.ts +5 -0
  450. package/lib/host/proactive/method-evaluation.js +41 -0
  451. package/lib/host/proactive/method-evaluation.js.map +1 -0
  452. package/lib/host/proactive/method-package.d.ts +33 -0
  453. package/lib/host/proactive/method-package.js +25 -0
  454. package/lib/host/proactive/method-package.js.map +1 -0
  455. package/lib/host/proactive/method-skill.d.ts +7 -0
  456. package/lib/host/proactive/method-skill.js +20 -0
  457. package/lib/host/proactive/method-skill.js.map +1 -0
  458. package/lib/host/proactive/model-budget.d.ts +10 -0
  459. package/lib/host/proactive/model-budget.js +48 -0
  460. package/lib/host/proactive/model-budget.js.map +1 -0
  461. package/lib/host/proactive/notice-pump.d.ts +16 -0
  462. package/lib/host/proactive/notice-pump.js +174 -0
  463. package/lib/host/proactive/notice-pump.js.map +1 -0
  464. package/lib/host/proactive/notification-bridge.d.ts +3 -0
  465. package/lib/host/proactive/notification-bridge.js +26 -0
  466. package/lib/host/proactive/notification-bridge.js.map +1 -0
  467. package/lib/host/proactive/read-query.d.ts +4 -0
  468. package/lib/host/proactive/read-query.js +53 -0
  469. package/lib/host/proactive/read-query.js.map +1 -0
  470. package/lib/host/proactive/remote.d.ts +4910 -0
  471. package/lib/host/proactive/remote.js +351 -0
  472. package/lib/host/proactive/remote.js.map +1 -0
  473. package/lib/host/proactive/repair.d.ts +48 -0
  474. package/lib/host/proactive/repair.js +205 -0
  475. package/lib/host/proactive/repair.js.map +1 -0
  476. package/lib/host/proactive/result-journal.d.ts +215 -0
  477. package/lib/host/proactive/result-journal.js +132 -0
  478. package/lib/host/proactive/result-journal.js.map +1 -0
  479. package/lib/host/proactive/service.d.ts +30446 -0
  480. package/lib/host/proactive/service.js +1632 -0
  481. package/lib/host/proactive/service.js.map +1 -0
  482. package/lib/host/proactive/setup.d.ts +13 -0
  483. package/lib/host/proactive/setup.js +94 -0
  484. package/lib/host/proactive/setup.js.map +1 -0
  485. package/lib/host/proactive/sources/ci-feed.d.ts +21 -0
  486. package/lib/host/proactive/sources/ci-feed.js +86 -0
  487. package/lib/host/proactive/sources/ci-feed.js.map +1 -0
  488. package/lib/host/proactive/sources/ci.d.ts +35 -0
  489. package/lib/host/proactive/sources/ci.js +72 -0
  490. package/lib/host/proactive/sources/ci.js.map +1 -0
  491. package/lib/host/proactive/sources/github-ci.d.ts +16 -0
  492. package/lib/host/proactive/sources/github-ci.js +117 -0
  493. package/lib/host/proactive/sources/github-ci.js.map +1 -0
  494. package/lib/host/proactive/task-cost.d.ts +10 -0
  495. package/lib/host/proactive/task-cost.js +70 -0
  496. package/lib/host/proactive/task-cost.js.map +1 -0
  497. package/lib/host/proactive/wire.d.ts +5 -0
  498. package/lib/host/proactive/wire.js +48 -0
  499. package/lib/host/proactive/wire.js.map +1 -0
  500. package/lib/host/proactive/work-continuation.d.ts +21 -0
  501. package/lib/host/proactive/work-continuation.js +66 -0
  502. package/lib/host/proactive/work-continuation.js.map +1 -0
  503. package/lib/host/proactive/workspace-process.d.ts +25 -0
  504. package/lib/host/proactive/workspace-process.js +80 -0
  505. package/lib/host/proactive/workspace-process.js.map +1 -0
  506. package/lib/host/proactive/workspace-repair.d.ts +425 -0
  507. package/lib/host/proactive/workspace-repair.js +352 -0
  508. package/lib/host/proactive/workspace-repair.js.map +1 -0
  509. package/lib/host/reference-memory/backend.d.ts +13 -0
  510. package/lib/host/reference-memory/backend.js +134 -0
  511. package/lib/host/reference-memory/backend.js.map +1 -0
  512. package/lib/host/reference-memory/cleanup-files.d.ts +7 -0
  513. package/lib/host/reference-memory/cleanup-files.js +36 -0
  514. package/lib/host/reference-memory/cleanup-files.js.map +1 -0
  515. package/lib/host/reference-memory/copies.d.ts +87 -0
  516. package/lib/host/reference-memory/copies.js +218 -0
  517. package/lib/host/reference-memory/copies.js.map +1 -0
  518. package/lib/host/reference-memory/files.d.ts +4 -0
  519. package/lib/host/reference-memory/files.js +43 -0
  520. package/lib/host/reference-memory/files.js.map +1 -0
  521. package/lib/host/reference-memory/model.d.ts +195 -0
  522. package/lib/host/reference-memory/model.js +66 -0
  523. package/lib/host/reference-memory/model.js.map +1 -0
  524. package/lib/host/reference-memory/service.d.ts +157 -0
  525. package/lib/host/reference-memory/service.js +124 -0
  526. package/lib/host/reference-memory/service.js.map +1 -0
  527. package/lib/host/reference-memory/writer.d.ts +55 -0
  528. package/lib/host/reference-memory/writer.js +265 -0
  529. package/lib/host/reference-memory/writer.js.map +1 -0
  530. package/lib/host/registry/identity.d.ts +3 -0
  531. package/lib/host/registry/identity.js +9 -0
  532. package/lib/host/registry/identity.js.map +1 -0
  533. package/lib/host/registry/lifecycle.d.ts +118 -0
  534. package/lib/host/registry/lifecycle.js +226 -0
  535. package/lib/host/registry/lifecycle.js.map +1 -0
  536. package/lib/host/registry/mutations.d.ts +7 -0
  537. package/lib/host/registry/mutations.js +25 -0
  538. package/lib/host/registry/mutations.js.map +1 -0
  539. package/lib/host/registry/presets.d.ts +13 -0
  540. package/lib/host/registry/presets.js +169 -0
  541. package/lib/host/registry/presets.js.map +1 -0
  542. package/lib/host/registry/types.d.ts +11 -0
  543. package/lib/host/registry/types.js +3 -0
  544. package/lib/host/registry/types.js.map +1 -0
  545. package/lib/host/registry-config.d.ts +66 -0
  546. package/lib/host/registry-config.js +123 -0
  547. package/lib/host/registry-config.js.map +1 -0
  548. package/lib/host/registry.d.ts +142 -0
  549. package/lib/host/registry.js +489 -0
  550. package/lib/host/registry.js.map +1 -0
  551. package/lib/host/shadow/budget.d.ts +106 -0
  552. package/lib/host/shadow/budget.js +112 -0
  553. package/lib/host/shadow/budget.js.map +1 -0
  554. package/lib/host/shadow/config.d.ts +13 -0
  555. package/lib/host/shadow/config.js +13 -0
  556. package/lib/host/shadow/config.js.map +1 -0
  557. package/lib/host/shadow/notification-adapter.d.ts +5 -0
  558. package/lib/host/shadow/notification-adapter.js +16 -0
  559. package/lib/host/shadow/notification-adapter.js.map +1 -0
  560. package/lib/host/shadow/planner.d.ts +39 -0
  561. package/lib/host/shadow/planner.js +76 -0
  562. package/lib/host/shadow/planner.js.map +1 -0
  563. package/lib/host/shadow/schedule-adapter.d.ts +23 -0
  564. package/lib/host/shadow/schedule-adapter.js +15 -0
  565. package/lib/host/shadow/schedule-adapter.js.map +1 -0
  566. package/lib/host/shadow/service.d.ts +23 -0
  567. package/lib/host/shadow/service.js +25 -0
  568. package/lib/host/shadow/service.js.map +1 -0
  569. package/lib/host/store.d.ts +25 -0
  570. package/lib/host/store.js +74 -0
  571. package/lib/host/store.js.map +1 -0
  572. package/lib/host/stores/activity.d.ts +35 -0
  573. package/lib/host/stores/activity.js +188 -0
  574. package/lib/host/stores/activity.js.map +1 -0
  575. package/lib/host/stores/bots.d.ts +21 -0
  576. package/lib/host/stores/bots.js +128 -0
  577. package/lib/host/stores/bots.js.map +1 -0
  578. package/lib/host/stores/domain.d.ts +343 -0
  579. package/lib/host/stores/domain.js +98 -0
  580. package/lib/host/stores/domain.js.map +1 -0
  581. package/lib/host/stores/memory.d.ts +29 -0
  582. package/lib/host/stores/memory.js +139 -0
  583. package/lib/host/stores/memory.js.map +1 -0
  584. package/lib/host/tools/bot-manage.d.ts +14 -0
  585. package/lib/host/tools/bot-manage.js +436 -0
  586. package/lib/host/tools/bot-manage.js.map +1 -0
  587. package/lib/host/workspace/remote.d.ts +194 -0
  588. package/lib/host/workspace/remote.js +98 -0
  589. package/lib/host/workspace/remote.js.map +1 -0
  590. package/lib/host/workspace/service.d.ts +185 -0
  591. package/lib/host/workspace/service.js +261 -0
  592. package/lib/host/workspace/service.js.map +1 -0
  593. package/lib/index.d.ts +10 -0
  594. package/lib/index.js +58 -0
  595. package/lib/index.js.map +1 -0
  596. package/lib/module-manifest.json +262 -0
  597. package/lib/proactive-coordinator/LICENSE +21 -0
  598. package/lib/proactive-coordinator/core.mjs +19067 -0
  599. package/lib/proactive-coordinator/main.mjs +22196 -0
  600. package/lib/proactive-coordinator/package.json +1 -0
  601. package/lib/proactive-coordinator/prompts/admission.md +68 -0
  602. package/lib/proactive-coordinator/prompts/cli.md +17 -0
  603. package/lib/proactive-coordinator/prompts/dispatch.md +59 -0
  604. package/lib/proactive-coordinator/prompts/handoff-orchestrator.md +4 -0
  605. package/lib/proactive-coordinator/prompts/handoff-worker.md +7 -0
  606. package/lib/proactive-coordinator/prompts/handoff.md +6 -0
  607. package/lib/proactive-coordinator/prompts/orchestrator.md +16 -0
  608. package/lib/proactive-coordinator/prompts/replies.md +35 -0
  609. package/lib/proactive-coordinator/prompts/shared.md +7 -0
  610. package/lib/proactive-coordinator/prompts/subscriptions.md +13 -0
  611. package/lib/proactive-coordinator/prompts/team/communication.md +97 -0
  612. package/lib/proactive-coordinator/prompts/team/delivery.md +28 -0
  613. package/lib/proactive-coordinator/prompts/team/scope.md +22 -0
  614. package/lib/proactive-coordinator/prompts/work.md +49 -0
  615. package/lib/proactive-coordinator/prompts/worker.md +10 -0
  616. package/lib/proactive-coordinator/provenance.json +7 -0
  617. package/lib/proactive-coordinator/skills/dsh-superagent-feishu/SKILL.md +12 -0
  618. package/lib/proactive-coordinator/skills/dsh-superagent-github/SKILL.md +14 -0
  619. package/lib/shared/activity-preview.d.ts +5 -0
  620. package/lib/shared/activity-preview.js +40 -0
  621. package/lib/shared/activity-preview.js.map +1 -0
  622. package/lib/shared/activity.d.ts +107 -0
  623. package/lib/shared/activity.js +50 -0
  624. package/lib/shared/activity.js.map +1 -0
  625. package/lib/shared/automation-contract.d.ts +1138 -0
  626. package/lib/shared/automation-contract.js +63 -0
  627. package/lib/shared/automation-contract.js.map +1 -0
  628. package/lib/shared/automation.d.ts +336 -0
  629. package/lib/shared/automation.js +244 -0
  630. package/lib/shared/automation.js.map +1 -0
  631. package/lib/shared/bot-brand.d.ts +20 -0
  632. package/lib/shared/bot-brand.js +26 -0
  633. package/lib/shared/bot-brand.js.map +1 -0
  634. package/lib/shared/capabilities-contract.d.ts +685 -0
  635. package/lib/shared/capabilities-contract.js +38 -0
  636. package/lib/shared/capabilities-contract.js.map +1 -0
  637. package/lib/shared/collaboration-contract.d.ts +614 -0
  638. package/lib/shared/collaboration-contract.js +52 -0
  639. package/lib/shared/collaboration-contract.js.map +1 -0
  640. package/lib/shared/collaboration.d.ts +132 -0
  641. package/lib/shared/collaboration.js +63 -0
  642. package/lib/shared/collaboration.js.map +1 -0
  643. package/lib/shared/connectors.d.ts +216 -0
  644. package/lib/shared/connectors.js +121 -0
  645. package/lib/shared/connectors.js.map +1 -0
  646. package/lib/shared/data-flow.d.ts +135 -0
  647. package/lib/shared/data-flow.js +53 -0
  648. package/lib/shared/data-flow.js.map +1 -0
  649. package/lib/shared/eval-budget.d.ts +100 -0
  650. package/lib/shared/eval-budget.js +34 -0
  651. package/lib/shared/eval-budget.js.map +1 -0
  652. package/lib/shared/group-recall-reads.d.ts +35 -0
  653. package/lib/shared/group-recall-reads.js +12 -0
  654. package/lib/shared/group-recall-reads.js.map +1 -0
  655. package/lib/shared/group-recall.d.ts +132 -0
  656. package/lib/shared/group-recall.js +52 -0
  657. package/lib/shared/group-recall.js.map +1 -0
  658. package/lib/shared/groups-contract.d.ts +4128 -0
  659. package/lib/shared/groups-contract.js +97 -0
  660. package/lib/shared/groups-contract.js.map +1 -0
  661. package/lib/shared/groups.d.ts +966 -0
  662. package/lib/shared/groups.js +240 -0
  663. package/lib/shared/groups.js.map +1 -0
  664. package/lib/shared/identity.d.ts +14 -0
  665. package/lib/shared/identity.js +13 -0
  666. package/lib/shared/identity.js.map +1 -0
  667. package/lib/shared/ids.d.ts +5 -0
  668. package/lib/shared/ids.js +6 -0
  669. package/lib/shared/ids.js.map +1 -0
  670. package/lib/shared/integrations-contract.d.ts +1916 -0
  671. package/lib/shared/integrations-contract.js +71 -0
  672. package/lib/shared/integrations-contract.js.map +1 -0
  673. package/lib/shared/integrations.d.ts +216 -0
  674. package/lib/shared/integrations.js +20 -0
  675. package/lib/shared/integrations.js.map +1 -0
  676. package/lib/shared/managed-flow.d.ts +199 -0
  677. package/lib/shared/managed-flow.js +15 -0
  678. package/lib/shared/managed-flow.js.map +1 -0
  679. package/lib/shared/memory-forget.d.ts +122 -0
  680. package/lib/shared/memory-forget.js +32 -0
  681. package/lib/shared/memory-forget.js.map +1 -0
  682. package/lib/shared/memory-management.d.ts +588 -0
  683. package/lib/shared/memory-management.js +40 -0
  684. package/lib/shared/memory-management.js.map +1 -0
  685. package/lib/shared/memory-ops.d.ts +274 -0
  686. package/lib/shared/memory-ops.js +35 -0
  687. package/lib/shared/memory-ops.js.map +1 -0
  688. package/lib/shared/memory-tool-names.d.ts +2 -0
  689. package/lib/shared/memory-tool-names.js +9 -0
  690. package/lib/shared/memory-tool-names.js.map +1 -0
  691. package/lib/shared/memory-v2.d.ts +268 -0
  692. package/lib/shared/memory-v2.js +51 -0
  693. package/lib/shared/memory-v2.js.map +1 -0
  694. package/lib/shared/messaging-contract.d.ts +161 -0
  695. package/lib/shared/messaging-contract.js +24 -0
  696. package/lib/shared/messaging-contract.js.map +1 -0
  697. package/lib/shared/messaging.d.ts +797 -0
  698. package/lib/shared/messaging.js +229 -0
  699. package/lib/shared/messaging.js.map +1 -0
  700. package/lib/shared/native-schedule.d.ts +35 -0
  701. package/lib/shared/native-schedule.js +25 -0
  702. package/lib/shared/native-schedule.js.map +1 -0
  703. package/lib/shared/notifications.d.ts +167 -0
  704. package/lib/shared/notifications.js +104 -0
  705. package/lib/shared/notifications.js.map +1 -0
  706. package/lib/shared/onboarding-source.d.ts +19 -0
  707. package/lib/shared/onboarding-source.js +9 -0
  708. package/lib/shared/onboarding-source.js.map +1 -0
  709. package/lib/shared/onboarding.d.ts +115 -0
  710. package/lib/shared/onboarding.js +14 -0
  711. package/lib/shared/onboarding.js.map +1 -0
  712. package/lib/shared/operation-errors.d.ts +15 -0
  713. package/lib/shared/operation-errors.js +15 -0
  714. package/lib/shared/operation-errors.js.map +1 -0
  715. package/lib/shared/proactive/activity.d.ts +152 -0
  716. package/lib/shared/proactive/activity.js +23 -0
  717. package/lib/shared/proactive/activity.js.map +1 -0
  718. package/lib/shared/proactive/document.d.ts +31 -0
  719. package/lib/shared/proactive/document.js +17 -0
  720. package/lib/shared/proactive/document.js.map +1 -0
  721. package/lib/shared/proactive/feedback.d.ts +2315 -0
  722. package/lib/shared/proactive/feedback.js +177 -0
  723. package/lib/shared/proactive/feedback.js.map +1 -0
  724. package/lib/shared/proactive/follow-up.d.ts +781 -0
  725. package/lib/shared/proactive/follow-up.js +164 -0
  726. package/lib/shared/proactive/follow-up.js.map +1 -0
  727. package/lib/shared/proactive/governance.d.ts +147 -0
  728. package/lib/shared/proactive/governance.js +92 -0
  729. package/lib/shared/proactive/governance.js.map +1 -0
  730. package/lib/shared/proactive/group-follow-up.d.ts +228 -0
  731. package/lib/shared/proactive/group-follow-up.js +24 -0
  732. package/lib/shared/proactive/group-follow-up.js.map +1 -0
  733. package/lib/shared/proactive/group-repair.d.ts +185 -0
  734. package/lib/shared/proactive/group-repair.js +95 -0
  735. package/lib/shared/proactive/group-repair.js.map +1 -0
  736. package/lib/shared/proactive/handoff.d.ts +17 -0
  737. package/lib/shared/proactive/handoff.js +15 -0
  738. package/lib/shared/proactive/handoff.js.map +1 -0
  739. package/lib/shared/proactive/method-evaluation.d.ts +187 -0
  740. package/lib/shared/proactive/method-evaluation.js +46 -0
  741. package/lib/shared/proactive/method-evaluation.js.map +1 -0
  742. package/lib/shared/proactive/method-package.d.ts +131 -0
  743. package/lib/shared/proactive/method-package.js +28 -0
  744. package/lib/shared/proactive/method-package.js.map +1 -0
  745. package/lib/shared/proactive/notices.d.ts +126 -0
  746. package/lib/shared/proactive/notices.js +64 -0
  747. package/lib/shared/proactive/notices.js.map +1 -0
  748. package/lib/shared/proactive/outcomes.d.ts +23 -0
  749. package/lib/shared/proactive/outcomes.js +41 -0
  750. package/lib/shared/proactive/outcomes.js.map +1 -0
  751. package/lib/shared/proactive/protocol.d.ts +12103 -0
  752. package/lib/shared/proactive/protocol.js +688 -0
  753. package/lib/shared/proactive/protocol.js.map +1 -0
  754. package/lib/shared/proactive/remote-contract.d.ts +29534 -0
  755. package/lib/shared/proactive/remote-contract.js +248 -0
  756. package/lib/shared/proactive/remote-contract.js.map +1 -0
  757. package/lib/shared/proactive/repair.d.ts +65 -0
  758. package/lib/shared/proactive/repair.js +55 -0
  759. package/lib/shared/proactive/repair.js.map +1 -0
  760. package/lib/shared/proactive/responsibility.d.ts +1085 -0
  761. package/lib/shared/proactive/responsibility.js +222 -0
  762. package/lib/shared/proactive/responsibility.js.map +1 -0
  763. package/lib/shared/proactive/setup.d.ts +167 -0
  764. package/lib/shared/proactive/setup.js +26 -0
  765. package/lib/shared/proactive/setup.js.map +1 -0
  766. package/lib/shared/proactive/work-progress.d.ts +14 -0
  767. package/lib/shared/proactive/work-progress.js +22 -0
  768. package/lib/shared/proactive/work-progress.js.map +1 -0
  769. package/lib/shared/proactive/work.d.ts +2887 -0
  770. package/lib/shared/proactive/work.js +250 -0
  771. package/lib/shared/proactive/work.js.map +1 -0
  772. package/lib/shared/proactive/workspace-repair.d.ts +283 -0
  773. package/lib/shared/proactive/workspace-repair.js +195 -0
  774. package/lib/shared/proactive/workspace-repair.js.map +1 -0
  775. package/lib/shared/reference-memory.d.ts +517 -0
  776. package/lib/shared/reference-memory.js +188 -0
  777. package/lib/shared/reference-memory.js.map +1 -0
  778. package/lib/shared/remote-contract.d.ts +4586 -0
  779. package/lib/shared/remote-contract.js +205 -0
  780. package/lib/shared/remote-contract.js.map +1 -0
  781. package/lib/shared/routine-outcomes.d.ts +20 -0
  782. package/lib/shared/routine-outcomes.js +9 -0
  783. package/lib/shared/routine-outcomes.js.map +1 -0
  784. package/lib/shared/schema.d.ts +785 -0
  785. package/lib/shared/schema.js +203 -0
  786. package/lib/shared/schema.js.map +1 -0
  787. package/lib/shared/secrets.d.ts +2 -0
  788. package/lib/shared/secrets.js +15 -0
  789. package/lib/shared/secrets.js.map +1 -0
  790. package/lib/shared/shadow.d.ts +12 -0
  791. package/lib/shared/shadow.js +8 -0
  792. package/lib/shared/shadow.js.map +1 -0
  793. package/lib/shared/version.d.ts +1 -0
  794. package/lib/shared/version.js +3 -0
  795. package/lib/shared/version.js.map +1 -0
  796. package/lib/shared/workspace-contract.d.ts +2284 -0
  797. package/lib/shared/workspace-contract.js +37 -0
  798. package/lib/shared/workspace-contract.js.map +1 -0
  799. package/lib/shared/workspace.d.ts +496 -0
  800. package/lib/shared/workspace.js +120 -0
  801. package/lib/shared/workspace.js.map +1 -0
  802. package/lib/typert.host.d.ts +12 -0
  803. package/lib/typert.host.js +13 -0
  804. package/lib/typert.host.js.map +1 -0
  805. package/lib/typert.remote-client.d.ts +4 -0
  806. package/lib/typert.remote-client.js +9 -0
  807. package/lib/typert.remote-client.js.map +1 -0
  808. package/locale/en.json +1644 -0
  809. package/locale/zh.json +1644 -0
  810. package/package.json +176 -3
@@ -0,0 +1,1916 @@
1
+ import { z } from 'zod';
2
+ import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol';
3
+ export declare const integrationsSpec: {
4
+ readonly package: "dsh-bot/integrations";
5
+ readonly methods: {
6
+ readonly 'dshBot.connectors/catalog': {
7
+ readonly parameters: readonly [];
8
+ readonly result: {
9
+ mode: "strict";
10
+ typeSymbol: string;
11
+ create: () => z.ZodObject<{
12
+ definitions: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodString;
14
+ label: z.ZodString;
15
+ templateId: z.ZodDefault<z.ZodEnum<{
16
+ custom: "custom";
17
+ github: "github";
18
+ filesystem: "filesystem";
19
+ browser: "browser";
20
+ notion: "notion";
21
+ }>>;
22
+ templateVersion: z.ZodDefault<z.ZodLiteral<1>>;
23
+ serverName: z.ZodString;
24
+ transport: z.ZodEnum<{
25
+ stdio: "stdio";
26
+ "streamable-http": "streamable-http";
27
+ }>;
28
+ command: z.ZodOptional<z.ZodString>;
29
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
30
+ url: z.ZodOptional<z.ZodString>;
31
+ literalEnv: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
32
+ LANG: "LANG";
33
+ LC_ALL: "LC_ALL";
34
+ TZ: "TZ";
35
+ NODE_ENV: "NODE_ENV";
36
+ }> & z.core.$partial, z.ZodString>>;
37
+ literalHeaders: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
38
+ Accept: "Accept";
39
+ "Content-Type": "Content-Type";
40
+ }> & z.core.$partial, z.ZodEnum<{
41
+ "application/json": "application/json";
42
+ "text/event-stream": "text/event-stream";
43
+ "application/json, text/event-stream": "application/json, text/event-stream";
44
+ }>>>;
45
+ credentialBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
46
+ destination: z.ZodEnum<{
47
+ env: "env";
48
+ header: "header";
49
+ }>;
50
+ key: z.ZodString;
51
+ credentialRef: z.ZodString;
52
+ format: z.ZodEnum<{
53
+ raw: "raw";
54
+ bearer: "bearer";
55
+ "basic-token": "basic-token";
56
+ }>;
57
+ }, z.core.$strict>>>;
58
+ enabled: z.ZodDefault<z.ZodBoolean>;
59
+ revision: z.ZodNumber;
60
+ createdAt: z.ZodNumber;
61
+ updatedAt: z.ZodNumber;
62
+ schemaVersion: z.ZodLiteral<1>;
63
+ }, z.core.$strict>>;
64
+ assignments: z.ZodArray<z.ZodObject<{
65
+ id: z.ZodString;
66
+ bot: z.ZodObject<{
67
+ botId: z.ZodString;
68
+ botCreatedAt: z.ZodNumber;
69
+ }, z.core.$strict>;
70
+ connectorId: z.ZodString;
71
+ enabled: z.ZodBoolean;
72
+ overrides: z.ZodDefault<z.ZodObject<{
73
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ literalEnv: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
75
+ LANG: "LANG";
76
+ LC_ALL: "LC_ALL";
77
+ TZ: "TZ";
78
+ NODE_ENV: "NODE_ENV";
79
+ }> & z.core.$partial, z.ZodString>>>;
80
+ literalHeaders: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
81
+ Accept: "Accept";
82
+ "Content-Type": "Content-Type";
83
+ }> & z.core.$partial, z.ZodEnum<{
84
+ "application/json": "application/json";
85
+ "text/event-stream": "text/event-stream";
86
+ "application/json, text/event-stream": "application/json, text/event-stream";
87
+ }>>>>;
88
+ }, z.core.$strict>>;
89
+ desiredRevision: z.ZodNumber;
90
+ revision: z.ZodNumber;
91
+ createdAt: z.ZodNumber;
92
+ updatedAt: z.ZodNumber;
93
+ schemaVersion: z.ZodLiteral<1>;
94
+ }, z.core.$strict>>;
95
+ runtime: z.ZodArray<z.ZodObject<{
96
+ assignmentId: z.ZodString;
97
+ sessionId: z.ZodString;
98
+ desiredRevision: z.ZodNumber;
99
+ appliedRevision: z.ZodOptional<z.ZodNumber>;
100
+ state: z.ZodEnum<{
101
+ pending: "pending";
102
+ connecting: "connecting";
103
+ ready: "ready";
104
+ unavailable: "unavailable";
105
+ disabled: "disabled";
106
+ }>;
107
+ reasonCode: z.ZodOptional<z.ZodEnum<{
108
+ saved: "saved";
109
+ busy: "busy";
110
+ "missing-credential": "missing-credential";
111
+ "initialization-failed": "initialization-failed";
112
+ "namespace-conflict": "namespace-conflict";
113
+ stopping: "stopping";
114
+ revoked: "revoked";
115
+ "agent-closed": "agent-closed";
116
+ }>>;
117
+ toolCount: z.ZodNumber;
118
+ }, z.core.$strict>>;
119
+ policies: z.ZodArray<z.ZodObject<{
120
+ id: z.ZodString;
121
+ owner: z.ZodObject<{
122
+ botId: z.ZodString;
123
+ botCreatedAt: z.ZodNumber;
124
+ }, z.core.$strict>;
125
+ channel: z.ZodEnum<{
126
+ "in-app": "in-app";
127
+ im: "im";
128
+ }>;
129
+ targetRef: z.ZodOptional<z.ZodString>;
130
+ enabled: z.ZodBoolean;
131
+ timezone: z.ZodString;
132
+ quietHours: z.ZodOptional<z.ZodObject<{
133
+ start: z.ZodString;
134
+ end: z.ZodString;
135
+ }, z.core.$strict>>;
136
+ dailyLimit: z.ZodNumber;
137
+ cooldownSec: z.ZodNumber;
138
+ authorization: z.ZodObject<{
139
+ mode: z.ZodEnum<{
140
+ ask: "ask";
141
+ preapproved: "preapproved";
142
+ }>;
143
+ }, z.core.$strict>;
144
+ scopeDigest: z.ZodString;
145
+ targetDigest: z.ZodString;
146
+ approvedAt: z.ZodOptional<z.ZodNumber>;
147
+ revision: z.ZodNumber;
148
+ createdAt: z.ZodNumber;
149
+ updatedAt: z.ZodNumber;
150
+ schemaVersion: z.ZodLiteral<1>;
151
+ }, z.core.$strict>>;
152
+ notifications: z.ZodArray<z.ZodObject<{
153
+ revision: z.ZodNumber;
154
+ createdAt: z.ZodNumber;
155
+ updatedAt: z.ZodNumber;
156
+ schemaVersion: z.ZodLiteral<1>;
157
+ id: z.ZodString;
158
+ operationId: z.ZodString;
159
+ flowId: z.ZodOptional<z.ZodUUID>;
160
+ reviewedDigest: z.ZodOptional<z.ZodString>;
161
+ owner: z.ZodObject<{
162
+ botId: z.ZodString;
163
+ botCreatedAt: z.ZodNumber;
164
+ }, z.core.$strict>;
165
+ policyId: z.ZodString;
166
+ policyRevision: z.ZodNumber;
167
+ targetDigest: z.ZodString;
168
+ scopeDigest: z.ZodString;
169
+ text: z.ZodString;
170
+ bodyDigest: z.ZodOptional<z.ZodString>;
171
+ redactedAt: z.ZodOptional<z.ZodNumber>;
172
+ source: z.ZodObject<{
173
+ kind: z.ZodEnum<{
174
+ tool: "tool";
175
+ "manual-run": "manual-run";
176
+ "group-turn": "group-turn";
177
+ schedule: "schedule";
178
+ proactive: "proactive";
179
+ "proactive-review": "proactive-review";
180
+ }>;
181
+ id: z.ZodString;
182
+ sessionId: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strict>;
184
+ state: z.ZodEnum<{
185
+ unknown: "unknown";
186
+ recorded: "recorded";
187
+ suppressed: "suppressed";
188
+ failed: "failed";
189
+ cancelled: "cancelled";
190
+ waiting_approval: "waiting_approval";
191
+ sending: "sending";
192
+ accepted: "accepted";
193
+ }>;
194
+ reasonCode: z.ZodOptional<z.ZodEnum<{
195
+ disabled: "disabled";
196
+ stopping: "stopping";
197
+ "quiet-hours": "quiet-hours";
198
+ "daily-limit": "daily-limit";
199
+ cooldown: "cooldown";
200
+ "approval-denied": "approval-denied";
201
+ changed: "changed";
202
+ unsupported: "unsupported";
203
+ "transport-failed": "transport-failed";
204
+ "recovery-needed": "recovery-needed";
205
+ }>>;
206
+ reservation: z.ZodOptional<z.ZodObject<{
207
+ at: z.ZodNumber;
208
+ day: z.ZodString;
209
+ }, z.core.$strict>>;
210
+ readAt: z.ZodOptional<z.ZodNumber>;
211
+ attemptId: z.ZodOptional<z.ZodString>;
212
+ platformMessageId: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strict>>;
214
+ unread: z.ZodNumber;
215
+ imSupported: z.ZodBoolean;
216
+ desktopSupported: z.ZodLiteral<false>;
217
+ defaults: z.ZodObject<{
218
+ dailyLimit: z.ZodNumber;
219
+ cooldownSec: z.ZodNumber;
220
+ }, z.core.$strict>;
221
+ }, z.core.$strict>;
222
+ encode: (v: unknown) => {
223
+ definitions: {
224
+ id: string;
225
+ label: string;
226
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
227
+ templateVersion: 1;
228
+ serverName: string;
229
+ transport: "stdio" | "streamable-http";
230
+ args: string[];
231
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
232
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
233
+ credentialBindings: {
234
+ destination: "env" | "header";
235
+ key: string;
236
+ credentialRef: string;
237
+ format: "raw" | "bearer" | "basic-token";
238
+ }[];
239
+ enabled: boolean;
240
+ revision: number;
241
+ createdAt: number;
242
+ updatedAt: number;
243
+ schemaVersion: 1;
244
+ command?: string | undefined;
245
+ url?: string | undefined;
246
+ }[];
247
+ assignments: {
248
+ id: string;
249
+ bot: {
250
+ botId: string;
251
+ botCreatedAt: number;
252
+ };
253
+ connectorId: string;
254
+ enabled: boolean;
255
+ overrides: {
256
+ args?: string[] | undefined;
257
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
258
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
259
+ };
260
+ desiredRevision: number;
261
+ revision: number;
262
+ createdAt: number;
263
+ updatedAt: number;
264
+ schemaVersion: 1;
265
+ }[];
266
+ runtime: {
267
+ assignmentId: string;
268
+ sessionId: string;
269
+ desiredRevision: number;
270
+ state: "pending" | "connecting" | "ready" | "unavailable" | "disabled";
271
+ toolCount: number;
272
+ appliedRevision?: number | undefined;
273
+ reasonCode?: "saved" | "busy" | "missing-credential" | "initialization-failed" | "namespace-conflict" | "stopping" | "revoked" | "agent-closed" | undefined;
274
+ }[];
275
+ policies: {
276
+ id: string;
277
+ owner: {
278
+ botId: string;
279
+ botCreatedAt: number;
280
+ };
281
+ channel: "in-app" | "im";
282
+ enabled: boolean;
283
+ timezone: string;
284
+ dailyLimit: number;
285
+ cooldownSec: number;
286
+ authorization: {
287
+ mode: "ask" | "preapproved";
288
+ };
289
+ scopeDigest: string;
290
+ targetDigest: string;
291
+ revision: number;
292
+ createdAt: number;
293
+ updatedAt: number;
294
+ schemaVersion: 1;
295
+ targetRef?: string | undefined;
296
+ quietHours?: {
297
+ start: string;
298
+ end: string;
299
+ } | undefined;
300
+ approvedAt?: number | undefined;
301
+ }[];
302
+ notifications: {
303
+ revision: number;
304
+ createdAt: number;
305
+ updatedAt: number;
306
+ schemaVersion: 1;
307
+ id: string;
308
+ operationId: string;
309
+ owner: {
310
+ botId: string;
311
+ botCreatedAt: number;
312
+ };
313
+ policyId: string;
314
+ policyRevision: number;
315
+ targetDigest: string;
316
+ scopeDigest: string;
317
+ text: string;
318
+ source: {
319
+ kind: "tool" | "manual-run" | "group-turn" | "schedule" | "proactive" | "proactive-review";
320
+ id: string;
321
+ sessionId?: string | undefined;
322
+ };
323
+ state: "unknown" | "recorded" | "suppressed" | "failed" | "cancelled" | "waiting_approval" | "sending" | "accepted";
324
+ flowId?: string | undefined;
325
+ reviewedDigest?: string | undefined;
326
+ bodyDigest?: string | undefined;
327
+ redactedAt?: number | undefined;
328
+ reasonCode?: "disabled" | "stopping" | "quiet-hours" | "daily-limit" | "cooldown" | "approval-denied" | "changed" | "unsupported" | "transport-failed" | "recovery-needed" | undefined;
329
+ reservation?: {
330
+ at: number;
331
+ day: string;
332
+ } | undefined;
333
+ readAt?: number | undefined;
334
+ attemptId?: string | undefined;
335
+ platformMessageId?: string | undefined;
336
+ }[];
337
+ unread: number;
338
+ imSupported: boolean;
339
+ desktopSupported: false;
340
+ defaults: {
341
+ dailyLimit: number;
342
+ cooldownSec: number;
343
+ };
344
+ };
345
+ decode: (v: unknown) => {
346
+ definitions: {
347
+ id: string;
348
+ label: string;
349
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
350
+ templateVersion: 1;
351
+ serverName: string;
352
+ transport: "stdio" | "streamable-http";
353
+ args: string[];
354
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
355
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
356
+ credentialBindings: {
357
+ destination: "env" | "header";
358
+ key: string;
359
+ credentialRef: string;
360
+ format: "raw" | "bearer" | "basic-token";
361
+ }[];
362
+ enabled: boolean;
363
+ revision: number;
364
+ createdAt: number;
365
+ updatedAt: number;
366
+ schemaVersion: 1;
367
+ command?: string | undefined;
368
+ url?: string | undefined;
369
+ }[];
370
+ assignments: {
371
+ id: string;
372
+ bot: {
373
+ botId: string;
374
+ botCreatedAt: number;
375
+ };
376
+ connectorId: string;
377
+ enabled: boolean;
378
+ overrides: {
379
+ args?: string[] | undefined;
380
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
381
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
382
+ };
383
+ desiredRevision: number;
384
+ revision: number;
385
+ createdAt: number;
386
+ updatedAt: number;
387
+ schemaVersion: 1;
388
+ }[];
389
+ runtime: {
390
+ assignmentId: string;
391
+ sessionId: string;
392
+ desiredRevision: number;
393
+ state: "pending" | "connecting" | "ready" | "unavailable" | "disabled";
394
+ toolCount: number;
395
+ appliedRevision?: number | undefined;
396
+ reasonCode?: "saved" | "busy" | "missing-credential" | "initialization-failed" | "namespace-conflict" | "stopping" | "revoked" | "agent-closed" | undefined;
397
+ }[];
398
+ policies: {
399
+ id: string;
400
+ owner: {
401
+ botId: string;
402
+ botCreatedAt: number;
403
+ };
404
+ channel: "in-app" | "im";
405
+ enabled: boolean;
406
+ timezone: string;
407
+ dailyLimit: number;
408
+ cooldownSec: number;
409
+ authorization: {
410
+ mode: "ask" | "preapproved";
411
+ };
412
+ scopeDigest: string;
413
+ targetDigest: string;
414
+ revision: number;
415
+ createdAt: number;
416
+ updatedAt: number;
417
+ schemaVersion: 1;
418
+ targetRef?: string | undefined;
419
+ quietHours?: {
420
+ start: string;
421
+ end: string;
422
+ } | undefined;
423
+ approvedAt?: number | undefined;
424
+ }[];
425
+ notifications: {
426
+ revision: number;
427
+ createdAt: number;
428
+ updatedAt: number;
429
+ schemaVersion: 1;
430
+ id: string;
431
+ operationId: string;
432
+ owner: {
433
+ botId: string;
434
+ botCreatedAt: number;
435
+ };
436
+ policyId: string;
437
+ policyRevision: number;
438
+ targetDigest: string;
439
+ scopeDigest: string;
440
+ text: string;
441
+ source: {
442
+ kind: "tool" | "manual-run" | "group-turn" | "schedule" | "proactive" | "proactive-review";
443
+ id: string;
444
+ sessionId?: string | undefined;
445
+ };
446
+ state: "unknown" | "recorded" | "suppressed" | "failed" | "cancelled" | "waiting_approval" | "sending" | "accepted";
447
+ flowId?: string | undefined;
448
+ reviewedDigest?: string | undefined;
449
+ bodyDigest?: string | undefined;
450
+ redactedAt?: number | undefined;
451
+ reasonCode?: "disabled" | "stopping" | "quiet-hours" | "daily-limit" | "cooldown" | "approval-denied" | "changed" | "unsupported" | "transport-failed" | "recovery-needed" | undefined;
452
+ reservation?: {
453
+ at: number;
454
+ day: string;
455
+ } | undefined;
456
+ readAt?: number | undefined;
457
+ attemptId?: string | undefined;
458
+ platformMessageId?: string | undefined;
459
+ }[];
460
+ unread: number;
461
+ imSupported: boolean;
462
+ desktopSupported: false;
463
+ defaults: {
464
+ dailyLimit: number;
465
+ cooldownSec: number;
466
+ };
467
+ };
468
+ };
469
+ readonly service: string;
470
+ readonly invocation: {
471
+ kind: "direct";
472
+ };
473
+ };
474
+ readonly 'dshBot.connectors/saveDefinition': {
475
+ readonly parameters: readonly [{
476
+ name: string;
477
+ source: "json";
478
+ codec: {
479
+ mode: "strict";
480
+ typeSymbol: string;
481
+ create: () => z.ZodObject<{
482
+ id: z.ZodString;
483
+ label: z.ZodString;
484
+ templateId: z.ZodDefault<z.ZodEnum<{
485
+ custom: "custom";
486
+ github: "github";
487
+ filesystem: "filesystem";
488
+ browser: "browser";
489
+ notion: "notion";
490
+ }>>;
491
+ templateVersion: z.ZodDefault<z.ZodLiteral<1>>;
492
+ serverName: z.ZodString;
493
+ transport: z.ZodEnum<{
494
+ stdio: "stdio";
495
+ "streamable-http": "streamable-http";
496
+ }>;
497
+ command: z.ZodOptional<z.ZodString>;
498
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
499
+ url: z.ZodOptional<z.ZodString>;
500
+ literalEnv: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
501
+ LANG: "LANG";
502
+ LC_ALL: "LC_ALL";
503
+ TZ: "TZ";
504
+ NODE_ENV: "NODE_ENV";
505
+ }> & z.core.$partial, z.ZodString>>;
506
+ literalHeaders: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
507
+ Accept: "Accept";
508
+ "Content-Type": "Content-Type";
509
+ }> & z.core.$partial, z.ZodEnum<{
510
+ "application/json": "application/json";
511
+ "text/event-stream": "text/event-stream";
512
+ "application/json, text/event-stream": "application/json, text/event-stream";
513
+ }>>>;
514
+ credentialBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
515
+ destination: z.ZodEnum<{
516
+ env: "env";
517
+ header: "header";
518
+ }>;
519
+ key: z.ZodString;
520
+ credentialRef: z.ZodString;
521
+ format: z.ZodEnum<{
522
+ raw: "raw";
523
+ bearer: "bearer";
524
+ "basic-token": "basic-token";
525
+ }>;
526
+ }, z.core.$strict>>>;
527
+ enabled: z.ZodDefault<z.ZodBoolean>;
528
+ }, z.core.$strict>;
529
+ encode: (v: unknown) => {
530
+ id: string;
531
+ label: string;
532
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
533
+ templateVersion: 1;
534
+ serverName: string;
535
+ transport: "stdio" | "streamable-http";
536
+ args: string[];
537
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
538
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
539
+ credentialBindings: {
540
+ destination: "env" | "header";
541
+ key: string;
542
+ credentialRef: string;
543
+ format: "raw" | "bearer" | "basic-token";
544
+ }[];
545
+ enabled: boolean;
546
+ command?: string | undefined;
547
+ url?: string | undefined;
548
+ };
549
+ decode: (v: unknown) => {
550
+ id: string;
551
+ label: string;
552
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
553
+ templateVersion: 1;
554
+ serverName: string;
555
+ transport: "stdio" | "streamable-http";
556
+ args: string[];
557
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
558
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
559
+ credentialBindings: {
560
+ destination: "env" | "header";
561
+ key: string;
562
+ credentialRef: string;
563
+ format: "raw" | "bearer" | "basic-token";
564
+ }[];
565
+ enabled: boolean;
566
+ command?: string | undefined;
567
+ url?: string | undefined;
568
+ };
569
+ };
570
+ strictCodec: {
571
+ mode: "strict";
572
+ typeSymbol: string;
573
+ create: () => z.ZodObject<{
574
+ id: z.ZodString;
575
+ label: z.ZodString;
576
+ templateId: z.ZodDefault<z.ZodEnum<{
577
+ custom: "custom";
578
+ github: "github";
579
+ filesystem: "filesystem";
580
+ browser: "browser";
581
+ notion: "notion";
582
+ }>>;
583
+ templateVersion: z.ZodDefault<z.ZodLiteral<1>>;
584
+ serverName: z.ZodString;
585
+ transport: z.ZodEnum<{
586
+ stdio: "stdio";
587
+ "streamable-http": "streamable-http";
588
+ }>;
589
+ command: z.ZodOptional<z.ZodString>;
590
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
591
+ url: z.ZodOptional<z.ZodString>;
592
+ literalEnv: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
593
+ LANG: "LANG";
594
+ LC_ALL: "LC_ALL";
595
+ TZ: "TZ";
596
+ NODE_ENV: "NODE_ENV";
597
+ }> & z.core.$partial, z.ZodString>>;
598
+ literalHeaders: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
599
+ Accept: "Accept";
600
+ "Content-Type": "Content-Type";
601
+ }> & z.core.$partial, z.ZodEnum<{
602
+ "application/json": "application/json";
603
+ "text/event-stream": "text/event-stream";
604
+ "application/json, text/event-stream": "application/json, text/event-stream";
605
+ }>>>;
606
+ credentialBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
607
+ destination: z.ZodEnum<{
608
+ env: "env";
609
+ header: "header";
610
+ }>;
611
+ key: z.ZodString;
612
+ credentialRef: z.ZodString;
613
+ format: z.ZodEnum<{
614
+ raw: "raw";
615
+ bearer: "bearer";
616
+ "basic-token": "basic-token";
617
+ }>;
618
+ }, z.core.$strict>>>;
619
+ enabled: z.ZodDefault<z.ZodBoolean>;
620
+ }, z.core.$strict>;
621
+ encode: (v: unknown) => {
622
+ id: string;
623
+ label: string;
624
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
625
+ templateVersion: 1;
626
+ serverName: string;
627
+ transport: "stdio" | "streamable-http";
628
+ args: string[];
629
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
630
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
631
+ credentialBindings: {
632
+ destination: "env" | "header";
633
+ key: string;
634
+ credentialRef: string;
635
+ format: "raw" | "bearer" | "basic-token";
636
+ }[];
637
+ enabled: boolean;
638
+ command?: string | undefined;
639
+ url?: string | undefined;
640
+ };
641
+ decode: (v: unknown) => {
642
+ id: string;
643
+ label: string;
644
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
645
+ templateVersion: 1;
646
+ serverName: string;
647
+ transport: "stdio" | "streamable-http";
648
+ args: string[];
649
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
650
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
651
+ credentialBindings: {
652
+ destination: "env" | "header";
653
+ key: string;
654
+ credentialRef: string;
655
+ format: "raw" | "bearer" | "basic-token";
656
+ }[];
657
+ enabled: boolean;
658
+ command?: string | undefined;
659
+ url?: string | undefined;
660
+ };
661
+ };
662
+ }, {
663
+ name: string;
664
+ source: "json";
665
+ codec: {
666
+ mode: "strict";
667
+ typeSymbol: string;
668
+ create: () => z.ZodNumber;
669
+ encode: (v: unknown) => number;
670
+ decode: (v: unknown) => number;
671
+ };
672
+ strictCodec: {
673
+ mode: "strict";
674
+ typeSymbol: string;
675
+ create: () => z.ZodNumber;
676
+ encode: (v: unknown) => number;
677
+ decode: (v: unknown) => number;
678
+ };
679
+ }];
680
+ readonly result: {
681
+ mode: "strict";
682
+ typeSymbol: string;
683
+ create: () => z.ZodObject<{
684
+ id: z.ZodString;
685
+ label: z.ZodString;
686
+ templateId: z.ZodDefault<z.ZodEnum<{
687
+ custom: "custom";
688
+ github: "github";
689
+ filesystem: "filesystem";
690
+ browser: "browser";
691
+ notion: "notion";
692
+ }>>;
693
+ templateVersion: z.ZodDefault<z.ZodLiteral<1>>;
694
+ serverName: z.ZodString;
695
+ transport: z.ZodEnum<{
696
+ stdio: "stdio";
697
+ "streamable-http": "streamable-http";
698
+ }>;
699
+ command: z.ZodOptional<z.ZodString>;
700
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
701
+ url: z.ZodOptional<z.ZodString>;
702
+ literalEnv: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
703
+ LANG: "LANG";
704
+ LC_ALL: "LC_ALL";
705
+ TZ: "TZ";
706
+ NODE_ENV: "NODE_ENV";
707
+ }> & z.core.$partial, z.ZodString>>;
708
+ literalHeaders: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
709
+ Accept: "Accept";
710
+ "Content-Type": "Content-Type";
711
+ }> & z.core.$partial, z.ZodEnum<{
712
+ "application/json": "application/json";
713
+ "text/event-stream": "text/event-stream";
714
+ "application/json, text/event-stream": "application/json, text/event-stream";
715
+ }>>>;
716
+ credentialBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
717
+ destination: z.ZodEnum<{
718
+ env: "env";
719
+ header: "header";
720
+ }>;
721
+ key: z.ZodString;
722
+ credentialRef: z.ZodString;
723
+ format: z.ZodEnum<{
724
+ raw: "raw";
725
+ bearer: "bearer";
726
+ "basic-token": "basic-token";
727
+ }>;
728
+ }, z.core.$strict>>>;
729
+ enabled: z.ZodDefault<z.ZodBoolean>;
730
+ revision: z.ZodNumber;
731
+ createdAt: z.ZodNumber;
732
+ updatedAt: z.ZodNumber;
733
+ schemaVersion: z.ZodLiteral<1>;
734
+ }, z.core.$strict>;
735
+ encode: (v: unknown) => {
736
+ id: string;
737
+ label: string;
738
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
739
+ templateVersion: 1;
740
+ serverName: string;
741
+ transport: "stdio" | "streamable-http";
742
+ args: string[];
743
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
744
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
745
+ credentialBindings: {
746
+ destination: "env" | "header";
747
+ key: string;
748
+ credentialRef: string;
749
+ format: "raw" | "bearer" | "basic-token";
750
+ }[];
751
+ enabled: boolean;
752
+ revision: number;
753
+ createdAt: number;
754
+ updatedAt: number;
755
+ schemaVersion: 1;
756
+ command?: string | undefined;
757
+ url?: string | undefined;
758
+ };
759
+ decode: (v: unknown) => {
760
+ id: string;
761
+ label: string;
762
+ templateId: "custom" | "github" | "filesystem" | "browser" | "notion";
763
+ templateVersion: 1;
764
+ serverName: string;
765
+ transport: "stdio" | "streamable-http";
766
+ args: string[];
767
+ literalEnv: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>>;
768
+ literalHeaders: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">>;
769
+ credentialBindings: {
770
+ destination: "env" | "header";
771
+ key: string;
772
+ credentialRef: string;
773
+ format: "raw" | "bearer" | "basic-token";
774
+ }[];
775
+ enabled: boolean;
776
+ revision: number;
777
+ createdAt: number;
778
+ updatedAt: number;
779
+ schemaVersion: 1;
780
+ command?: string | undefined;
781
+ url?: string | undefined;
782
+ };
783
+ };
784
+ readonly service: string;
785
+ readonly invocation: {
786
+ kind: "direct";
787
+ };
788
+ };
789
+ readonly 'dshBot.connectors/saveAssignment': {
790
+ readonly parameters: readonly [{
791
+ name: string;
792
+ source: "json";
793
+ codec: {
794
+ mode: "strict";
795
+ typeSymbol: string;
796
+ create: () => z.ZodObject<{
797
+ id: z.ZodString;
798
+ bot: z.ZodObject<{
799
+ botId: z.ZodString;
800
+ botCreatedAt: z.ZodNumber;
801
+ }, z.core.$strict>;
802
+ connectorId: z.ZodString;
803
+ enabled: z.ZodBoolean;
804
+ overrides: z.ZodDefault<z.ZodObject<{
805
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
806
+ literalEnv: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
807
+ LANG: "LANG";
808
+ LC_ALL: "LC_ALL";
809
+ TZ: "TZ";
810
+ NODE_ENV: "NODE_ENV";
811
+ }> & z.core.$partial, z.ZodString>>>;
812
+ literalHeaders: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
813
+ Accept: "Accept";
814
+ "Content-Type": "Content-Type";
815
+ }> & z.core.$partial, z.ZodEnum<{
816
+ "application/json": "application/json";
817
+ "text/event-stream": "text/event-stream";
818
+ "application/json, text/event-stream": "application/json, text/event-stream";
819
+ }>>>>;
820
+ }, z.core.$strict>>;
821
+ }, z.core.$strict>;
822
+ encode: (v: unknown) => {
823
+ id: string;
824
+ bot: {
825
+ botId: string;
826
+ botCreatedAt: number;
827
+ };
828
+ connectorId: string;
829
+ enabled: boolean;
830
+ overrides: {
831
+ args?: string[] | undefined;
832
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
833
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
834
+ };
835
+ };
836
+ decode: (v: unknown) => {
837
+ id: string;
838
+ bot: {
839
+ botId: string;
840
+ botCreatedAt: number;
841
+ };
842
+ connectorId: string;
843
+ enabled: boolean;
844
+ overrides: {
845
+ args?: string[] | undefined;
846
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
847
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
848
+ };
849
+ };
850
+ };
851
+ strictCodec: {
852
+ mode: "strict";
853
+ typeSymbol: string;
854
+ create: () => z.ZodObject<{
855
+ id: z.ZodString;
856
+ bot: z.ZodObject<{
857
+ botId: z.ZodString;
858
+ botCreatedAt: z.ZodNumber;
859
+ }, z.core.$strict>;
860
+ connectorId: z.ZodString;
861
+ enabled: z.ZodBoolean;
862
+ overrides: z.ZodDefault<z.ZodObject<{
863
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
864
+ literalEnv: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
865
+ LANG: "LANG";
866
+ LC_ALL: "LC_ALL";
867
+ TZ: "TZ";
868
+ NODE_ENV: "NODE_ENV";
869
+ }> & z.core.$partial, z.ZodString>>>;
870
+ literalHeaders: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
871
+ Accept: "Accept";
872
+ "Content-Type": "Content-Type";
873
+ }> & z.core.$partial, z.ZodEnum<{
874
+ "application/json": "application/json";
875
+ "text/event-stream": "text/event-stream";
876
+ "application/json, text/event-stream": "application/json, text/event-stream";
877
+ }>>>>;
878
+ }, z.core.$strict>>;
879
+ }, z.core.$strict>;
880
+ encode: (v: unknown) => {
881
+ id: string;
882
+ bot: {
883
+ botId: string;
884
+ botCreatedAt: number;
885
+ };
886
+ connectorId: string;
887
+ enabled: boolean;
888
+ overrides: {
889
+ args?: string[] | undefined;
890
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
891
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
892
+ };
893
+ };
894
+ decode: (v: unknown) => {
895
+ id: string;
896
+ bot: {
897
+ botId: string;
898
+ botCreatedAt: number;
899
+ };
900
+ connectorId: string;
901
+ enabled: boolean;
902
+ overrides: {
903
+ args?: string[] | undefined;
904
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
905
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
906
+ };
907
+ };
908
+ };
909
+ }, {
910
+ name: string;
911
+ source: "json";
912
+ codec: {
913
+ mode: "strict";
914
+ typeSymbol: string;
915
+ create: () => z.ZodNumber;
916
+ encode: (v: unknown) => number;
917
+ decode: (v: unknown) => number;
918
+ };
919
+ strictCodec: {
920
+ mode: "strict";
921
+ typeSymbol: string;
922
+ create: () => z.ZodNumber;
923
+ encode: (v: unknown) => number;
924
+ decode: (v: unknown) => number;
925
+ };
926
+ }];
927
+ readonly result: {
928
+ mode: "strict";
929
+ typeSymbol: string;
930
+ create: () => z.ZodObject<{
931
+ id: z.ZodString;
932
+ bot: z.ZodObject<{
933
+ botId: z.ZodString;
934
+ botCreatedAt: z.ZodNumber;
935
+ }, z.core.$strict>;
936
+ connectorId: z.ZodString;
937
+ enabled: z.ZodBoolean;
938
+ overrides: z.ZodDefault<z.ZodObject<{
939
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
940
+ literalEnv: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
941
+ LANG: "LANG";
942
+ LC_ALL: "LC_ALL";
943
+ TZ: "TZ";
944
+ NODE_ENV: "NODE_ENV";
945
+ }> & z.core.$partial, z.ZodString>>>;
946
+ literalHeaders: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodEnum<{
947
+ Accept: "Accept";
948
+ "Content-Type": "Content-Type";
949
+ }> & z.core.$partial, z.ZodEnum<{
950
+ "application/json": "application/json";
951
+ "text/event-stream": "text/event-stream";
952
+ "application/json, text/event-stream": "application/json, text/event-stream";
953
+ }>>>>;
954
+ }, z.core.$strict>>;
955
+ desiredRevision: z.ZodNumber;
956
+ revision: z.ZodNumber;
957
+ createdAt: z.ZodNumber;
958
+ updatedAt: z.ZodNumber;
959
+ schemaVersion: z.ZodLiteral<1>;
960
+ }, z.core.$strict>;
961
+ encode: (v: unknown) => {
962
+ id: string;
963
+ bot: {
964
+ botId: string;
965
+ botCreatedAt: number;
966
+ };
967
+ connectorId: string;
968
+ enabled: boolean;
969
+ overrides: {
970
+ args?: string[] | undefined;
971
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
972
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
973
+ };
974
+ desiredRevision: number;
975
+ revision: number;
976
+ createdAt: number;
977
+ updatedAt: number;
978
+ schemaVersion: 1;
979
+ };
980
+ decode: (v: unknown) => {
981
+ id: string;
982
+ bot: {
983
+ botId: string;
984
+ botCreatedAt: number;
985
+ };
986
+ connectorId: string;
987
+ enabled: boolean;
988
+ overrides: {
989
+ args?: string[] | undefined;
990
+ literalEnv?: Partial<Record<"LANG" | "LC_ALL" | "TZ" | "NODE_ENV", string>> | undefined;
991
+ literalHeaders?: Partial<Record<"Accept" | "Content-Type", "application/json" | "text/event-stream" | "application/json, text/event-stream">> | undefined;
992
+ };
993
+ desiredRevision: number;
994
+ revision: number;
995
+ createdAt: number;
996
+ updatedAt: number;
997
+ schemaVersion: 1;
998
+ };
999
+ };
1000
+ readonly service: string;
1001
+ readonly invocation: {
1002
+ kind: "direct";
1003
+ };
1004
+ };
1005
+ readonly 'dshBot.connectors/applyIdle': {
1006
+ readonly parameters: readonly [{
1007
+ name: string;
1008
+ source: "json";
1009
+ codec: {
1010
+ mode: "strict";
1011
+ typeSymbol: string;
1012
+ create: () => z.ZodObject<{
1013
+ botId: z.ZodString;
1014
+ botCreatedAt: z.ZodNumber;
1015
+ }, z.core.$strict>;
1016
+ encode: (v: unknown) => {
1017
+ botId: string;
1018
+ botCreatedAt: number;
1019
+ };
1020
+ decode: (v: unknown) => {
1021
+ botId: string;
1022
+ botCreatedAt: number;
1023
+ };
1024
+ };
1025
+ strictCodec: {
1026
+ mode: "strict";
1027
+ typeSymbol: string;
1028
+ create: () => z.ZodObject<{
1029
+ botId: z.ZodString;
1030
+ botCreatedAt: z.ZodNumber;
1031
+ }, z.core.$strict>;
1032
+ encode: (v: unknown) => {
1033
+ botId: string;
1034
+ botCreatedAt: number;
1035
+ };
1036
+ decode: (v: unknown) => {
1037
+ botId: string;
1038
+ botCreatedAt: number;
1039
+ };
1040
+ };
1041
+ }];
1042
+ readonly result: {
1043
+ mode: "strict";
1044
+ typeSymbol: string;
1045
+ create: () => z.ZodArray<z.ZodObject<{
1046
+ assignmentId: z.ZodString;
1047
+ sessionId: z.ZodString;
1048
+ desiredRevision: z.ZodNumber;
1049
+ appliedRevision: z.ZodOptional<z.ZodNumber>;
1050
+ state: z.ZodEnum<{
1051
+ pending: "pending";
1052
+ connecting: "connecting";
1053
+ ready: "ready";
1054
+ unavailable: "unavailable";
1055
+ disabled: "disabled";
1056
+ }>;
1057
+ reasonCode: z.ZodOptional<z.ZodEnum<{
1058
+ saved: "saved";
1059
+ busy: "busy";
1060
+ "missing-credential": "missing-credential";
1061
+ "initialization-failed": "initialization-failed";
1062
+ "namespace-conflict": "namespace-conflict";
1063
+ stopping: "stopping";
1064
+ revoked: "revoked";
1065
+ "agent-closed": "agent-closed";
1066
+ }>>;
1067
+ toolCount: z.ZodNumber;
1068
+ }, z.core.$strict>>;
1069
+ encode: (v: unknown) => {
1070
+ assignmentId: string;
1071
+ sessionId: string;
1072
+ desiredRevision: number;
1073
+ state: "pending" | "connecting" | "ready" | "unavailable" | "disabled";
1074
+ toolCount: number;
1075
+ appliedRevision?: number | undefined;
1076
+ reasonCode?: "saved" | "busy" | "missing-credential" | "initialization-failed" | "namespace-conflict" | "stopping" | "revoked" | "agent-closed" | undefined;
1077
+ }[];
1078
+ decode: (v: unknown) => {
1079
+ assignmentId: string;
1080
+ sessionId: string;
1081
+ desiredRevision: number;
1082
+ state: "pending" | "connecting" | "ready" | "unavailable" | "disabled";
1083
+ toolCount: number;
1084
+ appliedRevision?: number | undefined;
1085
+ reasonCode?: "saved" | "busy" | "missing-credential" | "initialization-failed" | "namespace-conflict" | "stopping" | "revoked" | "agent-closed" | undefined;
1086
+ }[];
1087
+ };
1088
+ readonly service: string;
1089
+ readonly invocation: {
1090
+ kind: "direct";
1091
+ };
1092
+ };
1093
+ readonly 'dshBot.connectors/importLegacy': {
1094
+ readonly parameters: readonly [{
1095
+ name: string;
1096
+ source: "json";
1097
+ codec: {
1098
+ mode: "strict";
1099
+ typeSymbol: string;
1100
+ create: () => z.ZodObject<{
1101
+ botId: z.ZodString;
1102
+ botCreatedAt: z.ZodNumber;
1103
+ }, z.core.$strict>;
1104
+ encode: (v: unknown) => {
1105
+ botId: string;
1106
+ botCreatedAt: number;
1107
+ };
1108
+ decode: (v: unknown) => {
1109
+ botId: string;
1110
+ botCreatedAt: number;
1111
+ };
1112
+ };
1113
+ strictCodec: {
1114
+ mode: "strict";
1115
+ typeSymbol: string;
1116
+ create: () => z.ZodObject<{
1117
+ botId: z.ZodString;
1118
+ botCreatedAt: z.ZodNumber;
1119
+ }, z.core.$strict>;
1120
+ encode: (v: unknown) => {
1121
+ botId: string;
1122
+ botCreatedAt: number;
1123
+ };
1124
+ decode: (v: unknown) => {
1125
+ botId: string;
1126
+ botCreatedAt: number;
1127
+ };
1128
+ };
1129
+ }];
1130
+ readonly result: {
1131
+ mode: "strict";
1132
+ typeSymbol: string;
1133
+ create: () => z.ZodObject<{
1134
+ revision: z.ZodNumber;
1135
+ createdAt: z.ZodNumber;
1136
+ updatedAt: z.ZodNumber;
1137
+ schemaVersion: z.ZodLiteral<1>;
1138
+ id: z.ZodString;
1139
+ bot: z.ZodObject<{
1140
+ botId: z.ZodString;
1141
+ botCreatedAt: z.ZodNumber;
1142
+ }, z.core.$strict>;
1143
+ digest: z.ZodString;
1144
+ assignmentIds: z.ZodArray<z.ZodString>;
1145
+ }, z.core.$strict>;
1146
+ encode: (v: unknown) => {
1147
+ revision: number;
1148
+ createdAt: number;
1149
+ updatedAt: number;
1150
+ schemaVersion: 1;
1151
+ id: string;
1152
+ bot: {
1153
+ botId: string;
1154
+ botCreatedAt: number;
1155
+ };
1156
+ digest: string;
1157
+ assignmentIds: string[];
1158
+ };
1159
+ decode: (v: unknown) => {
1160
+ revision: number;
1161
+ createdAt: number;
1162
+ updatedAt: number;
1163
+ schemaVersion: 1;
1164
+ id: string;
1165
+ bot: {
1166
+ botId: string;
1167
+ botCreatedAt: number;
1168
+ };
1169
+ digest: string;
1170
+ assignmentIds: string[];
1171
+ };
1172
+ };
1173
+ readonly service: string;
1174
+ readonly invocation: {
1175
+ kind: "direct";
1176
+ };
1177
+ };
1178
+ readonly 'dshBot.notifications/savePolicy': {
1179
+ readonly service: "dshBotNotificationRemote";
1180
+ readonly parameters: readonly [{
1181
+ name: string;
1182
+ source: "json";
1183
+ codec: {
1184
+ mode: "strict";
1185
+ typeSymbol: string;
1186
+ create: () => z.ZodObject<{
1187
+ id: z.ZodString;
1188
+ owner: z.ZodObject<{
1189
+ botId: z.ZodString;
1190
+ botCreatedAt: z.ZodNumber;
1191
+ }, z.core.$strict>;
1192
+ channel: z.ZodEnum<{
1193
+ "in-app": "in-app";
1194
+ im: "im";
1195
+ }>;
1196
+ targetRef: z.ZodOptional<z.ZodString>;
1197
+ enabled: z.ZodBoolean;
1198
+ timezone: z.ZodString;
1199
+ quietHours: z.ZodOptional<z.ZodObject<{
1200
+ start: z.ZodString;
1201
+ end: z.ZodString;
1202
+ }, z.core.$strict>>;
1203
+ dailyLimit: z.ZodNumber;
1204
+ cooldownSec: z.ZodNumber;
1205
+ authorization: z.ZodObject<{
1206
+ mode: z.ZodEnum<{
1207
+ ask: "ask";
1208
+ preapproved: "preapproved";
1209
+ }>;
1210
+ }, z.core.$strict>;
1211
+ }, z.core.$strict>;
1212
+ encode: (v: unknown) => {
1213
+ id: string;
1214
+ owner: {
1215
+ botId: string;
1216
+ botCreatedAt: number;
1217
+ };
1218
+ channel: "in-app" | "im";
1219
+ enabled: boolean;
1220
+ timezone: string;
1221
+ dailyLimit: number;
1222
+ cooldownSec: number;
1223
+ authorization: {
1224
+ mode: "ask" | "preapproved";
1225
+ };
1226
+ targetRef?: string | undefined;
1227
+ quietHours?: {
1228
+ start: string;
1229
+ end: string;
1230
+ } | undefined;
1231
+ };
1232
+ decode: (v: unknown) => {
1233
+ id: string;
1234
+ owner: {
1235
+ botId: string;
1236
+ botCreatedAt: number;
1237
+ };
1238
+ channel: "in-app" | "im";
1239
+ enabled: boolean;
1240
+ timezone: string;
1241
+ dailyLimit: number;
1242
+ cooldownSec: number;
1243
+ authorization: {
1244
+ mode: "ask" | "preapproved";
1245
+ };
1246
+ targetRef?: string | undefined;
1247
+ quietHours?: {
1248
+ start: string;
1249
+ end: string;
1250
+ } | undefined;
1251
+ };
1252
+ };
1253
+ strictCodec: {
1254
+ mode: "strict";
1255
+ typeSymbol: string;
1256
+ create: () => z.ZodObject<{
1257
+ id: z.ZodString;
1258
+ owner: z.ZodObject<{
1259
+ botId: z.ZodString;
1260
+ botCreatedAt: z.ZodNumber;
1261
+ }, z.core.$strict>;
1262
+ channel: z.ZodEnum<{
1263
+ "in-app": "in-app";
1264
+ im: "im";
1265
+ }>;
1266
+ targetRef: z.ZodOptional<z.ZodString>;
1267
+ enabled: z.ZodBoolean;
1268
+ timezone: z.ZodString;
1269
+ quietHours: z.ZodOptional<z.ZodObject<{
1270
+ start: z.ZodString;
1271
+ end: z.ZodString;
1272
+ }, z.core.$strict>>;
1273
+ dailyLimit: z.ZodNumber;
1274
+ cooldownSec: z.ZodNumber;
1275
+ authorization: z.ZodObject<{
1276
+ mode: z.ZodEnum<{
1277
+ ask: "ask";
1278
+ preapproved: "preapproved";
1279
+ }>;
1280
+ }, z.core.$strict>;
1281
+ }, z.core.$strict>;
1282
+ encode: (v: unknown) => {
1283
+ id: string;
1284
+ owner: {
1285
+ botId: string;
1286
+ botCreatedAt: number;
1287
+ };
1288
+ channel: "in-app" | "im";
1289
+ enabled: boolean;
1290
+ timezone: string;
1291
+ dailyLimit: number;
1292
+ cooldownSec: number;
1293
+ authorization: {
1294
+ mode: "ask" | "preapproved";
1295
+ };
1296
+ targetRef?: string | undefined;
1297
+ quietHours?: {
1298
+ start: string;
1299
+ end: string;
1300
+ } | undefined;
1301
+ };
1302
+ decode: (v: unknown) => {
1303
+ id: string;
1304
+ owner: {
1305
+ botId: string;
1306
+ botCreatedAt: number;
1307
+ };
1308
+ channel: "in-app" | "im";
1309
+ enabled: boolean;
1310
+ timezone: string;
1311
+ dailyLimit: number;
1312
+ cooldownSec: number;
1313
+ authorization: {
1314
+ mode: "ask" | "preapproved";
1315
+ };
1316
+ targetRef?: string | undefined;
1317
+ quietHours?: {
1318
+ start: string;
1319
+ end: string;
1320
+ } | undefined;
1321
+ };
1322
+ };
1323
+ }, {
1324
+ name: string;
1325
+ source: "json";
1326
+ codec: {
1327
+ mode: "strict";
1328
+ typeSymbol: string;
1329
+ create: () => z.ZodNumber;
1330
+ encode: (v: unknown) => number;
1331
+ decode: (v: unknown) => number;
1332
+ };
1333
+ strictCodec: {
1334
+ mode: "strict";
1335
+ typeSymbol: string;
1336
+ create: () => z.ZodNumber;
1337
+ encode: (v: unknown) => number;
1338
+ decode: (v: unknown) => number;
1339
+ };
1340
+ }, {
1341
+ name: string;
1342
+ source: "json";
1343
+ codec: {
1344
+ mode: "strict";
1345
+ typeSymbol: string;
1346
+ create: () => z.ZodBoolean;
1347
+ encode: (v: unknown) => boolean;
1348
+ decode: (v: unknown) => boolean;
1349
+ };
1350
+ strictCodec: {
1351
+ mode: "strict";
1352
+ typeSymbol: string;
1353
+ create: () => z.ZodBoolean;
1354
+ encode: (v: unknown) => boolean;
1355
+ decode: (v: unknown) => boolean;
1356
+ };
1357
+ }];
1358
+ readonly result: {
1359
+ mode: "strict";
1360
+ typeSymbol: string;
1361
+ create: () => z.ZodObject<{
1362
+ id: z.ZodString;
1363
+ owner: z.ZodObject<{
1364
+ botId: z.ZodString;
1365
+ botCreatedAt: z.ZodNumber;
1366
+ }, z.core.$strict>;
1367
+ channel: z.ZodEnum<{
1368
+ "in-app": "in-app";
1369
+ im: "im";
1370
+ }>;
1371
+ targetRef: z.ZodOptional<z.ZodString>;
1372
+ enabled: z.ZodBoolean;
1373
+ timezone: z.ZodString;
1374
+ quietHours: z.ZodOptional<z.ZodObject<{
1375
+ start: z.ZodString;
1376
+ end: z.ZodString;
1377
+ }, z.core.$strict>>;
1378
+ dailyLimit: z.ZodNumber;
1379
+ cooldownSec: z.ZodNumber;
1380
+ authorization: z.ZodObject<{
1381
+ mode: z.ZodEnum<{
1382
+ ask: "ask";
1383
+ preapproved: "preapproved";
1384
+ }>;
1385
+ }, z.core.$strict>;
1386
+ scopeDigest: z.ZodString;
1387
+ targetDigest: z.ZodString;
1388
+ approvedAt: z.ZodOptional<z.ZodNumber>;
1389
+ revision: z.ZodNumber;
1390
+ createdAt: z.ZodNumber;
1391
+ updatedAt: z.ZodNumber;
1392
+ schemaVersion: z.ZodLiteral<1>;
1393
+ }, z.core.$strict>;
1394
+ encode: (v: unknown) => {
1395
+ id: string;
1396
+ owner: {
1397
+ botId: string;
1398
+ botCreatedAt: number;
1399
+ };
1400
+ channel: "in-app" | "im";
1401
+ enabled: boolean;
1402
+ timezone: string;
1403
+ dailyLimit: number;
1404
+ cooldownSec: number;
1405
+ authorization: {
1406
+ mode: "ask" | "preapproved";
1407
+ };
1408
+ scopeDigest: string;
1409
+ targetDigest: string;
1410
+ revision: number;
1411
+ createdAt: number;
1412
+ updatedAt: number;
1413
+ schemaVersion: 1;
1414
+ targetRef?: string | undefined;
1415
+ quietHours?: {
1416
+ start: string;
1417
+ end: string;
1418
+ } | undefined;
1419
+ approvedAt?: number | undefined;
1420
+ };
1421
+ decode: (v: unknown) => {
1422
+ id: string;
1423
+ owner: {
1424
+ botId: string;
1425
+ botCreatedAt: number;
1426
+ };
1427
+ channel: "in-app" | "im";
1428
+ enabled: boolean;
1429
+ timezone: string;
1430
+ dailyLimit: number;
1431
+ cooldownSec: number;
1432
+ authorization: {
1433
+ mode: "ask" | "preapproved";
1434
+ };
1435
+ scopeDigest: string;
1436
+ targetDigest: string;
1437
+ revision: number;
1438
+ createdAt: number;
1439
+ updatedAt: number;
1440
+ schemaVersion: 1;
1441
+ targetRef?: string | undefined;
1442
+ quietHours?: {
1443
+ start: string;
1444
+ end: string;
1445
+ } | undefined;
1446
+ approvedAt?: number | undefined;
1447
+ };
1448
+ };
1449
+ readonly invocation: {
1450
+ kind: "direct";
1451
+ };
1452
+ };
1453
+ readonly 'dshBot.notifications/markRead': {
1454
+ readonly service: "dshBotNotificationRemote";
1455
+ readonly parameters: readonly [{
1456
+ name: string;
1457
+ source: "json";
1458
+ codec: {
1459
+ mode: "strict";
1460
+ typeSymbol: string;
1461
+ create: () => z.ZodString;
1462
+ encode: (v: unknown) => string;
1463
+ decode: (v: unknown) => string;
1464
+ };
1465
+ strictCodec: {
1466
+ mode: "strict";
1467
+ typeSymbol: string;
1468
+ create: () => z.ZodString;
1469
+ encode: (v: unknown) => string;
1470
+ decode: (v: unknown) => string;
1471
+ };
1472
+ }, {
1473
+ name: string;
1474
+ source: "json";
1475
+ codec: {
1476
+ mode: "strict";
1477
+ typeSymbol: string;
1478
+ create: () => z.ZodNumber;
1479
+ encode: (v: unknown) => number;
1480
+ decode: (v: unknown) => number;
1481
+ };
1482
+ strictCodec: {
1483
+ mode: "strict";
1484
+ typeSymbol: string;
1485
+ create: () => z.ZodNumber;
1486
+ encode: (v: unknown) => number;
1487
+ decode: (v: unknown) => number;
1488
+ };
1489
+ }];
1490
+ readonly result: {
1491
+ mode: "strict";
1492
+ typeSymbol: string;
1493
+ create: () => z.ZodObject<{
1494
+ revision: z.ZodNumber;
1495
+ createdAt: z.ZodNumber;
1496
+ updatedAt: z.ZodNumber;
1497
+ schemaVersion: z.ZodLiteral<1>;
1498
+ id: z.ZodString;
1499
+ operationId: z.ZodString;
1500
+ flowId: z.ZodOptional<z.ZodUUID>;
1501
+ reviewedDigest: z.ZodOptional<z.ZodString>;
1502
+ owner: z.ZodObject<{
1503
+ botId: z.ZodString;
1504
+ botCreatedAt: z.ZodNumber;
1505
+ }, z.core.$strict>;
1506
+ policyId: z.ZodString;
1507
+ policyRevision: z.ZodNumber;
1508
+ targetDigest: z.ZodString;
1509
+ scopeDigest: z.ZodString;
1510
+ text: z.ZodString;
1511
+ bodyDigest: z.ZodOptional<z.ZodString>;
1512
+ redactedAt: z.ZodOptional<z.ZodNumber>;
1513
+ source: z.ZodObject<{
1514
+ kind: z.ZodEnum<{
1515
+ tool: "tool";
1516
+ "manual-run": "manual-run";
1517
+ "group-turn": "group-turn";
1518
+ schedule: "schedule";
1519
+ proactive: "proactive";
1520
+ "proactive-review": "proactive-review";
1521
+ }>;
1522
+ id: z.ZodString;
1523
+ sessionId: z.ZodOptional<z.ZodString>;
1524
+ }, z.core.$strict>;
1525
+ state: z.ZodEnum<{
1526
+ unknown: "unknown";
1527
+ recorded: "recorded";
1528
+ suppressed: "suppressed";
1529
+ failed: "failed";
1530
+ cancelled: "cancelled";
1531
+ waiting_approval: "waiting_approval";
1532
+ sending: "sending";
1533
+ accepted: "accepted";
1534
+ }>;
1535
+ reasonCode: z.ZodOptional<z.ZodEnum<{
1536
+ disabled: "disabled";
1537
+ stopping: "stopping";
1538
+ "quiet-hours": "quiet-hours";
1539
+ "daily-limit": "daily-limit";
1540
+ cooldown: "cooldown";
1541
+ "approval-denied": "approval-denied";
1542
+ changed: "changed";
1543
+ unsupported: "unsupported";
1544
+ "transport-failed": "transport-failed";
1545
+ "recovery-needed": "recovery-needed";
1546
+ }>>;
1547
+ reservation: z.ZodOptional<z.ZodObject<{
1548
+ at: z.ZodNumber;
1549
+ day: z.ZodString;
1550
+ }, z.core.$strict>>;
1551
+ readAt: z.ZodOptional<z.ZodNumber>;
1552
+ attemptId: z.ZodOptional<z.ZodString>;
1553
+ platformMessageId: z.ZodOptional<z.ZodString>;
1554
+ }, z.core.$strict>;
1555
+ encode: (v: unknown) => {
1556
+ revision: number;
1557
+ createdAt: number;
1558
+ updatedAt: number;
1559
+ schemaVersion: 1;
1560
+ id: string;
1561
+ operationId: string;
1562
+ owner: {
1563
+ botId: string;
1564
+ botCreatedAt: number;
1565
+ };
1566
+ policyId: string;
1567
+ policyRevision: number;
1568
+ targetDigest: string;
1569
+ scopeDigest: string;
1570
+ text: string;
1571
+ source: {
1572
+ kind: "tool" | "manual-run" | "group-turn" | "schedule" | "proactive" | "proactive-review";
1573
+ id: string;
1574
+ sessionId?: string | undefined;
1575
+ };
1576
+ state: "unknown" | "recorded" | "suppressed" | "failed" | "cancelled" | "waiting_approval" | "sending" | "accepted";
1577
+ flowId?: string | undefined;
1578
+ reviewedDigest?: string | undefined;
1579
+ bodyDigest?: string | undefined;
1580
+ redactedAt?: number | undefined;
1581
+ reasonCode?: "disabled" | "stopping" | "quiet-hours" | "daily-limit" | "cooldown" | "approval-denied" | "changed" | "unsupported" | "transport-failed" | "recovery-needed" | undefined;
1582
+ reservation?: {
1583
+ at: number;
1584
+ day: string;
1585
+ } | undefined;
1586
+ readAt?: number | undefined;
1587
+ attemptId?: string | undefined;
1588
+ platformMessageId?: string | undefined;
1589
+ };
1590
+ decode: (v: unknown) => {
1591
+ revision: number;
1592
+ createdAt: number;
1593
+ updatedAt: number;
1594
+ schemaVersion: 1;
1595
+ id: string;
1596
+ operationId: string;
1597
+ owner: {
1598
+ botId: string;
1599
+ botCreatedAt: number;
1600
+ };
1601
+ policyId: string;
1602
+ policyRevision: number;
1603
+ targetDigest: string;
1604
+ scopeDigest: string;
1605
+ text: string;
1606
+ source: {
1607
+ kind: "tool" | "manual-run" | "group-turn" | "schedule" | "proactive" | "proactive-review";
1608
+ id: string;
1609
+ sessionId?: string | undefined;
1610
+ };
1611
+ state: "unknown" | "recorded" | "suppressed" | "failed" | "cancelled" | "waiting_approval" | "sending" | "accepted";
1612
+ flowId?: string | undefined;
1613
+ reviewedDigest?: string | undefined;
1614
+ bodyDigest?: string | undefined;
1615
+ redactedAt?: number | undefined;
1616
+ reasonCode?: "disabled" | "stopping" | "quiet-hours" | "daily-limit" | "cooldown" | "approval-denied" | "changed" | "unsupported" | "transport-failed" | "recovery-needed" | undefined;
1617
+ reservation?: {
1618
+ at: number;
1619
+ day: string;
1620
+ } | undefined;
1621
+ readAt?: number | undefined;
1622
+ attemptId?: string | undefined;
1623
+ platformMessageId?: string | undefined;
1624
+ };
1625
+ };
1626
+ readonly invocation: {
1627
+ kind: "direct";
1628
+ };
1629
+ };
1630
+ readonly 'dshBot.notifications/test': {
1631
+ readonly service: "dshBotNotificationRemote";
1632
+ readonly implementation: "testNotification";
1633
+ readonly parameters: readonly [{
1634
+ name: string;
1635
+ source: "json";
1636
+ codec: {
1637
+ mode: "strict";
1638
+ typeSymbol: string;
1639
+ create: () => z.ZodObject<{
1640
+ botId: z.ZodString;
1641
+ botCreatedAt: z.ZodNumber;
1642
+ }, z.core.$strict>;
1643
+ encode: (v: unknown) => {
1644
+ botId: string;
1645
+ botCreatedAt: number;
1646
+ };
1647
+ decode: (v: unknown) => {
1648
+ botId: string;
1649
+ botCreatedAt: number;
1650
+ };
1651
+ };
1652
+ strictCodec: {
1653
+ mode: "strict";
1654
+ typeSymbol: string;
1655
+ create: () => z.ZodObject<{
1656
+ botId: z.ZodString;
1657
+ botCreatedAt: z.ZodNumber;
1658
+ }, z.core.$strict>;
1659
+ encode: (v: unknown) => {
1660
+ botId: string;
1661
+ botCreatedAt: number;
1662
+ };
1663
+ decode: (v: unknown) => {
1664
+ botId: string;
1665
+ botCreatedAt: number;
1666
+ };
1667
+ };
1668
+ }, {
1669
+ name: string;
1670
+ source: "json";
1671
+ codec: {
1672
+ mode: "strict";
1673
+ typeSymbol: string;
1674
+ create: () => z.ZodObject<{
1675
+ operationId: z.ZodString;
1676
+ policyId: z.ZodString;
1677
+ text: z.ZodString;
1678
+ relatedId: z.ZodOptional<z.ZodString>;
1679
+ }, z.core.$strict>;
1680
+ encode: (v: unknown) => {
1681
+ operationId: string;
1682
+ policyId: string;
1683
+ text: string;
1684
+ relatedId?: string | undefined;
1685
+ };
1686
+ decode: (v: unknown) => {
1687
+ operationId: string;
1688
+ policyId: string;
1689
+ text: string;
1690
+ relatedId?: string | undefined;
1691
+ };
1692
+ };
1693
+ strictCodec: {
1694
+ mode: "strict";
1695
+ typeSymbol: string;
1696
+ create: () => z.ZodObject<{
1697
+ operationId: z.ZodString;
1698
+ policyId: z.ZodString;
1699
+ text: z.ZodString;
1700
+ relatedId: z.ZodOptional<z.ZodString>;
1701
+ }, z.core.$strict>;
1702
+ encode: (v: unknown) => {
1703
+ operationId: string;
1704
+ policyId: string;
1705
+ text: string;
1706
+ relatedId?: string | undefined;
1707
+ };
1708
+ decode: (v: unknown) => {
1709
+ operationId: string;
1710
+ policyId: string;
1711
+ text: string;
1712
+ relatedId?: string | undefined;
1713
+ };
1714
+ };
1715
+ }, {
1716
+ name: string;
1717
+ source: "json";
1718
+ codec: {
1719
+ mode: "strict";
1720
+ typeSymbol: string;
1721
+ create: () => z.ZodString;
1722
+ encode: (v: unknown) => string;
1723
+ decode: (v: unknown) => string;
1724
+ };
1725
+ strictCodec: {
1726
+ mode: "strict";
1727
+ typeSymbol: string;
1728
+ create: () => z.ZodString;
1729
+ encode: (v: unknown) => string;
1730
+ decode: (v: unknown) => string;
1731
+ };
1732
+ }, {
1733
+ name: string;
1734
+ source: "json";
1735
+ codec: {
1736
+ mode: "strict";
1737
+ typeSymbol: string;
1738
+ create: () => z.ZodLiteral<true>;
1739
+ encode: (v: unknown) => true;
1740
+ decode: (v: unknown) => true;
1741
+ };
1742
+ strictCodec: {
1743
+ mode: "strict";
1744
+ typeSymbol: string;
1745
+ create: () => z.ZodLiteral<true>;
1746
+ encode: (v: unknown) => true;
1747
+ decode: (v: unknown) => true;
1748
+ };
1749
+ }];
1750
+ readonly result: {
1751
+ mode: "strict";
1752
+ typeSymbol: string;
1753
+ create: () => z.ZodObject<{
1754
+ revision: z.ZodNumber;
1755
+ createdAt: z.ZodNumber;
1756
+ updatedAt: z.ZodNumber;
1757
+ schemaVersion: z.ZodLiteral<1>;
1758
+ id: z.ZodString;
1759
+ operationId: z.ZodString;
1760
+ flowId: z.ZodOptional<z.ZodUUID>;
1761
+ reviewedDigest: z.ZodOptional<z.ZodString>;
1762
+ owner: z.ZodObject<{
1763
+ botId: z.ZodString;
1764
+ botCreatedAt: z.ZodNumber;
1765
+ }, z.core.$strict>;
1766
+ policyId: z.ZodString;
1767
+ policyRevision: z.ZodNumber;
1768
+ targetDigest: z.ZodString;
1769
+ scopeDigest: z.ZodString;
1770
+ text: z.ZodString;
1771
+ bodyDigest: z.ZodOptional<z.ZodString>;
1772
+ redactedAt: z.ZodOptional<z.ZodNumber>;
1773
+ source: z.ZodObject<{
1774
+ kind: z.ZodEnum<{
1775
+ tool: "tool";
1776
+ "manual-run": "manual-run";
1777
+ "group-turn": "group-turn";
1778
+ schedule: "schedule";
1779
+ proactive: "proactive";
1780
+ "proactive-review": "proactive-review";
1781
+ }>;
1782
+ id: z.ZodString;
1783
+ sessionId: z.ZodOptional<z.ZodString>;
1784
+ }, z.core.$strict>;
1785
+ state: z.ZodEnum<{
1786
+ unknown: "unknown";
1787
+ recorded: "recorded";
1788
+ suppressed: "suppressed";
1789
+ failed: "failed";
1790
+ cancelled: "cancelled";
1791
+ waiting_approval: "waiting_approval";
1792
+ sending: "sending";
1793
+ accepted: "accepted";
1794
+ }>;
1795
+ reasonCode: z.ZodOptional<z.ZodEnum<{
1796
+ disabled: "disabled";
1797
+ stopping: "stopping";
1798
+ "quiet-hours": "quiet-hours";
1799
+ "daily-limit": "daily-limit";
1800
+ cooldown: "cooldown";
1801
+ "approval-denied": "approval-denied";
1802
+ changed: "changed";
1803
+ unsupported: "unsupported";
1804
+ "transport-failed": "transport-failed";
1805
+ "recovery-needed": "recovery-needed";
1806
+ }>>;
1807
+ reservation: z.ZodOptional<z.ZodObject<{
1808
+ at: z.ZodNumber;
1809
+ day: z.ZodString;
1810
+ }, z.core.$strict>>;
1811
+ readAt: z.ZodOptional<z.ZodNumber>;
1812
+ attemptId: z.ZodOptional<z.ZodString>;
1813
+ platformMessageId: z.ZodOptional<z.ZodString>;
1814
+ }, z.core.$strict>;
1815
+ encode: (v: unknown) => {
1816
+ revision: number;
1817
+ createdAt: number;
1818
+ updatedAt: number;
1819
+ schemaVersion: 1;
1820
+ id: string;
1821
+ operationId: string;
1822
+ owner: {
1823
+ botId: string;
1824
+ botCreatedAt: number;
1825
+ };
1826
+ policyId: string;
1827
+ policyRevision: number;
1828
+ targetDigest: string;
1829
+ scopeDigest: string;
1830
+ text: string;
1831
+ source: {
1832
+ kind: "tool" | "manual-run" | "group-turn" | "schedule" | "proactive" | "proactive-review";
1833
+ id: string;
1834
+ sessionId?: string | undefined;
1835
+ };
1836
+ state: "unknown" | "recorded" | "suppressed" | "failed" | "cancelled" | "waiting_approval" | "sending" | "accepted";
1837
+ flowId?: string | undefined;
1838
+ reviewedDigest?: string | undefined;
1839
+ bodyDigest?: string | undefined;
1840
+ redactedAt?: number | undefined;
1841
+ reasonCode?: "disabled" | "stopping" | "quiet-hours" | "daily-limit" | "cooldown" | "approval-denied" | "changed" | "unsupported" | "transport-failed" | "recovery-needed" | undefined;
1842
+ reservation?: {
1843
+ at: number;
1844
+ day: string;
1845
+ } | undefined;
1846
+ readAt?: number | undefined;
1847
+ attemptId?: string | undefined;
1848
+ platformMessageId?: string | undefined;
1849
+ };
1850
+ decode: (v: unknown) => {
1851
+ revision: number;
1852
+ createdAt: number;
1853
+ updatedAt: number;
1854
+ schemaVersion: 1;
1855
+ id: string;
1856
+ operationId: string;
1857
+ owner: {
1858
+ botId: string;
1859
+ botCreatedAt: number;
1860
+ };
1861
+ policyId: string;
1862
+ policyRevision: number;
1863
+ targetDigest: string;
1864
+ scopeDigest: string;
1865
+ text: string;
1866
+ source: {
1867
+ kind: "tool" | "manual-run" | "group-turn" | "schedule" | "proactive" | "proactive-review";
1868
+ id: string;
1869
+ sessionId?: string | undefined;
1870
+ };
1871
+ state: "unknown" | "recorded" | "suppressed" | "failed" | "cancelled" | "waiting_approval" | "sending" | "accepted";
1872
+ flowId?: string | undefined;
1873
+ reviewedDigest?: string | undefined;
1874
+ bodyDigest?: string | undefined;
1875
+ redactedAt?: number | undefined;
1876
+ reasonCode?: "disabled" | "stopping" | "quiet-hours" | "daily-limit" | "cooldown" | "approval-denied" | "changed" | "unsupported" | "transport-failed" | "recovery-needed" | undefined;
1877
+ reservation?: {
1878
+ at: number;
1879
+ day: string;
1880
+ } | undefined;
1881
+ readAt?: number | undefined;
1882
+ attemptId?: string | undefined;
1883
+ platformMessageId?: string | undefined;
1884
+ };
1885
+ };
1886
+ readonly invocation: {
1887
+ kind: "direct";
1888
+ };
1889
+ };
1890
+ };
1891
+ };
1892
+ type Methods = typeof integrationsSpec.methods;
1893
+ type Args<P extends readonly unknown[]> = {
1894
+ -readonly [K in keyof P]: P[K] extends {
1895
+ codec: {
1896
+ create: () => infer S extends z.ZodType;
1897
+ };
1898
+ } ? z.input<S> : never;
1899
+ };
1900
+ type Result<K extends keyof Methods> = z.output<ReturnType<Methods[K]['result']['create']>>;
1901
+ export type IntegrationMethods<N extends string> = {
1902
+ [K in keyof Methods as K extends `${N}/${infer M}` ? M : never]: (...args: Args<Methods[K]['parameters']>) => Promise<RemoteResult<Result<K>>>;
1903
+ };
1904
+ type Endpoints = {
1905
+ [K in keyof Methods]: (...args: Args<Methods[K]['parameters']>) => Promise<RemoteResult<Result<K>>>;
1906
+ };
1907
+ declare module '@deepseek-ai/dsh-typert-protocol' {
1908
+ interface TypertRemoteMap extends Endpoints {
1909
+ }
1910
+ interface TypertRemoteNamespaceMap {
1911
+ 'dshBot.connectors': IntegrationMethods<'dshBot.connectors'>;
1912
+ 'dshBot.notifications': IntegrationMethods<'dshBot.notifications'>;
1913
+ }
1914
+ }
1915
+ export declare const INTEGRATIONS_REMOTE: import("@deepseek-ai/dsh-typert-protocol").TypertRemoteInfo<Readonly<Record<string, import("@deepseek-ai/dsh-typert-protocol").TypertRemoteMethod<object, unknown, "unary", never, unknown> | import("@deepseek-ai/dsh-typert-protocol").TypertRemoteMethod<object, unknown, "stream", unknown, unknown>>>>;
1916
+ export {};