@marktoflow/integrations 2.0.0-alpha.7 → 2.0.1

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 (435) hide show
  1. package/README.md +64 -553
  2. package/dist/adapters/claude-agent-hooks.d.ts.map +1 -0
  3. package/dist/adapters/claude-agent-hooks.js +339 -0
  4. package/dist/adapters/claude-agent-hooks.js.map +1 -0
  5. package/dist/adapters/claude-agent-types.d.ts +426 -0
  6. package/dist/adapters/claude-agent-types.d.ts.map +1 -0
  7. package/dist/adapters/claude-agent-types.js +62 -0
  8. package/dist/adapters/claude-agent-types.js.map +1 -0
  9. package/dist/adapters/claude-agent-workflow.d.ts +393 -0
  10. package/dist/adapters/claude-agent-workflow.d.ts.map +1 -0
  11. package/dist/adapters/claude-agent-workflow.js +445 -0
  12. package/dist/adapters/claude-agent-workflow.js.map +1 -0
  13. package/dist/adapters/claude-agent.d.ts +189 -0
  14. package/dist/adapters/claude-agent.d.ts.map +1 -0
  15. package/dist/adapters/claude-agent.js +504 -0
  16. package/dist/adapters/claude-agent.js.map +1 -0
  17. package/dist/adapters/claude-code.d.ts +18 -0
  18. package/dist/adapters/claude-code.d.ts.map +1 -1
  19. package/dist/adapters/claude-code.js +33 -0
  20. package/dist/adapters/claude-code.js.map +1 -1
  21. package/dist/adapters/codex-types.d.ts +463 -0
  22. package/dist/adapters/codex-types.d.ts.map +1 -0
  23. package/dist/adapters/codex-types.js +53 -0
  24. package/dist/adapters/codex-types.js.map +1 -0
  25. package/dist/adapters/codex-workflow.d.ts +414 -0
  26. package/dist/adapters/codex-workflow.d.ts.map +1 -0
  27. package/dist/adapters/codex-workflow.js +470 -0
  28. package/dist/adapters/codex-workflow.js.map +1 -0
  29. package/dist/adapters/codex.d.ts +154 -0
  30. package/dist/adapters/codex.d.ts.map +1 -0
  31. package/dist/adapters/codex.js +416 -0
  32. package/dist/adapters/codex.js.map +1 -0
  33. package/dist/adapters/github-copilot-types.d.ts +1012 -0
  34. package/dist/adapters/github-copilot-types.d.ts.map +1 -0
  35. package/dist/adapters/github-copilot-types.js +80 -0
  36. package/dist/adapters/github-copilot-types.js.map +1 -0
  37. package/dist/adapters/github-copilot-workflow.d.ts +462 -0
  38. package/dist/adapters/github-copilot-workflow.d.ts.map +1 -0
  39. package/dist/adapters/github-copilot-workflow.js +473 -0
  40. package/dist/adapters/github-copilot-workflow.js.map +1 -0
  41. package/dist/adapters/github-copilot.d.ts +239 -37
  42. package/dist/adapters/github-copilot.d.ts.map +1 -1
  43. package/dist/adapters/github-copilot.js +365 -58
  44. package/dist/adapters/github-copilot.js.map +1 -1
  45. package/dist/adapters/ollama-types.d.ts +746 -0
  46. package/dist/adapters/ollama-types.d.ts.map +1 -0
  47. package/dist/adapters/ollama-types.js +65 -0
  48. package/dist/adapters/ollama-types.js.map +1 -0
  49. package/dist/adapters/ollama.d.ts +157 -0
  50. package/dist/adapters/ollama.d.ts.map +1 -1
  51. package/dist/adapters/ollama.js +425 -3
  52. package/dist/adapters/ollama.js.map +1 -1
  53. package/dist/adapters/opencode.d.ts +20 -0
  54. package/dist/adapters/opencode.d.ts.map +1 -1
  55. package/dist/adapters/opencode.js +29 -0
  56. package/dist/adapters/opencode.js.map +1 -1
  57. package/dist/index.d.ts +45 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +107 -2
  60. package/dist/index.js.map +1 -1
  61. package/dist/reliability/errors.d.ts +36 -0
  62. package/dist/reliability/errors.d.ts.map +1 -0
  63. package/dist/reliability/errors.js +151 -0
  64. package/dist/reliability/errors.js.map +1 -0
  65. package/dist/reliability/index.d.ts +10 -0
  66. package/dist/reliability/index.d.ts.map +1 -0
  67. package/dist/reliability/index.js +10 -0
  68. package/dist/reliability/index.js.map +1 -0
  69. package/dist/reliability/schemas/airtable.d.ts +7 -0
  70. package/dist/reliability/schemas/airtable.d.ts.map +1 -0
  71. package/dist/reliability/schemas/airtable.js +56 -0
  72. package/dist/reliability/schemas/airtable.js.map +1 -0
  73. package/dist/reliability/schemas/asana.d.ts +7 -0
  74. package/dist/reliability/schemas/asana.d.ts.map +1 -0
  75. package/dist/reliability/schemas/asana.js +45 -0
  76. package/dist/reliability/schemas/asana.js.map +1 -0
  77. package/dist/reliability/schemas/aws-s3.d.ts +7 -0
  78. package/dist/reliability/schemas/aws-s3.d.ts.map +1 -0
  79. package/dist/reliability/schemas/aws-s3.js +42 -0
  80. package/dist/reliability/schemas/aws-s3.js.map +1 -0
  81. package/dist/reliability/schemas/calendly.d.ts +6 -0
  82. package/dist/reliability/schemas/calendly.d.ts.map +1 -0
  83. package/dist/reliability/schemas/calendly.js +43 -0
  84. package/dist/reliability/schemas/calendly.js.map +1 -0
  85. package/dist/reliability/schemas/confluence.d.ts +7 -0
  86. package/dist/reliability/schemas/confluence.d.ts.map +1 -0
  87. package/dist/reliability/schemas/confluence.js +46 -0
  88. package/dist/reliability/schemas/confluence.js.map +1 -0
  89. package/dist/reliability/schemas/discord.d.ts +6 -0
  90. package/dist/reliability/schemas/discord.d.ts.map +1 -0
  91. package/dist/reliability/schemas/discord.js +40 -0
  92. package/dist/reliability/schemas/discord.js.map +1 -0
  93. package/dist/reliability/schemas/dropbox.d.ts +7 -0
  94. package/dist/reliability/schemas/dropbox.d.ts.map +1 -0
  95. package/dist/reliability/schemas/dropbox.js +47 -0
  96. package/dist/reliability/schemas/dropbox.js.map +1 -0
  97. package/dist/reliability/schemas/github.d.ts +9 -0
  98. package/dist/reliability/schemas/github.d.ts.map +1 -0
  99. package/dist/reliability/schemas/github.js +101 -0
  100. package/dist/reliability/schemas/github.js.map +1 -0
  101. package/dist/reliability/schemas/gitlab.d.ts +6 -0
  102. package/dist/reliability/schemas/gitlab.d.ts.map +1 -0
  103. package/dist/reliability/schemas/gitlab.js +102 -0
  104. package/dist/reliability/schemas/gitlab.js.map +1 -0
  105. package/dist/reliability/schemas/gmail.d.ts +9 -0
  106. package/dist/reliability/schemas/gmail.d.ts.map +1 -0
  107. package/dist/reliability/schemas/gmail.js +59 -0
  108. package/dist/reliability/schemas/gmail.js.map +1 -0
  109. package/dist/reliability/schemas/google-calendar.d.ts +7 -0
  110. package/dist/reliability/schemas/google-calendar.d.ts.map +1 -0
  111. package/dist/reliability/schemas/google-calendar.js +58 -0
  112. package/dist/reliability/schemas/google-calendar.js.map +1 -0
  113. package/dist/reliability/schemas/google-docs.d.ts +7 -0
  114. package/dist/reliability/schemas/google-docs.d.ts.map +1 -0
  115. package/dist/reliability/schemas/google-docs.js +39 -0
  116. package/dist/reliability/schemas/google-docs.js.map +1 -0
  117. package/dist/reliability/schemas/google-drive.d.ts +7 -0
  118. package/dist/reliability/schemas/google-drive.d.ts.map +1 -0
  119. package/dist/reliability/schemas/google-drive.js +56 -0
  120. package/dist/reliability/schemas/google-drive.js.map +1 -0
  121. package/dist/reliability/schemas/google-sheets.d.ts +7 -0
  122. package/dist/reliability/schemas/google-sheets.d.ts.map +1 -0
  123. package/dist/reliability/schemas/google-sheets.js +40 -0
  124. package/dist/reliability/schemas/google-sheets.js.map +1 -0
  125. package/dist/reliability/schemas/hubspot.d.ts +6 -0
  126. package/dist/reliability/schemas/hubspot.d.ts.map +1 -0
  127. package/dist/reliability/schemas/hubspot.js +92 -0
  128. package/dist/reliability/schemas/hubspot.js.map +1 -0
  129. package/dist/reliability/schemas/index.d.ts +45 -0
  130. package/dist/reliability/schemas/index.d.ts.map +1 -0
  131. package/dist/reliability/schemas/index.js +45 -0
  132. package/dist/reliability/schemas/index.js.map +1 -0
  133. package/dist/reliability/schemas/intercom.d.ts +6 -0
  134. package/dist/reliability/schemas/intercom.d.ts.map +1 -0
  135. package/dist/reliability/schemas/intercom.js +81 -0
  136. package/dist/reliability/schemas/intercom.js.map +1 -0
  137. package/dist/reliability/schemas/jira.d.ts +6 -0
  138. package/dist/reliability/schemas/jira.d.ts.map +1 -0
  139. package/dist/reliability/schemas/jira.js +50 -0
  140. package/dist/reliability/schemas/jira.js.map +1 -0
  141. package/dist/reliability/schemas/linear.d.ts +6 -0
  142. package/dist/reliability/schemas/linear.d.ts.map +1 -0
  143. package/dist/reliability/schemas/linear.js +39 -0
  144. package/dist/reliability/schemas/linear.js.map +1 -0
  145. package/dist/reliability/schemas/mailchimp.d.ts +7 -0
  146. package/dist/reliability/schemas/mailchimp.d.ts.map +1 -0
  147. package/dist/reliability/schemas/mailchimp.js +58 -0
  148. package/dist/reliability/schemas/mailchimp.js.map +1 -0
  149. package/dist/reliability/schemas/monday.d.ts +6 -0
  150. package/dist/reliability/schemas/monday.d.ts.map +1 -0
  151. package/dist/reliability/schemas/monday.js +52 -0
  152. package/dist/reliability/schemas/monday.js.map +1 -0
  153. package/dist/reliability/schemas/mysql.d.ts +7 -0
  154. package/dist/reliability/schemas/mysql.d.ts.map +1 -0
  155. package/dist/reliability/schemas/mysql.js +35 -0
  156. package/dist/reliability/schemas/mysql.js.map +1 -0
  157. package/dist/reliability/schemas/notion.d.ts +6 -0
  158. package/dist/reliability/schemas/notion.d.ts.map +1 -0
  159. package/dist/reliability/schemas/notion.js +63 -0
  160. package/dist/reliability/schemas/notion.js.map +1 -0
  161. package/dist/reliability/schemas/outlook.d.ts +7 -0
  162. package/dist/reliability/schemas/outlook.d.ts.map +1 -0
  163. package/dist/reliability/schemas/outlook.js +50 -0
  164. package/dist/reliability/schemas/outlook.js.map +1 -0
  165. package/dist/reliability/schemas/pagerduty.d.ts +6 -0
  166. package/dist/reliability/schemas/pagerduty.d.ts.map +1 -0
  167. package/dist/reliability/schemas/pagerduty.js +52 -0
  168. package/dist/reliability/schemas/pagerduty.js.map +1 -0
  169. package/dist/reliability/schemas/postgres.d.ts +7 -0
  170. package/dist/reliability/schemas/postgres.d.ts.map +1 -0
  171. package/dist/reliability/schemas/postgres.js +35 -0
  172. package/dist/reliability/schemas/postgres.js.map +1 -0
  173. package/dist/reliability/schemas/salesforce.d.ts +6 -0
  174. package/dist/reliability/schemas/salesforce.d.ts.map +1 -0
  175. package/dist/reliability/schemas/salesforce.js +35 -0
  176. package/dist/reliability/schemas/salesforce.js.map +1 -0
  177. package/dist/reliability/schemas/sendgrid.d.ts +7 -0
  178. package/dist/reliability/schemas/sendgrid.d.ts.map +1 -0
  179. package/dist/reliability/schemas/sendgrid.js +34 -0
  180. package/dist/reliability/schemas/sendgrid.js.map +1 -0
  181. package/dist/reliability/schemas/sentry.d.ts +6 -0
  182. package/dist/reliability/schemas/sentry.d.ts.map +1 -0
  183. package/dist/reliability/schemas/sentry.js +40 -0
  184. package/dist/reliability/schemas/sentry.js.map +1 -0
  185. package/dist/reliability/schemas/shopify.d.ts +7 -0
  186. package/dist/reliability/schemas/shopify.d.ts.map +1 -0
  187. package/dist/reliability/schemas/shopify.js +55 -0
  188. package/dist/reliability/schemas/shopify.js.map +1 -0
  189. package/dist/reliability/schemas/slack.d.ts +7 -0
  190. package/dist/reliability/schemas/slack.d.ts.map +1 -0
  191. package/dist/reliability/schemas/slack.js +66 -0
  192. package/dist/reliability/schemas/slack.js.map +1 -0
  193. package/dist/reliability/schemas/stripe.d.ts +7 -0
  194. package/dist/reliability/schemas/stripe.d.ts.map +1 -0
  195. package/dist/reliability/schemas/stripe.js +58 -0
  196. package/dist/reliability/schemas/stripe.js.map +1 -0
  197. package/dist/reliability/schemas/supabase.d.ts +7 -0
  198. package/dist/reliability/schemas/supabase.d.ts.map +1 -0
  199. package/dist/reliability/schemas/supabase.js +50 -0
  200. package/dist/reliability/schemas/supabase.js.map +1 -0
  201. package/dist/reliability/schemas/teams.d.ts +7 -0
  202. package/dist/reliability/schemas/teams.d.ts.map +1 -0
  203. package/dist/reliability/schemas/teams.js +44 -0
  204. package/dist/reliability/schemas/teams.js.map +1 -0
  205. package/dist/reliability/schemas/telegram.d.ts +7 -0
  206. package/dist/reliability/schemas/telegram.d.ts.map +1 -0
  207. package/dist/reliability/schemas/telegram.js +53 -0
  208. package/dist/reliability/schemas/telegram.js.map +1 -0
  209. package/dist/reliability/schemas/trello.d.ts +7 -0
  210. package/dist/reliability/schemas/trello.d.ts.map +1 -0
  211. package/dist/reliability/schemas/trello.js +51 -0
  212. package/dist/reliability/schemas/trello.js.map +1 -0
  213. package/dist/reliability/schemas/twilio.d.ts +7 -0
  214. package/dist/reliability/schemas/twilio.d.ts.map +1 -0
  215. package/dist/reliability/schemas/twilio.js +42 -0
  216. package/dist/reliability/schemas/twilio.js.map +1 -0
  217. package/dist/reliability/schemas/whatsapp.d.ts +7 -0
  218. package/dist/reliability/schemas/whatsapp.d.ts.map +1 -0
  219. package/dist/reliability/schemas/whatsapp.js +50 -0
  220. package/dist/reliability/schemas/whatsapp.js.map +1 -0
  221. package/dist/reliability/schemas/zendesk.d.ts +7 -0
  222. package/dist/reliability/schemas/zendesk.d.ts.map +1 -0
  223. package/dist/reliability/schemas/zendesk.js +53 -0
  224. package/dist/reliability/schemas/zendesk.js.map +1 -0
  225. package/dist/reliability/wrapper.d.ts +46 -0
  226. package/dist/reliability/wrapper.d.ts.map +1 -0
  227. package/dist/reliability/wrapper.js +174 -0
  228. package/dist/reliability/wrapper.js.map +1 -0
  229. package/dist/services/ai-browser.d.ts +112 -0
  230. package/dist/services/ai-browser.d.ts.map +1 -0
  231. package/dist/services/ai-browser.js +363 -0
  232. package/dist/services/ai-browser.js.map +1 -0
  233. package/dist/services/airtable.d.ts +3 -4
  234. package/dist/services/airtable.d.ts.map +1 -1
  235. package/dist/services/airtable.js +16 -24
  236. package/dist/services/airtable.js.map +1 -1
  237. package/dist/services/asana.d.ts +159 -0
  238. package/dist/services/asana.d.ts.map +1 -0
  239. package/dist/services/asana.js +202 -0
  240. package/dist/services/asana.js.map +1 -0
  241. package/dist/services/aws-s3.d.ts +89 -0
  242. package/dist/services/aws-s3.d.ts.map +1 -0
  243. package/dist/services/aws-s3.js +160 -0
  244. package/dist/services/aws-s3.js.map +1 -0
  245. package/dist/services/base-client.d.ts +102 -0
  246. package/dist/services/base-client.d.ts.map +1 -0
  247. package/dist/services/base-client.js +219 -0
  248. package/dist/services/base-client.js.map +1 -0
  249. package/dist/services/calendly.d.ts +158 -0
  250. package/dist/services/calendly.d.ts.map +1 -0
  251. package/dist/services/calendly.js +118 -0
  252. package/dist/services/calendly.js.map +1 -0
  253. package/dist/services/confluence.d.ts +4 -7
  254. package/dist/services/confluence.d.ts.map +1 -1
  255. package/dist/services/confluence.js +19 -28
  256. package/dist/services/confluence.js.map +1 -1
  257. package/dist/services/discord.d.ts +2 -4
  258. package/dist/services/discord.d.ts.map +1 -1
  259. package/dist/services/discord.js +17 -25
  260. package/dist/services/discord.js.map +1 -1
  261. package/dist/services/dropbox.d.ts +134 -0
  262. package/dist/services/dropbox.d.ts.map +1 -0
  263. package/dist/services/dropbox.js +196 -0
  264. package/dist/services/dropbox.js.map +1 -0
  265. package/dist/services/github.d.ts.map +1 -1
  266. package/dist/services/github.js +11 -5
  267. package/dist/services/github.js.map +1 -1
  268. package/dist/services/gitlab.d.ts +169 -0
  269. package/dist/services/gitlab.d.ts.map +1 -0
  270. package/dist/services/gitlab.js +164 -0
  271. package/dist/services/gitlab.js.map +1 -0
  272. package/dist/services/gmail.d.ts.map +1 -1
  273. package/dist/services/gmail.js +71 -4
  274. package/dist/services/gmail.js.map +1 -1
  275. package/dist/services/google-calendar.d.ts.map +1 -1
  276. package/dist/services/google-calendar.js +48 -4
  277. package/dist/services/google-calendar.js.map +1 -1
  278. package/dist/services/google-docs.d.ts.map +1 -1
  279. package/dist/services/google-docs.js +48 -4
  280. package/dist/services/google-docs.js.map +1 -1
  281. package/dist/services/google-drive.d.ts.map +1 -1
  282. package/dist/services/google-drive.js +48 -4
  283. package/dist/services/google-drive.js.map +1 -1
  284. package/dist/services/google-sheets.d.ts.map +1 -1
  285. package/dist/services/google-sheets.js +48 -4
  286. package/dist/services/google-sheets.js.map +1 -1
  287. package/dist/services/http.d.ts.map +1 -1
  288. package/dist/services/http.js +57 -1
  289. package/dist/services/http.js.map +1 -1
  290. package/dist/services/hubspot.d.ts +181 -0
  291. package/dist/services/hubspot.d.ts.map +1 -0
  292. package/dist/services/hubspot.js +171 -0
  293. package/dist/services/hubspot.js.map +1 -0
  294. package/dist/services/intercom.d.ts +186 -0
  295. package/dist/services/intercom.d.ts.map +1 -0
  296. package/dist/services/intercom.js +160 -0
  297. package/dist/services/intercom.js.map +1 -0
  298. package/dist/services/jira.d.ts.map +1 -1
  299. package/dist/services/jira.js +24 -2
  300. package/dist/services/jira.js.map +1 -1
  301. package/dist/services/linear.d.ts.map +1 -1
  302. package/dist/services/linear.js +10 -2
  303. package/dist/services/linear.js.map +1 -1
  304. package/dist/services/mailchimp.d.ts +169 -0
  305. package/dist/services/mailchimp.d.ts.map +1 -0
  306. package/dist/services/mailchimp.js +186 -0
  307. package/dist/services/mailchimp.js.map +1 -0
  308. package/dist/services/monday.d.ts +156 -0
  309. package/dist/services/monday.d.ts.map +1 -0
  310. package/dist/services/monday.js +256 -0
  311. package/dist/services/monday.js.map +1 -0
  312. package/dist/services/mysql.d.ts.map +1 -1
  313. package/dist/services/mysql.js +8 -2
  314. package/dist/services/mysql.js.map +1 -1
  315. package/dist/services/notion.d.ts +2 -3
  316. package/dist/services/notion.d.ts.map +1 -1
  317. package/dist/services/notion.js +17 -17
  318. package/dist/services/notion.js.map +1 -1
  319. package/dist/services/outlook.d.ts.map +1 -1
  320. package/dist/services/outlook.js +100 -6
  321. package/dist/services/outlook.js.map +1 -1
  322. package/dist/services/pagerduty.d.ts +128 -0
  323. package/dist/services/pagerduty.d.ts.map +1 -0
  324. package/dist/services/pagerduty.js +150 -0
  325. package/dist/services/pagerduty.js.map +1 -0
  326. package/dist/services/playwright.d.ts +678 -0
  327. package/dist/services/playwright.d.ts.map +1 -0
  328. package/dist/services/playwright.js +1141 -0
  329. package/dist/services/playwright.js.map +1 -0
  330. package/dist/services/postgres.d.ts.map +1 -1
  331. package/dist/services/postgres.js +8 -2
  332. package/dist/services/postgres.js.map +1 -1
  333. package/dist/services/salesforce.d.ts +78 -0
  334. package/dist/services/salesforce.d.ts.map +1 -0
  335. package/dist/services/salesforce.js +86 -0
  336. package/dist/services/salesforce.js.map +1 -0
  337. package/dist/services/sendgrid.d.ts +43 -0
  338. package/dist/services/sendgrid.d.ts.map +1 -0
  339. package/dist/services/sendgrid.js +93 -0
  340. package/dist/services/sendgrid.js.map +1 -0
  341. package/dist/services/sentry.d.ts +129 -0
  342. package/dist/services/sentry.d.ts.map +1 -0
  343. package/dist/services/sentry.js +111 -0
  344. package/dist/services/sentry.js.map +1 -0
  345. package/dist/services/shopify.d.ts +160 -0
  346. package/dist/services/shopify.d.ts.map +1 -0
  347. package/dist/services/shopify.js +172 -0
  348. package/dist/services/shopify.js.map +1 -0
  349. package/dist/services/slack-socket.d.ts.map +1 -1
  350. package/dist/services/slack-socket.js +2 -0
  351. package/dist/services/slack-socket.js.map +1 -1
  352. package/dist/services/slack.d.ts.map +1 -1
  353. package/dist/services/slack.js +9 -1
  354. package/dist/services/slack.js.map +1 -1
  355. package/dist/services/stripe.d.ts +275 -0
  356. package/dist/services/stripe.d.ts.map +1 -0
  357. package/dist/services/stripe.js +235 -0
  358. package/dist/services/stripe.js.map +1 -0
  359. package/dist/services/supabase.d.ts +11 -4
  360. package/dist/services/supabase.d.ts.map +1 -1
  361. package/dist/services/supabase.js +33 -22
  362. package/dist/services/supabase.js.map +1 -1
  363. package/dist/services/teams.d.ts +224 -0
  364. package/dist/services/teams.d.ts.map +1 -0
  365. package/dist/services/teams.js +265 -0
  366. package/dist/services/teams.js.map +1 -0
  367. package/dist/services/telegram.d.ts +6 -3
  368. package/dist/services/telegram.d.ts.map +1 -1
  369. package/dist/services/telegram.js +39 -34
  370. package/dist/services/telegram.js.map +1 -1
  371. package/dist/services/trello.d.ts +160 -0
  372. package/dist/services/trello.d.ts.map +1 -0
  373. package/dist/services/trello.js +200 -0
  374. package/dist/services/trello.js.map +1 -0
  375. package/dist/services/twilio.d.ts +126 -0
  376. package/dist/services/twilio.d.ts.map +1 -0
  377. package/dist/services/twilio.js +159 -0
  378. package/dist/services/twilio.js.map +1 -0
  379. package/dist/services/whatsapp.d.ts.map +1 -1
  380. package/dist/services/whatsapp.js +8 -2
  381. package/dist/services/whatsapp.js.map +1 -1
  382. package/dist/services/zendesk.d.ts +134 -0
  383. package/dist/services/zendesk.d.ts.map +1 -0
  384. package/dist/services/zendesk.js +154 -0
  385. package/dist/services/zendesk.js.map +1 -0
  386. package/dist/tools/script.d.ts +18 -0
  387. package/dist/tools/script.d.ts.map +1 -1
  388. package/dist/tools/script.js +116 -1
  389. package/dist/tools/script.js.map +1 -1
  390. package/package.json +35 -8
  391. package/dist/claude-code.d.ts +0 -16
  392. package/dist/claude-code.d.ts.map +0 -1
  393. package/dist/claude-code.js +0 -56
  394. package/dist/claude-code.js.map +0 -1
  395. package/dist/github.d.ts +0 -3
  396. package/dist/github.d.ts.map +0 -1
  397. package/dist/github.js +0 -13
  398. package/dist/github.js.map +0 -1
  399. package/dist/jira.d.ts +0 -3
  400. package/dist/jira.d.ts.map +0 -1
  401. package/dist/jira.js +0 -21
  402. package/dist/jira.js.map +0 -1
  403. package/dist/ollama.d.ts +0 -3
  404. package/dist/ollama.d.ts.map +0 -1
  405. package/dist/ollama.js +0 -9
  406. package/dist/ollama.js.map +0 -1
  407. package/dist/opencode.d.ts +0 -19
  408. package/dist/opencode.d.ts.map +0 -1
  409. package/dist/opencode.js +0 -104
  410. package/dist/opencode.js.map +0 -1
  411. package/dist/script.d.ts +0 -3
  412. package/dist/script.d.ts.map +0 -1
  413. package/dist/script.js +0 -21
  414. package/dist/script.js.map +0 -1
  415. package/dist/services/github.d.ts +0 -3
  416. package/dist/services/gmail-trigger.d.ts +0 -92
  417. package/dist/services/gmail.d.ts +0 -116
  418. package/dist/services/google-calendar.d.ts +0 -220
  419. package/dist/services/google-docs.d.ts +0 -197
  420. package/dist/services/google-drive.d.ts +0 -149
  421. package/dist/services/google-sheets.d.ts +0 -165
  422. package/dist/services/http.d.ts +0 -120
  423. package/dist/services/jira.d.ts +0 -3
  424. package/dist/services/linear.d.ts +0 -163
  425. package/dist/services/mysql.d.ts +0 -91
  426. package/dist/services/outlook-trigger.d.ts +0 -121
  427. package/dist/services/outlook.d.ts +0 -237
  428. package/dist/services/postgres.d.ts +0 -83
  429. package/dist/services/slack-socket.d.ts +0 -18
  430. package/dist/services/slack.d.ts +0 -3
  431. package/dist/services/whatsapp.d.ts +0 -311
  432. package/dist/slack.d.ts +0 -3
  433. package/dist/slack.d.ts.map +0 -1
  434. package/dist/slack.js +0 -11
  435. package/dist/slack.js.map +0 -1
@@ -0,0 +1,1012 @@
1
+ /**
2
+ * Type definitions for GitHub Copilot SDK integration with marktoflow
3
+ *
4
+ * These types enable deep integration with the GitHub Copilot SDK for
5
+ * AI-powered workflows with tools, MCP servers, custom agents, and more.
6
+ */
7
+ import { z } from 'zod';
8
+ /**
9
+ * Log levels for the Copilot CLI
10
+ */
11
+ export type LogLevel = 'none' | 'error' | 'warning' | 'info' | 'debug' | 'all';
12
+ /**
13
+ * Connection states for the Copilot client
14
+ */
15
+ export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'error';
16
+ /**
17
+ * Tool result types
18
+ */
19
+ export type ToolResultType = 'success' | 'failure' | 'rejected' | 'denied';
20
+ /**
21
+ * Permission request kinds
22
+ */
23
+ export type PermissionKind = 'shell' | 'write' | 'mcp' | 'read' | 'url';
24
+ /**
25
+ * Permission result kinds
26
+ */
27
+ export type PermissionResultKind = 'approved' | 'denied-by-rules' | 'denied-no-approval-rule-and-could-not-request-from-user' | 'denied-interactively-by-user';
28
+ /**
29
+ * Options for creating a CopilotClient
30
+ */
31
+ export interface CopilotClientOptions {
32
+ /** Path to the Copilot CLI executable */
33
+ cliPath?: string;
34
+ /** Extra arguments to pass to the CLI */
35
+ cliArgs?: string[];
36
+ /** Working directory for the CLI process */
37
+ cwd?: string;
38
+ /** Port for TCP mode */
39
+ port?: number;
40
+ /** Use stdio transport instead of TCP */
41
+ useStdio?: boolean;
42
+ /** URL of existing Copilot CLI server */
43
+ cliUrl?: string;
44
+ /** Log level for the CLI server */
45
+ logLevel?: LogLevel;
46
+ /** Auto-start the CLI server on first use */
47
+ autoStart?: boolean;
48
+ /** Auto-restart if CLI crashes */
49
+ autoRestart?: boolean;
50
+ /** Environment variables for CLI process */
51
+ env?: Record<string, string | undefined>;
52
+ }
53
+ /**
54
+ * Binary result from a tool
55
+ */
56
+ export interface ToolBinaryResult {
57
+ data: string;
58
+ mimeType: string;
59
+ type: string;
60
+ description?: string;
61
+ }
62
+ /**
63
+ * Structured tool result
64
+ */
65
+ export interface ToolResultObject {
66
+ textResultForLlm: string;
67
+ binaryResultsForLlm?: ToolBinaryResult[];
68
+ resultType: ToolResultType;
69
+ error?: string;
70
+ sessionLog?: string;
71
+ toolTelemetry?: Record<string, unknown>;
72
+ }
73
+ /**
74
+ * Tool result can be string or object
75
+ */
76
+ export type ToolResult = string | ToolResultObject;
77
+ /**
78
+ * Information passed to tool handler
79
+ */
80
+ export interface ToolInvocation {
81
+ sessionId: string;
82
+ toolCallId: string;
83
+ toolName: string;
84
+ arguments: unknown;
85
+ }
86
+ /**
87
+ * Tool handler function type
88
+ */
89
+ export type ToolHandler<TArgs = unknown> = (args: TArgs, invocation: ToolInvocation) => Promise<unknown> | unknown;
90
+ /**
91
+ * Tool definition for the Copilot SDK
92
+ */
93
+ export interface ToolDefinition<TArgs = unknown> {
94
+ name: string;
95
+ description?: string;
96
+ parameters?: z.ZodType<TArgs> | Record<string, unknown>;
97
+ handler: ToolHandler<TArgs>;
98
+ }
99
+ /**
100
+ * Base MCP server configuration
101
+ */
102
+ interface McpServerConfigBase {
103
+ /** List of tools to include. [] = none, "*" = all */
104
+ tools: string[] | '*';
105
+ /** Server type */
106
+ type?: 'local' | 'stdio' | 'http' | 'sse';
107
+ /** Timeout in milliseconds */
108
+ timeout?: number;
109
+ }
110
+ /**
111
+ * Local/stdio MCP server configuration
112
+ */
113
+ export interface McpLocalServerConfig extends McpServerConfigBase {
114
+ type?: 'local' | 'stdio';
115
+ command: string;
116
+ args: string[];
117
+ env?: Record<string, string>;
118
+ cwd?: string;
119
+ }
120
+ /**
121
+ * Remote MCP server configuration (HTTP/SSE)
122
+ */
123
+ export interface McpRemoteServerConfig extends McpServerConfigBase {
124
+ type: 'http' | 'sse';
125
+ url: string;
126
+ headers?: Record<string, string>;
127
+ }
128
+ /**
129
+ * Union type for MCP server configurations
130
+ */
131
+ export type McpServerConfig = McpLocalServerConfig | McpRemoteServerConfig;
132
+ /**
133
+ * Configuration for a custom agent
134
+ */
135
+ export interface CustomAgentConfig {
136
+ /** Unique name */
137
+ name: string;
138
+ /** Display name for UI */
139
+ displayName?: string;
140
+ /** Description of what the agent does */
141
+ description?: string;
142
+ /** List of tool names the agent can use (null = all) */
143
+ tools?: string[] | null;
144
+ /** System prompt for the agent */
145
+ prompt: string;
146
+ /** MCP servers specific to this agent */
147
+ mcpServers?: Record<string, McpServerConfig>;
148
+ /** Whether available for model inference */
149
+ infer?: boolean;
150
+ }
151
+ /**
152
+ * Permission request from the server
153
+ */
154
+ export interface PermissionRequest {
155
+ kind: PermissionKind;
156
+ toolCallId?: string;
157
+ [key: string]: unknown;
158
+ }
159
+ /**
160
+ * Permission request result
161
+ */
162
+ export interface PermissionRequestResult {
163
+ kind: PermissionResultKind;
164
+ rules?: unknown[];
165
+ }
166
+ /**
167
+ * Permission handler function
168
+ */
169
+ export type PermissionHandler = (request: PermissionRequest, invocation: {
170
+ sessionId: string;
171
+ }) => Promise<PermissionRequestResult> | PermissionRequestResult;
172
+ /**
173
+ * Append mode: SDK foundation + optional custom content
174
+ */
175
+ export interface SystemMessageAppendConfig {
176
+ mode?: 'append';
177
+ content?: string;
178
+ }
179
+ /**
180
+ * Replace mode: Full control over system message
181
+ */
182
+ export interface SystemMessageReplaceConfig {
183
+ mode: 'replace';
184
+ content: string;
185
+ }
186
+ /**
187
+ * System message configuration
188
+ */
189
+ export type SystemMessageConfig = SystemMessageAppendConfig | SystemMessageReplaceConfig;
190
+ /**
191
+ * Custom API provider configuration
192
+ */
193
+ export interface ProviderConfig {
194
+ type?: 'openai' | 'azure' | 'anthropic';
195
+ wireApi?: 'completions' | 'responses';
196
+ baseUrl: string;
197
+ apiKey?: string;
198
+ bearerToken?: string;
199
+ azure?: {
200
+ apiVersion?: string;
201
+ };
202
+ }
203
+ /**
204
+ * Configuration for infinite sessions with auto-compaction
205
+ */
206
+ export interface InfiniteSessionConfig {
207
+ enabled?: boolean;
208
+ backgroundCompactionThreshold?: number;
209
+ bufferExhaustionThreshold?: number;
210
+ }
211
+ /**
212
+ * Configuration for creating a session
213
+ */
214
+ export interface SessionConfig {
215
+ /** Optional custom session ID */
216
+ sessionId?: string;
217
+ /** Model to use */
218
+ model?: string;
219
+ /** Override config directory */
220
+ configDir?: string;
221
+ /** Tools exposed to the CLI */
222
+ tools?: ToolDefinition[];
223
+ /** System message configuration */
224
+ systemMessage?: SystemMessageConfig;
225
+ /** List of tool names to allow */
226
+ availableTools?: string[];
227
+ /** List of tool names to disable */
228
+ excludedTools?: string[];
229
+ /** Custom provider (BYOK) */
230
+ provider?: ProviderConfig;
231
+ /** Permission handler */
232
+ onPermissionRequest?: PermissionHandler;
233
+ /** Enable streaming */
234
+ streaming?: boolean;
235
+ /** MCP server configurations */
236
+ mcpServers?: Record<string, McpServerConfig>;
237
+ /** Custom agent configurations */
238
+ customAgents?: CustomAgentConfig[];
239
+ /** Directories to load skills from */
240
+ skillDirectories?: string[];
241
+ /** List of skill names to disable */
242
+ disabledSkills?: string[];
243
+ /** Infinite session configuration */
244
+ infiniteSessions?: InfiniteSessionConfig;
245
+ }
246
+ /**
247
+ * Configuration for resuming a session
248
+ */
249
+ export type ResumeSessionConfig = Pick<SessionConfig, 'tools' | 'provider' | 'streaming' | 'onPermissionRequest' | 'mcpServers' | 'customAgents' | 'skillDirectories' | 'disabledSkills'>;
250
+ /**
251
+ * File or directory attachment
252
+ */
253
+ export interface Attachment {
254
+ type: 'file' | 'directory';
255
+ path: string;
256
+ displayName?: string;
257
+ }
258
+ /**
259
+ * Options for sending a message
260
+ */
261
+ export interface MessageOptions {
262
+ prompt: string;
263
+ attachments?: Attachment[];
264
+ mode?: 'enqueue' | 'immediate';
265
+ }
266
+ /**
267
+ * Base session event
268
+ */
269
+ export interface SessionEventBase {
270
+ id: string;
271
+ timestamp: string;
272
+ parentId: string | null;
273
+ ephemeral?: boolean;
274
+ }
275
+ /**
276
+ * Assistant message event
277
+ */
278
+ export interface AssistantMessageEvent extends SessionEventBase {
279
+ type: 'assistant.message';
280
+ data: {
281
+ messageId: string;
282
+ content: string;
283
+ toolRequests?: Array<{
284
+ toolCallId: string;
285
+ name: string;
286
+ arguments?: unknown;
287
+ }>;
288
+ };
289
+ }
290
+ /**
291
+ * Assistant message delta (streaming)
292
+ */
293
+ export interface AssistantMessageDeltaEvent extends SessionEventBase {
294
+ type: 'assistant.message_delta';
295
+ data: {
296
+ deltaContent: string;
297
+ messageId?: string;
298
+ };
299
+ }
300
+ /**
301
+ * User message event
302
+ */
303
+ export interface UserMessageEvent extends SessionEventBase {
304
+ type: 'user.message';
305
+ data: {
306
+ content: string;
307
+ attachments?: Attachment[];
308
+ };
309
+ }
310
+ /**
311
+ * Tool result event
312
+ */
313
+ export interface ToolResultEvent extends SessionEventBase {
314
+ type: 'tool.result';
315
+ data: {
316
+ toolCallId: string;
317
+ toolName: string;
318
+ result: ToolResult;
319
+ };
320
+ }
321
+ /**
322
+ * Session idle event
323
+ */
324
+ export interface SessionIdleEvent extends SessionEventBase {
325
+ type: 'session.idle';
326
+ data: Record<string, never>;
327
+ }
328
+ /**
329
+ * Session error event
330
+ */
331
+ export interface SessionErrorEvent extends SessionEventBase {
332
+ type: 'session.error';
333
+ data: {
334
+ message: string;
335
+ code?: string;
336
+ };
337
+ }
338
+ /**
339
+ * Union of all session events
340
+ */
341
+ export type SessionEvent = AssistantMessageEvent | AssistantMessageDeltaEvent | UserMessageEvent | ToolResultEvent | SessionIdleEvent | SessionErrorEvent;
342
+ /**
343
+ * Session event handler
344
+ */
345
+ export type SessionEventHandler = (event: SessionEvent) => void;
346
+ /**
347
+ * Model capabilities
348
+ */
349
+ export interface ModelCapabilities {
350
+ supports: {
351
+ vision: boolean;
352
+ };
353
+ limits: {
354
+ max_prompt_tokens?: number;
355
+ max_context_window_tokens: number;
356
+ vision?: {
357
+ supported_media_types: string[];
358
+ max_prompt_images: number;
359
+ max_prompt_image_size: number;
360
+ };
361
+ };
362
+ }
363
+ /**
364
+ * Model policy state
365
+ */
366
+ export interface ModelPolicy {
367
+ state: 'enabled' | 'disabled' | 'unconfigured';
368
+ terms: string;
369
+ }
370
+ /**
371
+ * Model billing info
372
+ */
373
+ export interface ModelBilling {
374
+ multiplier: number;
375
+ }
376
+ /**
377
+ * Information about an available model
378
+ */
379
+ export interface ModelInfo {
380
+ id: string;
381
+ name: string;
382
+ capabilities: ModelCapabilities;
383
+ policy?: ModelPolicy;
384
+ billing?: ModelBilling;
385
+ }
386
+ /**
387
+ * Metadata about a session
388
+ */
389
+ export interface SessionMetadata {
390
+ sessionId: string;
391
+ startTime: Date;
392
+ modifiedTime: Date;
393
+ summary?: string;
394
+ isRemote: boolean;
395
+ }
396
+ /**
397
+ * CLI status response
398
+ */
399
+ export interface StatusResponse {
400
+ version: string;
401
+ protocolVersion: number;
402
+ }
403
+ /**
404
+ * Authentication status response
405
+ */
406
+ export interface AuthStatusResponse {
407
+ isAuthenticated: boolean;
408
+ authType?: 'user' | 'env' | 'gh-cli' | 'hmac' | 'api-key' | 'token';
409
+ host?: string;
410
+ login?: string;
411
+ statusMessage?: string;
412
+ }
413
+ /**
414
+ * Result from a Copilot query
415
+ */
416
+ export interface CopilotResult {
417
+ /** Response content */
418
+ content: string;
419
+ /** Session ID for resumption */
420
+ sessionId: string;
421
+ /** All events from the session */
422
+ events: SessionEvent[];
423
+ /** Tool requests made during the session */
424
+ toolRequests?: Array<{
425
+ toolCallId: string;
426
+ name: string;
427
+ arguments?: unknown;
428
+ }>;
429
+ }
430
+ /**
431
+ * Streaming callback
432
+ */
433
+ export type StreamCallback = (chunk: string, event: SessionEvent) => void | Promise<void>;
434
+ export declare const ToolDefinitionSchema: z.ZodObject<{
435
+ name: z.ZodString;
436
+ description: z.ZodOptional<z.ZodString>;
437
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ name: string;
440
+ description?: string | undefined;
441
+ parameters?: Record<string, unknown> | undefined;
442
+ }, {
443
+ name: string;
444
+ description?: string | undefined;
445
+ parameters?: Record<string, unknown> | undefined;
446
+ }>;
447
+ export declare const McpLocalServerConfigSchema: z.ZodObject<{
448
+ type: z.ZodOptional<z.ZodEnum<["local", "stdio"]>>;
449
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
450
+ command: z.ZodString;
451
+ args: z.ZodArray<z.ZodString, "many">;
452
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
453
+ cwd: z.ZodOptional<z.ZodString>;
454
+ timeout: z.ZodOptional<z.ZodNumber>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ tools: string[] | "*";
457
+ command: string;
458
+ args: string[];
459
+ type?: "local" | "stdio" | undefined;
460
+ timeout?: number | undefined;
461
+ env?: Record<string, string> | undefined;
462
+ cwd?: string | undefined;
463
+ }, {
464
+ tools: string[] | "*";
465
+ command: string;
466
+ args: string[];
467
+ type?: "local" | "stdio" | undefined;
468
+ timeout?: number | undefined;
469
+ env?: Record<string, string> | undefined;
470
+ cwd?: string | undefined;
471
+ }>;
472
+ export declare const McpRemoteServerConfigSchema: z.ZodObject<{
473
+ type: z.ZodEnum<["http", "sse"]>;
474
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
475
+ url: z.ZodString;
476
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
477
+ timeout: z.ZodOptional<z.ZodNumber>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ url: string;
480
+ type: "http" | "sse";
481
+ tools: string[] | "*";
482
+ headers?: Record<string, string> | undefined;
483
+ timeout?: number | undefined;
484
+ }, {
485
+ url: string;
486
+ type: "http" | "sse";
487
+ tools: string[] | "*";
488
+ headers?: Record<string, string> | undefined;
489
+ timeout?: number | undefined;
490
+ }>;
491
+ export declare const McpServerConfigSchema: z.ZodUnion<[z.ZodObject<{
492
+ type: z.ZodOptional<z.ZodEnum<["local", "stdio"]>>;
493
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
494
+ command: z.ZodString;
495
+ args: z.ZodArray<z.ZodString, "many">;
496
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
497
+ cwd: z.ZodOptional<z.ZodString>;
498
+ timeout: z.ZodOptional<z.ZodNumber>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ tools: string[] | "*";
501
+ command: string;
502
+ args: string[];
503
+ type?: "local" | "stdio" | undefined;
504
+ timeout?: number | undefined;
505
+ env?: Record<string, string> | undefined;
506
+ cwd?: string | undefined;
507
+ }, {
508
+ tools: string[] | "*";
509
+ command: string;
510
+ args: string[];
511
+ type?: "local" | "stdio" | undefined;
512
+ timeout?: number | undefined;
513
+ env?: Record<string, string> | undefined;
514
+ cwd?: string | undefined;
515
+ }>, z.ZodObject<{
516
+ type: z.ZodEnum<["http", "sse"]>;
517
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
518
+ url: z.ZodString;
519
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
520
+ timeout: z.ZodOptional<z.ZodNumber>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ url: string;
523
+ type: "http" | "sse";
524
+ tools: string[] | "*";
525
+ headers?: Record<string, string> | undefined;
526
+ timeout?: number | undefined;
527
+ }, {
528
+ url: string;
529
+ type: "http" | "sse";
530
+ tools: string[] | "*";
531
+ headers?: Record<string, string> | undefined;
532
+ timeout?: number | undefined;
533
+ }>]>;
534
+ export declare const CustomAgentConfigSchema: z.ZodObject<{
535
+ name: z.ZodString;
536
+ displayName: z.ZodOptional<z.ZodString>;
537
+ description: z.ZodOptional<z.ZodString>;
538
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
539
+ prompt: z.ZodString;
540
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
541
+ type: z.ZodOptional<z.ZodEnum<["local", "stdio"]>>;
542
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
543
+ command: z.ZodString;
544
+ args: z.ZodArray<z.ZodString, "many">;
545
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
546
+ cwd: z.ZodOptional<z.ZodString>;
547
+ timeout: z.ZodOptional<z.ZodNumber>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ tools: string[] | "*";
550
+ command: string;
551
+ args: string[];
552
+ type?: "local" | "stdio" | undefined;
553
+ timeout?: number | undefined;
554
+ env?: Record<string, string> | undefined;
555
+ cwd?: string | undefined;
556
+ }, {
557
+ tools: string[] | "*";
558
+ command: string;
559
+ args: string[];
560
+ type?: "local" | "stdio" | undefined;
561
+ timeout?: number | undefined;
562
+ env?: Record<string, string> | undefined;
563
+ cwd?: string | undefined;
564
+ }>, z.ZodObject<{
565
+ type: z.ZodEnum<["http", "sse"]>;
566
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
567
+ url: z.ZodString;
568
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
569
+ timeout: z.ZodOptional<z.ZodNumber>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ url: string;
572
+ type: "http" | "sse";
573
+ tools: string[] | "*";
574
+ headers?: Record<string, string> | undefined;
575
+ timeout?: number | undefined;
576
+ }, {
577
+ url: string;
578
+ type: "http" | "sse";
579
+ tools: string[] | "*";
580
+ headers?: Record<string, string> | undefined;
581
+ timeout?: number | undefined;
582
+ }>]>>>;
583
+ infer: z.ZodOptional<z.ZodBoolean>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ name: string;
586
+ prompt: string;
587
+ displayName?: string | undefined;
588
+ description?: string | undefined;
589
+ tools?: string[] | null | undefined;
590
+ mcpServers?: Record<string, {
591
+ tools: string[] | "*";
592
+ command: string;
593
+ args: string[];
594
+ type?: "local" | "stdio" | undefined;
595
+ timeout?: number | undefined;
596
+ env?: Record<string, string> | undefined;
597
+ cwd?: string | undefined;
598
+ } | {
599
+ url: string;
600
+ type: "http" | "sse";
601
+ tools: string[] | "*";
602
+ headers?: Record<string, string> | undefined;
603
+ timeout?: number | undefined;
604
+ }> | undefined;
605
+ infer?: boolean | undefined;
606
+ }, {
607
+ name: string;
608
+ prompt: string;
609
+ displayName?: string | undefined;
610
+ description?: string | undefined;
611
+ tools?: string[] | null | undefined;
612
+ mcpServers?: Record<string, {
613
+ tools: string[] | "*";
614
+ command: string;
615
+ args: string[];
616
+ type?: "local" | "stdio" | undefined;
617
+ timeout?: number | undefined;
618
+ env?: Record<string, string> | undefined;
619
+ cwd?: string | undefined;
620
+ } | {
621
+ url: string;
622
+ type: "http" | "sse";
623
+ tools: string[] | "*";
624
+ headers?: Record<string, string> | undefined;
625
+ timeout?: number | undefined;
626
+ }> | undefined;
627
+ infer?: boolean | undefined;
628
+ }>;
629
+ export declare const ProviderConfigSchema: z.ZodObject<{
630
+ type: z.ZodOptional<z.ZodEnum<["openai", "azure", "anthropic"]>>;
631
+ wireApi: z.ZodOptional<z.ZodEnum<["completions", "responses"]>>;
632
+ baseUrl: z.ZodString;
633
+ apiKey: z.ZodOptional<z.ZodString>;
634
+ bearerToken: z.ZodOptional<z.ZodString>;
635
+ azure: z.ZodOptional<z.ZodObject<{
636
+ apiVersion: z.ZodOptional<z.ZodString>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ apiVersion?: string | undefined;
639
+ }, {
640
+ apiVersion?: string | undefined;
641
+ }>>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ baseUrl: string;
644
+ type?: "openai" | "anthropic" | "azure" | undefined;
645
+ apiKey?: string | undefined;
646
+ azure?: {
647
+ apiVersion?: string | undefined;
648
+ } | undefined;
649
+ wireApi?: "completions" | "responses" | undefined;
650
+ bearerToken?: string | undefined;
651
+ }, {
652
+ baseUrl: string;
653
+ type?: "openai" | "anthropic" | "azure" | undefined;
654
+ apiKey?: string | undefined;
655
+ azure?: {
656
+ apiVersion?: string | undefined;
657
+ } | undefined;
658
+ wireApi?: "completions" | "responses" | undefined;
659
+ bearerToken?: string | undefined;
660
+ }>;
661
+ export declare const SessionConfigSchema: z.ZodObject<{
662
+ sessionId: z.ZodOptional<z.ZodString>;
663
+ model: z.ZodOptional<z.ZodString>;
664
+ configDir: z.ZodOptional<z.ZodString>;
665
+ systemMessage: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
666
+ mode: z.ZodOptional<z.ZodLiteral<"append">>;
667
+ content: z.ZodOptional<z.ZodString>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ content?: string | undefined;
670
+ mode?: "append" | undefined;
671
+ }, {
672
+ content?: string | undefined;
673
+ mode?: "append" | undefined;
674
+ }>, z.ZodObject<{
675
+ mode: z.ZodLiteral<"replace">;
676
+ content: z.ZodString;
677
+ }, "strip", z.ZodTypeAny, {
678
+ content: string;
679
+ mode: "replace";
680
+ }, {
681
+ content: string;
682
+ mode: "replace";
683
+ }>]>>;
684
+ availableTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
685
+ excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
686
+ provider: z.ZodOptional<z.ZodObject<{
687
+ type: z.ZodOptional<z.ZodEnum<["openai", "azure", "anthropic"]>>;
688
+ wireApi: z.ZodOptional<z.ZodEnum<["completions", "responses"]>>;
689
+ baseUrl: z.ZodString;
690
+ apiKey: z.ZodOptional<z.ZodString>;
691
+ bearerToken: z.ZodOptional<z.ZodString>;
692
+ azure: z.ZodOptional<z.ZodObject<{
693
+ apiVersion: z.ZodOptional<z.ZodString>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ apiVersion?: string | undefined;
696
+ }, {
697
+ apiVersion?: string | undefined;
698
+ }>>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ baseUrl: string;
701
+ type?: "openai" | "anthropic" | "azure" | undefined;
702
+ apiKey?: string | undefined;
703
+ azure?: {
704
+ apiVersion?: string | undefined;
705
+ } | undefined;
706
+ wireApi?: "completions" | "responses" | undefined;
707
+ bearerToken?: string | undefined;
708
+ }, {
709
+ baseUrl: string;
710
+ type?: "openai" | "anthropic" | "azure" | undefined;
711
+ apiKey?: string | undefined;
712
+ azure?: {
713
+ apiVersion?: string | undefined;
714
+ } | undefined;
715
+ wireApi?: "completions" | "responses" | undefined;
716
+ bearerToken?: string | undefined;
717
+ }>>;
718
+ streaming: z.ZodOptional<z.ZodBoolean>;
719
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
720
+ type: z.ZodOptional<z.ZodEnum<["local", "stdio"]>>;
721
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
722
+ command: z.ZodString;
723
+ args: z.ZodArray<z.ZodString, "many">;
724
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
725
+ cwd: z.ZodOptional<z.ZodString>;
726
+ timeout: z.ZodOptional<z.ZodNumber>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ tools: string[] | "*";
729
+ command: string;
730
+ args: string[];
731
+ type?: "local" | "stdio" | undefined;
732
+ timeout?: number | undefined;
733
+ env?: Record<string, string> | undefined;
734
+ cwd?: string | undefined;
735
+ }, {
736
+ tools: string[] | "*";
737
+ command: string;
738
+ args: string[];
739
+ type?: "local" | "stdio" | undefined;
740
+ timeout?: number | undefined;
741
+ env?: Record<string, string> | undefined;
742
+ cwd?: string | undefined;
743
+ }>, z.ZodObject<{
744
+ type: z.ZodEnum<["http", "sse"]>;
745
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
746
+ url: z.ZodString;
747
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
748
+ timeout: z.ZodOptional<z.ZodNumber>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ url: string;
751
+ type: "http" | "sse";
752
+ tools: string[] | "*";
753
+ headers?: Record<string, string> | undefined;
754
+ timeout?: number | undefined;
755
+ }, {
756
+ url: string;
757
+ type: "http" | "sse";
758
+ tools: string[] | "*";
759
+ headers?: Record<string, string> | undefined;
760
+ timeout?: number | undefined;
761
+ }>]>>>;
762
+ customAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
763
+ name: z.ZodString;
764
+ displayName: z.ZodOptional<z.ZodString>;
765
+ description: z.ZodOptional<z.ZodString>;
766
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
767
+ prompt: z.ZodString;
768
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
769
+ type: z.ZodOptional<z.ZodEnum<["local", "stdio"]>>;
770
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
771
+ command: z.ZodString;
772
+ args: z.ZodArray<z.ZodString, "many">;
773
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
774
+ cwd: z.ZodOptional<z.ZodString>;
775
+ timeout: z.ZodOptional<z.ZodNumber>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ tools: string[] | "*";
778
+ command: string;
779
+ args: string[];
780
+ type?: "local" | "stdio" | undefined;
781
+ timeout?: number | undefined;
782
+ env?: Record<string, string> | undefined;
783
+ cwd?: string | undefined;
784
+ }, {
785
+ tools: string[] | "*";
786
+ command: string;
787
+ args: string[];
788
+ type?: "local" | "stdio" | undefined;
789
+ timeout?: number | undefined;
790
+ env?: Record<string, string> | undefined;
791
+ cwd?: string | undefined;
792
+ }>, z.ZodObject<{
793
+ type: z.ZodEnum<["http", "sse"]>;
794
+ tools: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"*">]>;
795
+ url: z.ZodString;
796
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
797
+ timeout: z.ZodOptional<z.ZodNumber>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ url: string;
800
+ type: "http" | "sse";
801
+ tools: string[] | "*";
802
+ headers?: Record<string, string> | undefined;
803
+ timeout?: number | undefined;
804
+ }, {
805
+ url: string;
806
+ type: "http" | "sse";
807
+ tools: string[] | "*";
808
+ headers?: Record<string, string> | undefined;
809
+ timeout?: number | undefined;
810
+ }>]>>>;
811
+ infer: z.ZodOptional<z.ZodBoolean>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ name: string;
814
+ prompt: string;
815
+ displayName?: string | undefined;
816
+ description?: string | undefined;
817
+ tools?: string[] | null | undefined;
818
+ mcpServers?: Record<string, {
819
+ tools: string[] | "*";
820
+ command: string;
821
+ args: string[];
822
+ type?: "local" | "stdio" | undefined;
823
+ timeout?: number | undefined;
824
+ env?: Record<string, string> | undefined;
825
+ cwd?: string | undefined;
826
+ } | {
827
+ url: string;
828
+ type: "http" | "sse";
829
+ tools: string[] | "*";
830
+ headers?: Record<string, string> | undefined;
831
+ timeout?: number | undefined;
832
+ }> | undefined;
833
+ infer?: boolean | undefined;
834
+ }, {
835
+ name: string;
836
+ prompt: string;
837
+ displayName?: string | undefined;
838
+ description?: string | undefined;
839
+ tools?: string[] | null | undefined;
840
+ mcpServers?: Record<string, {
841
+ tools: string[] | "*";
842
+ command: string;
843
+ args: string[];
844
+ type?: "local" | "stdio" | undefined;
845
+ timeout?: number | undefined;
846
+ env?: Record<string, string> | undefined;
847
+ cwd?: string | undefined;
848
+ } | {
849
+ url: string;
850
+ type: "http" | "sse";
851
+ tools: string[] | "*";
852
+ headers?: Record<string, string> | undefined;
853
+ timeout?: number | undefined;
854
+ }> | undefined;
855
+ infer?: boolean | undefined;
856
+ }>, "many">>;
857
+ skillDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
858
+ disabledSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
859
+ infiniteSessions: z.ZodOptional<z.ZodObject<{
860
+ enabled: z.ZodOptional<z.ZodBoolean>;
861
+ backgroundCompactionThreshold: z.ZodOptional<z.ZodNumber>;
862
+ bufferExhaustionThreshold: z.ZodOptional<z.ZodNumber>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ enabled?: boolean | undefined;
865
+ backgroundCompactionThreshold?: number | undefined;
866
+ bufferExhaustionThreshold?: number | undefined;
867
+ }, {
868
+ enabled?: boolean | undefined;
869
+ backgroundCompactionThreshold?: number | undefined;
870
+ bufferExhaustionThreshold?: number | undefined;
871
+ }>>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ provider?: {
874
+ baseUrl: string;
875
+ type?: "openai" | "anthropic" | "azure" | undefined;
876
+ apiKey?: string | undefined;
877
+ azure?: {
878
+ apiVersion?: string | undefined;
879
+ } | undefined;
880
+ wireApi?: "completions" | "responses" | undefined;
881
+ bearerToken?: string | undefined;
882
+ } | undefined;
883
+ streaming?: boolean | undefined;
884
+ mcpServers?: Record<string, {
885
+ tools: string[] | "*";
886
+ command: string;
887
+ args: string[];
888
+ type?: "local" | "stdio" | undefined;
889
+ timeout?: number | undefined;
890
+ env?: Record<string, string> | undefined;
891
+ cwd?: string | undefined;
892
+ } | {
893
+ url: string;
894
+ type: "http" | "sse";
895
+ tools: string[] | "*";
896
+ headers?: Record<string, string> | undefined;
897
+ timeout?: number | undefined;
898
+ }> | undefined;
899
+ customAgents?: {
900
+ name: string;
901
+ prompt: string;
902
+ displayName?: string | undefined;
903
+ description?: string | undefined;
904
+ tools?: string[] | null | undefined;
905
+ mcpServers?: Record<string, {
906
+ tools: string[] | "*";
907
+ command: string;
908
+ args: string[];
909
+ type?: "local" | "stdio" | undefined;
910
+ timeout?: number | undefined;
911
+ env?: Record<string, string> | undefined;
912
+ cwd?: string | undefined;
913
+ } | {
914
+ url: string;
915
+ type: "http" | "sse";
916
+ tools: string[] | "*";
917
+ headers?: Record<string, string> | undefined;
918
+ timeout?: number | undefined;
919
+ }> | undefined;
920
+ infer?: boolean | undefined;
921
+ }[] | undefined;
922
+ skillDirectories?: string[] | undefined;
923
+ disabledSkills?: string[] | undefined;
924
+ model?: string | undefined;
925
+ systemMessage?: {
926
+ content?: string | undefined;
927
+ mode?: "append" | undefined;
928
+ } | {
929
+ content: string;
930
+ mode: "replace";
931
+ } | undefined;
932
+ availableTools?: string[] | undefined;
933
+ excludedTools?: string[] | undefined;
934
+ sessionId?: string | undefined;
935
+ configDir?: string | undefined;
936
+ infiniteSessions?: {
937
+ enabled?: boolean | undefined;
938
+ backgroundCompactionThreshold?: number | undefined;
939
+ bufferExhaustionThreshold?: number | undefined;
940
+ } | undefined;
941
+ }, {
942
+ provider?: {
943
+ baseUrl: string;
944
+ type?: "openai" | "anthropic" | "azure" | undefined;
945
+ apiKey?: string | undefined;
946
+ azure?: {
947
+ apiVersion?: string | undefined;
948
+ } | undefined;
949
+ wireApi?: "completions" | "responses" | undefined;
950
+ bearerToken?: string | undefined;
951
+ } | undefined;
952
+ streaming?: boolean | undefined;
953
+ mcpServers?: Record<string, {
954
+ tools: string[] | "*";
955
+ command: string;
956
+ args: string[];
957
+ type?: "local" | "stdio" | undefined;
958
+ timeout?: number | undefined;
959
+ env?: Record<string, string> | undefined;
960
+ cwd?: string | undefined;
961
+ } | {
962
+ url: string;
963
+ type: "http" | "sse";
964
+ tools: string[] | "*";
965
+ headers?: Record<string, string> | undefined;
966
+ timeout?: number | undefined;
967
+ }> | undefined;
968
+ customAgents?: {
969
+ name: string;
970
+ prompt: string;
971
+ displayName?: string | undefined;
972
+ description?: string | undefined;
973
+ tools?: string[] | null | undefined;
974
+ mcpServers?: Record<string, {
975
+ tools: string[] | "*";
976
+ command: string;
977
+ args: string[];
978
+ type?: "local" | "stdio" | undefined;
979
+ timeout?: number | undefined;
980
+ env?: Record<string, string> | undefined;
981
+ cwd?: string | undefined;
982
+ } | {
983
+ url: string;
984
+ type: "http" | "sse";
985
+ tools: string[] | "*";
986
+ headers?: Record<string, string> | undefined;
987
+ timeout?: number | undefined;
988
+ }> | undefined;
989
+ infer?: boolean | undefined;
990
+ }[] | undefined;
991
+ skillDirectories?: string[] | undefined;
992
+ disabledSkills?: string[] | undefined;
993
+ model?: string | undefined;
994
+ systemMessage?: {
995
+ content?: string | undefined;
996
+ mode?: "append" | undefined;
997
+ } | {
998
+ content: string;
999
+ mode: "replace";
1000
+ } | undefined;
1001
+ availableTools?: string[] | undefined;
1002
+ excludedTools?: string[] | undefined;
1003
+ sessionId?: string | undefined;
1004
+ configDir?: string | undefined;
1005
+ infiniteSessions?: {
1006
+ enabled?: boolean | undefined;
1007
+ backgroundCompactionThreshold?: number | undefined;
1008
+ bufferExhaustionThreshold?: number | undefined;
1009
+ } | undefined;
1010
+ }>;
1011
+ export {};
1012
+ //# sourceMappingURL=github-copilot-types.d.ts.map