mtmsdk 0.0.36 → 0.0.39

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 (243) hide show
  1. package/dist/api_hatchet/client/client.gen.d.ts.map +1 -1
  2. package/dist/api_hatchet/client/client.gen.js +8 -1
  3. package/dist/api_hatchet/client/client.gen.js.map +1 -1
  4. package/dist/api_hatchet/index.d.ts +2 -2
  5. package/dist/api_hatchet/index.d.ts.map +1 -1
  6. package/dist/api_hatchet/index.js +2 -2
  7. package/dist/api_hatchet/index.js.map +1 -1
  8. package/dist/api_hatchet/zod.gen.d.ts +3 -3
  9. package/dist/api_hatchet/zod.gen.js +53 -53
  10. package/dist/api_hatchet/zod.gen.js.map +1 -1
  11. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +73 -979
  12. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  13. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +208 -1000
  14. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  15. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -1
  16. package/dist/gomtmapi_v2/client/client.gen.js +8 -1
  17. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -1
  18. package/dist/gomtmapi_v2/index.d.ts +2 -2
  19. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  20. package/dist/gomtmapi_v2/index.js +1 -1
  21. package/dist/gomtmapi_v2/index.js.map +1 -1
  22. package/dist/gomtmapi_v2/schemas.gen.d.ts +305 -1415
  23. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  24. package/dist/gomtmapi_v2/schemas.gen.js +282 -1407
  25. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  26. package/dist/gomtmapi_v2/sdk.gen.d.ts +63 -513
  27. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  28. package/dist/gomtmapi_v2/sdk.gen.js +94 -537
  29. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  30. package/dist/gomtmapi_v2/types.gen.d.ts +443 -1531
  31. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  32. package/dist/gomtmapi_v2/zod.gen.d.ts +293 -1292
  33. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  34. package/dist/gomtmapi_v2/zod.gen.js +187 -793
  35. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  36. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4 -158
  37. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  38. package/dist/mtgate_api/@tanstack/react-query.gen.js +17 -212
  39. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  40. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -1
  41. package/dist/mtgate_api/client/client.gen.js +8 -1
  42. package/dist/mtgate_api/client/client.gen.js.map +1 -1
  43. package/dist/mtgate_api/index.d.ts +2 -2
  44. package/dist/mtgate_api/index.d.ts.map +1 -1
  45. package/dist/mtgate_api/index.js +1 -1
  46. package/dist/mtgate_api/index.js.map +1 -1
  47. package/dist/mtgate_api/schemas.gen.d.ts +0 -396
  48. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  49. package/dist/mtgate_api/schemas.gen.js +0 -439
  50. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  51. package/dist/mtgate_api/sdk.gen.d.ts +1 -26
  52. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  53. package/dist/mtgate_api/sdk.gen.js +0 -67
  54. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  55. package/dist/mtgate_api/types.gen.d.ts +0 -310
  56. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  57. package/dist/mtgate_api/zod.gen.d.ts +0 -771
  58. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  59. package/dist/mtgate_api/zod.gen.js +0 -249
  60. package/dist/mtgate_api/zod.gen.js.map +1 -1
  61. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -1
  62. package/dist/mtmai_api/client/client.gen.js +8 -1
  63. package/dist/mtmai_api/client/client.gen.js.map +1 -1
  64. package/dist/mtmai_api/index.d.ts +2 -2
  65. package/dist/mtmai_api/index.d.ts.map +1 -1
  66. package/dist/mtmai_api/index.js +2 -2
  67. package/dist/mtmai_api/index.js.map +1 -1
  68. package/dist/opencode/@tanstack/react-query.gen.d.ts +1903 -0
  69. package/dist/opencode/@tanstack/react-query.gen.d.ts.map +1 -0
  70. package/dist/opencode/@tanstack/react-query.gen.js +1696 -0
  71. package/dist/opencode/@tanstack/react-query.gen.js.map +1 -0
  72. package/dist/opencode/client/client.gen.d.ts +3 -0
  73. package/dist/opencode/client/client.gen.d.ts.map +1 -0
  74. package/dist/opencode/client/client.gen.js +236 -0
  75. package/dist/opencode/client/client.gen.js.map +1 -0
  76. package/dist/opencode/client/index.d.ts +9 -0
  77. package/dist/opencode/client/index.d.ts.map +1 -0
  78. package/dist/opencode/client/index.js +7 -0
  79. package/dist/opencode/client/index.js.map +1 -0
  80. package/dist/opencode/client/types.gen.d.ts +118 -0
  81. package/dist/opencode/client/types.gen.d.ts.map +1 -0
  82. package/dist/opencode/client/types.gen.js +3 -0
  83. package/dist/opencode/client/types.gen.js.map +1 -0
  84. package/dist/opencode/client/utils.gen.d.ts +34 -0
  85. package/dist/opencode/client/utils.gen.d.ts.map +1 -0
  86. package/dist/opencode/client/utils.gen.js +232 -0
  87. package/dist/opencode/client/utils.gen.js.map +1 -0
  88. package/dist/opencode/client.gen.d.ts +13 -0
  89. package/dist/opencode/client.gen.d.ts.map +1 -0
  90. package/dist/opencode/client.gen.js +4 -0
  91. package/dist/opencode/client.gen.js.map +1 -0
  92. package/dist/opencode/core/auth.gen.d.ts +19 -0
  93. package/dist/opencode/core/auth.gen.d.ts.map +1 -0
  94. package/dist/opencode/core/auth.gen.js +15 -0
  95. package/dist/opencode/core/auth.gen.js.map +1 -0
  96. package/dist/opencode/core/bodySerializer.gen.d.ts +26 -0
  97. package/dist/opencode/core/bodySerializer.gen.d.ts.map +1 -0
  98. package/dist/opencode/core/bodySerializer.gen.js +58 -0
  99. package/dist/opencode/core/bodySerializer.gen.js.map +1 -0
  100. package/dist/opencode/core/params.gen.d.ts +44 -0
  101. package/dist/opencode/core/params.gen.d.ts.map +1 -0
  102. package/dist/opencode/core/params.gen.js +101 -0
  103. package/dist/opencode/core/params.gen.js.map +1 -0
  104. package/dist/opencode/core/pathSerializer.gen.d.ts +34 -0
  105. package/dist/opencode/core/pathSerializer.gen.d.ts.map +1 -0
  106. package/dist/opencode/core/pathSerializer.gen.js +115 -0
  107. package/dist/opencode/core/pathSerializer.gen.js.map +1 -0
  108. package/dist/opencode/core/queryKeySerializer.gen.d.ts +19 -0
  109. package/dist/opencode/core/queryKeySerializer.gen.d.ts.map +1 -0
  110. package/dist/opencode/core/queryKeySerializer.gen.js +100 -0
  111. package/dist/opencode/core/queryKeySerializer.gen.js.map +1 -0
  112. package/dist/opencode/core/serverSentEvents.gen.d.ts +72 -0
  113. package/dist/opencode/core/serverSentEvents.gen.d.ts.map +1 -0
  114. package/dist/opencode/core/serverSentEvents.gen.js +138 -0
  115. package/dist/opencode/core/serverSentEvents.gen.js.map +1 -0
  116. package/dist/opencode/core/types.gen.d.ts +79 -0
  117. package/dist/opencode/core/types.gen.d.ts.map +1 -0
  118. package/dist/opencode/core/types.gen.js +3 -0
  119. package/dist/opencode/core/types.gen.js.map +1 -0
  120. package/dist/opencode/core/utils.gen.d.ts +20 -0
  121. package/dist/opencode/core/utils.gen.d.ts.map +1 -0
  122. package/dist/opencode/core/utils.gen.js +88 -0
  123. package/dist/opencode/core/utils.gen.js.map +1 -0
  124. package/dist/opencode/index.d.ts +3 -0
  125. package/dist/opencode/index.d.ts.map +1 -0
  126. package/dist/opencode/index.js +4 -0
  127. package/dist/opencode/index.js.map +1 -0
  128. package/dist/opencode/schemas.gen.d.ts +4823 -0
  129. package/dist/opencode/schemas.gen.d.ts.map +1 -0
  130. package/dist/opencode/schemas.gen.js +5816 -0
  131. package/dist/opencode/schemas.gen.js.map +1 -0
  132. package/dist/opencode/sdk.gen.d.ts +562 -0
  133. package/dist/opencode/sdk.gen.d.ts.map +1 -0
  134. package/dist/opencode/sdk.gen.js +766 -0
  135. package/dist/opencode/sdk.gen.js.map +1 -0
  136. package/dist/opencode/types.gen.d.ts +4213 -0
  137. package/dist/opencode/types.gen.d.ts.map +1 -0
  138. package/dist/opencode/types.gen.js +25 -0
  139. package/dist/opencode/types.gen.js.map +1 -0
  140. package/dist/opencode/zod.gen.d.ts +17243 -0
  141. package/dist/opencode/zod.gen.d.ts.map +1 -0
  142. package/dist/opencode/zod.gen.js +2876 -0
  143. package/dist/opencode/zod.gen.js.map +1 -0
  144. package/dist/sbapi/client/client.gen.d.ts.map +1 -1
  145. package/dist/sbapi/client/client.gen.js +8 -1
  146. package/dist/sbapi/client/client.gen.js.map +1 -1
  147. package/dist/sbapi/index.d.ts +2 -2
  148. package/dist/sbapi/index.d.ts.map +1 -1
  149. package/dist/sbapi/index.js +1 -1
  150. package/dist/sbapi/index.js.map +1 -1
  151. package/dist/sbmng/@tanstack/react-query.gen.d.ts +2418 -0
  152. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -0
  153. package/dist/sbmng/@tanstack/react-query.gen.js +2657 -0
  154. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -0
  155. package/dist/sbmng/client/client.gen.d.ts +3 -0
  156. package/dist/sbmng/client/client.gen.d.ts.map +1 -0
  157. package/dist/sbmng/client/client.gen.js +236 -0
  158. package/dist/sbmng/client/client.gen.js.map +1 -0
  159. package/dist/sbmng/client/index.d.ts +9 -0
  160. package/dist/sbmng/client/index.d.ts.map +1 -0
  161. package/dist/sbmng/client/index.js +7 -0
  162. package/dist/sbmng/client/index.js.map +1 -0
  163. package/dist/sbmng/client/types.gen.d.ts +118 -0
  164. package/dist/sbmng/client/types.gen.d.ts.map +1 -0
  165. package/dist/sbmng/client/types.gen.js +3 -0
  166. package/dist/sbmng/client/types.gen.js.map +1 -0
  167. package/dist/sbmng/client/utils.gen.d.ts +34 -0
  168. package/dist/sbmng/client/utils.gen.d.ts.map +1 -0
  169. package/dist/sbmng/client/utils.gen.js +232 -0
  170. package/dist/sbmng/client/utils.gen.js.map +1 -0
  171. package/dist/sbmng/client.gen.d.ts +13 -0
  172. package/dist/sbmng/client.gen.d.ts.map +1 -0
  173. package/dist/sbmng/client.gen.js +4 -0
  174. package/dist/sbmng/client.gen.js.map +1 -0
  175. package/dist/sbmng/core/auth.gen.d.ts +19 -0
  176. package/dist/sbmng/core/auth.gen.d.ts.map +1 -0
  177. package/dist/sbmng/core/auth.gen.js +15 -0
  178. package/dist/sbmng/core/auth.gen.js.map +1 -0
  179. package/dist/sbmng/core/bodySerializer.gen.d.ts +26 -0
  180. package/dist/sbmng/core/bodySerializer.gen.d.ts.map +1 -0
  181. package/dist/sbmng/core/bodySerializer.gen.js +58 -0
  182. package/dist/sbmng/core/bodySerializer.gen.js.map +1 -0
  183. package/dist/sbmng/core/params.gen.d.ts +44 -0
  184. package/dist/sbmng/core/params.gen.d.ts.map +1 -0
  185. package/dist/sbmng/core/params.gen.js +101 -0
  186. package/dist/sbmng/core/params.gen.js.map +1 -0
  187. package/dist/sbmng/core/pathSerializer.gen.d.ts +34 -0
  188. package/dist/sbmng/core/pathSerializer.gen.d.ts.map +1 -0
  189. package/dist/sbmng/core/pathSerializer.gen.js +115 -0
  190. package/dist/sbmng/core/pathSerializer.gen.js.map +1 -0
  191. package/dist/sbmng/core/queryKeySerializer.gen.d.ts +19 -0
  192. package/dist/sbmng/core/queryKeySerializer.gen.d.ts.map +1 -0
  193. package/dist/sbmng/core/queryKeySerializer.gen.js +100 -0
  194. package/dist/sbmng/core/queryKeySerializer.gen.js.map +1 -0
  195. package/dist/sbmng/core/serverSentEvents.gen.d.ts +72 -0
  196. package/dist/sbmng/core/serverSentEvents.gen.d.ts.map +1 -0
  197. package/dist/sbmng/core/serverSentEvents.gen.js +138 -0
  198. package/dist/sbmng/core/serverSentEvents.gen.js.map +1 -0
  199. package/dist/sbmng/core/types.gen.d.ts +79 -0
  200. package/dist/sbmng/core/types.gen.d.ts.map +1 -0
  201. package/dist/sbmng/core/types.gen.js +3 -0
  202. package/dist/sbmng/core/types.gen.js.map +1 -0
  203. package/dist/sbmng/core/utils.gen.d.ts +20 -0
  204. package/dist/sbmng/core/utils.gen.d.ts.map +1 -0
  205. package/dist/sbmng/core/utils.gen.js +88 -0
  206. package/dist/sbmng/core/utils.gen.js.map +1 -0
  207. package/dist/sbmng/index.d.ts +3 -0
  208. package/dist/sbmng/index.d.ts.map +1 -0
  209. package/dist/sbmng/index.js +3 -0
  210. package/dist/sbmng/index.js.map +1 -0
  211. package/dist/sbmng/schemas.gen.d.ts +7220 -0
  212. package/dist/sbmng/schemas.gen.d.ts.map +1 -0
  213. package/dist/sbmng/schemas.gen.js +9392 -0
  214. package/dist/sbmng/schemas.gen.js.map +1 -0
  215. package/dist/sbmng/sdk.gen.d.ts +743 -0
  216. package/dist/sbmng/sdk.gen.d.ts.map +1 -0
  217. package/dist/sbmng/sdk.gen.js +1543 -0
  218. package/dist/sbmng/sdk.gen.js.map +1 -0
  219. package/dist/sbmng/types.gen.d.ts +7003 -0
  220. package/dist/sbmng/types.gen.d.ts.map +1 -0
  221. package/dist/sbmng/types.gen.js +3 -0
  222. package/dist/sbmng/types.gen.js.map +1 -0
  223. package/dist/supabase/context.d.ts +14 -0
  224. package/dist/supabase/context.d.ts.map +1 -0
  225. package/dist/supabase/context.js +33 -0
  226. package/dist/supabase/context.js.map +1 -0
  227. package/dist/supabase/supabase-client.d.ts +1625 -304
  228. package/dist/supabase/supabase-client.d.ts.map +1 -1
  229. package/dist/supabase/supabase.d.ts +3551 -909
  230. package/dist/supabase/supabase.d.ts.map +1 -1
  231. package/dist/supabase/supabase.js +1 -34
  232. package/dist/supabase/supabase.js.map +1 -1
  233. package/dist/types/database.types.d.ts +1656 -314
  234. package/dist/types/database.types.d.ts.map +1 -1
  235. package/dist/types/database.types.js +3 -1
  236. package/dist/types/database.types.js.map +1 -1
  237. package/dist/types/index.d.ts +30 -1
  238. package/dist/types/index.d.ts.map +1 -1
  239. package/package.json +45 -42
  240. package/dist/supabase/supabase-browser.d.ts +0 -4
  241. package/dist/supabase/supabase-browser.d.ts.map +0 -1
  242. package/dist/supabase/supabase-browser.js +0 -20
  243. package/dist/supabase/supabase-browser.js.map +0 -1
@@ -0,0 +1,766 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client } from './client.gen';
3
+ /**
4
+ * Get health
5
+ *
6
+ * Get health information about the OpenCode server.
7
+ */
8
+ export const globalHealth = (options) => (options?.client ?? client).get({ url: '/global/health', ...options });
9
+ /**
10
+ * Get global events
11
+ *
12
+ * Subscribe to global events from the OpenCode system using server-sent events.
13
+ */
14
+ export const globalEvent = (options) => (options?.client ?? client).sse.get({ url: '/global/event', ...options });
15
+ /**
16
+ * Dispose instance
17
+ *
18
+ * Clean up and dispose all OpenCode instances, releasing all resources.
19
+ */
20
+ export const globalDispose = (options) => (options?.client ?? client).post({ url: '/global/dispose', ...options });
21
+ /**
22
+ * List all projects
23
+ *
24
+ * Get a list of projects that have been opened with OpenCode.
25
+ */
26
+ export const projectList = (options) => (options?.client ?? client).get({ url: '/project', ...options });
27
+ /**
28
+ * Get current project
29
+ *
30
+ * Retrieve the currently active project that OpenCode is working with.
31
+ */
32
+ export const projectCurrent = (options) => (options?.client ?? client).get({ url: '/project/current', ...options });
33
+ /**
34
+ * Update project
35
+ *
36
+ * Update project properties such as name, icon and color.
37
+ */
38
+ export const projectUpdate = (options) => (options.client ?? client).patch({
39
+ url: '/project/{projectID}',
40
+ ...options,
41
+ headers: {
42
+ 'Content-Type': 'application/json',
43
+ ...options.headers
44
+ }
45
+ });
46
+ /**
47
+ * List PTY sessions
48
+ *
49
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by OpenCode.
50
+ */
51
+ export const ptyList = (options) => (options?.client ?? client).get({ url: '/pty', ...options });
52
+ /**
53
+ * Create PTY session
54
+ *
55
+ * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
56
+ */
57
+ export const ptyCreate = (options) => (options?.client ?? client).post({
58
+ url: '/pty',
59
+ ...options,
60
+ headers: {
61
+ 'Content-Type': 'application/json',
62
+ ...options?.headers
63
+ }
64
+ });
65
+ /**
66
+ * Remove PTY session
67
+ *
68
+ * Remove and terminate a specific pseudo-terminal (PTY) session.
69
+ */
70
+ export const ptyRemove = (options) => (options.client ?? client).delete({ url: '/pty/{ptyID}', ...options });
71
+ /**
72
+ * Get PTY session
73
+ *
74
+ * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
75
+ */
76
+ export const ptyGet = (options) => (options.client ?? client).get({ url: '/pty/{ptyID}', ...options });
77
+ /**
78
+ * Update PTY session
79
+ *
80
+ * Update properties of an existing pseudo-terminal (PTY) session.
81
+ */
82
+ export const ptyUpdate = (options) => (options.client ?? client).put({
83
+ url: '/pty/{ptyID}',
84
+ ...options,
85
+ headers: {
86
+ 'Content-Type': 'application/json',
87
+ ...options.headers
88
+ }
89
+ });
90
+ /**
91
+ * Connect to PTY session
92
+ *
93
+ * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
94
+ */
95
+ export const ptyConnect = (options) => (options.client ?? client).get({ url: '/pty/{ptyID}/connect', ...options });
96
+ /**
97
+ * Get configuration
98
+ *
99
+ * Retrieve the current OpenCode configuration settings and preferences.
100
+ */
101
+ export const configGet = (options) => (options?.client ?? client).get({ url: '/config', ...options });
102
+ /**
103
+ * Update configuration
104
+ *
105
+ * Update OpenCode configuration settings and preferences.
106
+ */
107
+ export const configUpdate = (options) => (options?.client ?? client).patch({
108
+ url: '/config',
109
+ ...options,
110
+ headers: {
111
+ 'Content-Type': 'application/json',
112
+ ...options?.headers
113
+ }
114
+ });
115
+ /**
116
+ * List tool IDs
117
+ *
118
+ * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
119
+ */
120
+ export const toolIds = (options) => (options?.client ?? client).get({ url: '/experimental/tool/ids', ...options });
121
+ /**
122
+ * List tools
123
+ *
124
+ * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
125
+ */
126
+ export const toolList = (options) => (options.client ?? client).get({ url: '/experimental/tool', ...options });
127
+ /**
128
+ * Dispose instance
129
+ *
130
+ * Clean up and dispose the current OpenCode instance, releasing all resources.
131
+ */
132
+ export const instanceDispose = (options) => (options?.client ?? client).post({ url: '/instance/dispose', ...options });
133
+ /**
134
+ * Get paths
135
+ *
136
+ * Retrieve the current working directory and related path information for the OpenCode instance.
137
+ */
138
+ export const pathGet = (options) => (options?.client ?? client).get({ url: '/path', ...options });
139
+ /**
140
+ * List worktrees
141
+ *
142
+ * List all sandbox worktrees for the current project.
143
+ */
144
+ export const worktreeList = (options) => (options?.client ?? client).get({ url: '/experimental/worktree', ...options });
145
+ /**
146
+ * Create worktree
147
+ *
148
+ * Create a new git worktree for the current project.
149
+ */
150
+ export const worktreeCreate = (options) => (options?.client ?? client).post({
151
+ url: '/experimental/worktree',
152
+ ...options,
153
+ headers: {
154
+ 'Content-Type': 'application/json',
155
+ ...options?.headers
156
+ }
157
+ });
158
+ /**
159
+ * Get VCS info
160
+ *
161
+ * Retrieve version control system (VCS) information for the current project, such as git branch.
162
+ */
163
+ export const vcsGet = (options) => (options?.client ?? client).get({ url: '/vcs', ...options });
164
+ /**
165
+ * List sessions
166
+ *
167
+ * Get a list of all OpenCode sessions, sorted by most recently updated.
168
+ */
169
+ export const sessionList = (options) => (options?.client ?? client).get({ url: '/session', ...options });
170
+ /**
171
+ * Create session
172
+ *
173
+ * Create a new OpenCode session for interacting with AI assistants and managing conversations.
174
+ */
175
+ export const sessionCreate = (options) => (options?.client ?? client).post({
176
+ url: '/session',
177
+ ...options,
178
+ headers: {
179
+ 'Content-Type': 'application/json',
180
+ ...options?.headers
181
+ }
182
+ });
183
+ /**
184
+ * Get session status
185
+ *
186
+ * Retrieve the current status of all sessions, including active, idle, and completed states.
187
+ */
188
+ export const sessionStatus = (options) => (options?.client ?? client).get({ url: '/session/status', ...options });
189
+ /**
190
+ * Delete session
191
+ *
192
+ * Delete a session and permanently remove all associated data, including messages and history.
193
+ */
194
+ export const sessionDelete = (options) => (options.client ?? client).delete({ url: '/session/{sessionID}', ...options });
195
+ /**
196
+ * Get session
197
+ *
198
+ * Retrieve detailed information about a specific OpenCode session.
199
+ */
200
+ export const sessionGet = (options) => (options.client ?? client).get({ url: '/session/{sessionID}', ...options });
201
+ /**
202
+ * Update session
203
+ *
204
+ * Update properties of an existing session, such as title or other metadata.
205
+ */
206
+ export const sessionUpdate = (options) => (options.client ?? client).patch({
207
+ url: '/session/{sessionID}',
208
+ ...options,
209
+ headers: {
210
+ 'Content-Type': 'application/json',
211
+ ...options.headers
212
+ }
213
+ });
214
+ /**
215
+ * Get session children
216
+ *
217
+ * Retrieve all child sessions that were forked from the specified parent session.
218
+ */
219
+ export const sessionChildren = (options) => (options.client ?? client).get({ url: '/session/{sessionID}/children', ...options });
220
+ /**
221
+ * Get session todos
222
+ *
223
+ * Retrieve the todo list associated with a specific session, showing tasks and action items.
224
+ */
225
+ export const sessionTodo = (options) => (options.client ?? client).get({ url: '/session/{sessionID}/todo', ...options });
226
+ /**
227
+ * Initialize session
228
+ *
229
+ * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
230
+ */
231
+ export const sessionInit = (options) => (options.client ?? client).post({
232
+ url: '/session/{sessionID}/init',
233
+ ...options,
234
+ headers: {
235
+ 'Content-Type': 'application/json',
236
+ ...options.headers
237
+ }
238
+ });
239
+ /**
240
+ * Fork session
241
+ *
242
+ * Create a new session by forking an existing session at a specific message point.
243
+ */
244
+ export const sessionFork = (options) => (options.client ?? client).post({
245
+ url: '/session/{sessionID}/fork',
246
+ ...options,
247
+ headers: {
248
+ 'Content-Type': 'application/json',
249
+ ...options.headers
250
+ }
251
+ });
252
+ /**
253
+ * Abort session
254
+ *
255
+ * Abort an active session and stop any ongoing AI processing or command execution.
256
+ */
257
+ export const sessionAbort = (options) => (options.client ?? client).post({ url: '/session/{sessionID}/abort', ...options });
258
+ /**
259
+ * Unshare session
260
+ *
261
+ * Remove the shareable link for a session, making it private again.
262
+ */
263
+ export const sessionUnshare = (options) => (options.client ?? client).delete({ url: '/session/{sessionID}/share', ...options });
264
+ /**
265
+ * Share session
266
+ *
267
+ * Create a shareable link for a session, allowing others to view the conversation.
268
+ */
269
+ export const sessionShare = (options) => (options.client ?? client).post({ url: '/session/{sessionID}/share', ...options });
270
+ /**
271
+ * Get session diff
272
+ *
273
+ * Get all file changes (diffs) made during this session.
274
+ */
275
+ export const sessionDiff = (options) => (options.client ?? client).get({ url: '/session/{sessionID}/diff', ...options });
276
+ /**
277
+ * Summarize session
278
+ *
279
+ * Generate a concise summary of the session using AI compaction to preserve key information.
280
+ */
281
+ export const sessionSummarize = (options) => (options.client ?? client).post({
282
+ url: '/session/{sessionID}/summarize',
283
+ ...options,
284
+ headers: {
285
+ 'Content-Type': 'application/json',
286
+ ...options.headers
287
+ }
288
+ });
289
+ /**
290
+ * Get session messages
291
+ *
292
+ * Retrieve all messages in a session, including user prompts and AI responses.
293
+ */
294
+ export const sessionMessages = (options) => (options.client ?? client).get({ url: '/session/{sessionID}/message', ...options });
295
+ /**
296
+ * Send message
297
+ *
298
+ * Create and send a new message to a session, streaming the AI response.
299
+ */
300
+ export const sessionPrompt = (options) => (options.client ?? client).post({
301
+ url: '/session/{sessionID}/message',
302
+ ...options,
303
+ headers: {
304
+ 'Content-Type': 'application/json',
305
+ ...options.headers
306
+ }
307
+ });
308
+ /**
309
+ * Get message
310
+ *
311
+ * Retrieve a specific message from a session by its message ID.
312
+ */
313
+ export const sessionMessage = (options) => (options.client ?? client).get({ url: '/session/{sessionID}/message/{messageID}', ...options });
314
+ /**
315
+ * Delete a part from a message
316
+ */
317
+ export const partDelete = (options) => (options.client ?? client).delete({ url: '/session/{sessionID}/message/{messageID}/part/{partID}', ...options });
318
+ /**
319
+ * Update a part in a message
320
+ */
321
+ export const partUpdate = (options) => (options.client ?? client).patch({
322
+ url: '/session/{sessionID}/message/{messageID}/part/{partID}',
323
+ ...options,
324
+ headers: {
325
+ 'Content-Type': 'application/json',
326
+ ...options.headers
327
+ }
328
+ });
329
+ /**
330
+ * Send async message
331
+ *
332
+ * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
333
+ */
334
+ export const sessionPromptAsync = (options) => (options.client ?? client).post({
335
+ url: '/session/{sessionID}/prompt_async',
336
+ ...options,
337
+ headers: {
338
+ 'Content-Type': 'application/json',
339
+ ...options.headers
340
+ }
341
+ });
342
+ /**
343
+ * Send command
344
+ *
345
+ * Send a new command to a session for execution by the AI assistant.
346
+ */
347
+ export const sessionCommand = (options) => (options.client ?? client).post({
348
+ url: '/session/{sessionID}/command',
349
+ ...options,
350
+ headers: {
351
+ 'Content-Type': 'application/json',
352
+ ...options.headers
353
+ }
354
+ });
355
+ /**
356
+ * Run shell command
357
+ *
358
+ * Execute a shell command within the session context and return the AI's response.
359
+ */
360
+ export const sessionShell = (options) => (options.client ?? client).post({
361
+ url: '/session/{sessionID}/shell',
362
+ ...options,
363
+ headers: {
364
+ 'Content-Type': 'application/json',
365
+ ...options.headers
366
+ }
367
+ });
368
+ /**
369
+ * Revert message
370
+ *
371
+ * Revert a specific message in a session, undoing its effects and restoring the previous state.
372
+ */
373
+ export const sessionRevert = (options) => (options.client ?? client).post({
374
+ url: '/session/{sessionID}/revert',
375
+ ...options,
376
+ headers: {
377
+ 'Content-Type': 'application/json',
378
+ ...options.headers
379
+ }
380
+ });
381
+ /**
382
+ * Restore reverted messages
383
+ *
384
+ * Restore all previously reverted messages in a session.
385
+ */
386
+ export const sessionUnrevert = (options) => (options.client ?? client).post({ url: '/session/{sessionID}/unrevert', ...options });
387
+ /**
388
+ * Respond to permission
389
+ *
390
+ * Approve or deny a permission request from the AI assistant.
391
+ *
392
+ * @deprecated
393
+ */
394
+ export const permissionRespond = (options) => (options.client ?? client).post({
395
+ url: '/session/{sessionID}/permissions/{permissionID}',
396
+ ...options,
397
+ headers: {
398
+ 'Content-Type': 'application/json',
399
+ ...options.headers
400
+ }
401
+ });
402
+ /**
403
+ * Respond to permission request
404
+ *
405
+ * Approve or deny a permission request from the AI assistant.
406
+ */
407
+ export const permissionReply = (options) => (options.client ?? client).post({
408
+ url: '/permission/{requestID}/reply',
409
+ ...options,
410
+ headers: {
411
+ 'Content-Type': 'application/json',
412
+ ...options.headers
413
+ }
414
+ });
415
+ /**
416
+ * List pending permissions
417
+ *
418
+ * Get all pending permission requests across all sessions.
419
+ */
420
+ export const permissionList = (options) => (options?.client ?? client).get({ url: '/permission', ...options });
421
+ /**
422
+ * List pending questions
423
+ *
424
+ * Get all pending question requests across all sessions.
425
+ */
426
+ export const questionList = (options) => (options?.client ?? client).get({ url: '/question', ...options });
427
+ /**
428
+ * Reply to question request
429
+ *
430
+ * Provide answers to a question request from the AI assistant.
431
+ */
432
+ export const questionReply = (options) => (options.client ?? client).post({
433
+ url: '/question/{requestID}/reply',
434
+ ...options,
435
+ headers: {
436
+ 'Content-Type': 'application/json',
437
+ ...options.headers
438
+ }
439
+ });
440
+ /**
441
+ * Reject question request
442
+ *
443
+ * Reject a question request from the AI assistant.
444
+ */
445
+ export const questionReject = (options) => (options.client ?? client).post({ url: '/question/{requestID}/reject', ...options });
446
+ /**
447
+ * List commands
448
+ *
449
+ * Get a list of all available commands in the OpenCode system.
450
+ */
451
+ export const commandList = (options) => (options?.client ?? client).get({ url: '/command', ...options });
452
+ /**
453
+ * List config providers
454
+ *
455
+ * Get a list of all configured AI providers and their default models.
456
+ */
457
+ export const configProviders = (options) => (options?.client ?? client).get({ url: '/config/providers', ...options });
458
+ /**
459
+ * List providers
460
+ *
461
+ * Get a list of all available AI providers, including both available and connected ones.
462
+ */
463
+ export const providerList = (options) => (options?.client ?? client).get({ url: '/provider', ...options });
464
+ /**
465
+ * Get provider auth methods
466
+ *
467
+ * Retrieve available authentication methods for all AI providers.
468
+ */
469
+ export const providerAuth = (options) => (options?.client ?? client).get({ url: '/provider/auth', ...options });
470
+ /**
471
+ * OAuth authorize
472
+ *
473
+ * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
474
+ */
475
+ export const providerOauthAuthorize = (options) => (options.client ?? client).post({
476
+ url: '/provider/{providerID}/oauth/authorize',
477
+ ...options,
478
+ headers: {
479
+ 'Content-Type': 'application/json',
480
+ ...options.headers
481
+ }
482
+ });
483
+ /**
484
+ * OAuth callback
485
+ *
486
+ * Handle the OAuth callback from a provider after user authorization.
487
+ */
488
+ export const providerOauthCallback = (options) => (options.client ?? client).post({
489
+ url: '/provider/{providerID}/oauth/callback',
490
+ ...options,
491
+ headers: {
492
+ 'Content-Type': 'application/json',
493
+ ...options.headers
494
+ }
495
+ });
496
+ /**
497
+ * Find text
498
+ *
499
+ * Search for text patterns across files in the project using ripgrep.
500
+ */
501
+ export const findText = (options) => (options.client ?? client).get({ url: '/find', ...options });
502
+ /**
503
+ * Find files
504
+ *
505
+ * Search for files or directories by name or pattern in the project directory.
506
+ */
507
+ export const findFiles = (options) => (options.client ?? client).get({ url: '/find/file', ...options });
508
+ /**
509
+ * Find symbols
510
+ *
511
+ * Search for workspace symbols like functions, classes, and variables using LSP.
512
+ */
513
+ export const findSymbols = (options) => (options.client ?? client).get({ url: '/find/symbol', ...options });
514
+ /**
515
+ * List files
516
+ *
517
+ * List files and directories in a specified path.
518
+ */
519
+ export const fileList = (options) => (options.client ?? client).get({ url: '/file', ...options });
520
+ /**
521
+ * Read file
522
+ *
523
+ * Read the content of a specified file.
524
+ */
525
+ export const fileRead = (options) => (options.client ?? client).get({ url: '/file/content', ...options });
526
+ /**
527
+ * Get file status
528
+ *
529
+ * Get the git status of all files in the project.
530
+ */
531
+ export const fileStatus = (options) => (options?.client ?? client).get({ url: '/file/status', ...options });
532
+ /**
533
+ * Write log
534
+ *
535
+ * Write a log entry to the server logs with specified level and metadata.
536
+ */
537
+ export const appLog = (options) => (options?.client ?? client).post({
538
+ url: '/log',
539
+ ...options,
540
+ headers: {
541
+ 'Content-Type': 'application/json',
542
+ ...options?.headers
543
+ }
544
+ });
545
+ /**
546
+ * List agents
547
+ *
548
+ * Get a list of all available AI agents in the OpenCode system.
549
+ */
550
+ export const appAgents = (options) => (options?.client ?? client).get({ url: '/agent', ...options });
551
+ /**
552
+ * Get MCP status
553
+ *
554
+ * Get the status of all Model Context Protocol (MCP) servers.
555
+ */
556
+ export const mcpStatus = (options) => (options?.client ?? client).get({ url: '/mcp', ...options });
557
+ /**
558
+ * Add MCP server
559
+ *
560
+ * Dynamically add a new Model Context Protocol (MCP) server to the system.
561
+ */
562
+ export const mcpAdd = (options) => (options?.client ?? client).post({
563
+ url: '/mcp',
564
+ ...options,
565
+ headers: {
566
+ 'Content-Type': 'application/json',
567
+ ...options?.headers
568
+ }
569
+ });
570
+ /**
571
+ * Remove MCP OAuth
572
+ *
573
+ * Remove OAuth credentials for an MCP server
574
+ */
575
+ export const mcpAuthRemove = (options) => (options.client ?? client).delete({ url: '/mcp/{name}/auth', ...options });
576
+ /**
577
+ * Start MCP OAuth
578
+ *
579
+ * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
580
+ */
581
+ export const mcpAuthStart = (options) => (options.client ?? client).post({ url: '/mcp/{name}/auth', ...options });
582
+ /**
583
+ * Complete MCP OAuth
584
+ *
585
+ * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
586
+ */
587
+ export const mcpAuthCallback = (options) => (options.client ?? client).post({
588
+ url: '/mcp/{name}/auth/callback',
589
+ ...options,
590
+ headers: {
591
+ 'Content-Type': 'application/json',
592
+ ...options.headers
593
+ }
594
+ });
595
+ /**
596
+ * Authenticate MCP OAuth
597
+ *
598
+ * Start OAuth flow and wait for callback (opens browser)
599
+ */
600
+ export const mcpAuthAuthenticate = (options) => (options.client ?? client).post({ url: '/mcp/{name}/auth/authenticate', ...options });
601
+ /**
602
+ * Connect an MCP server
603
+ */
604
+ export const mcpConnect = (options) => (options.client ?? client).post({ url: '/mcp/{name}/connect', ...options });
605
+ /**
606
+ * Disconnect an MCP server
607
+ */
608
+ export const mcpDisconnect = (options) => (options.client ?? client).post({ url: '/mcp/{name}/disconnect', ...options });
609
+ /**
610
+ * Get MCP resources
611
+ *
612
+ * Get all available MCP resources from connected servers. Optionally filter by name.
613
+ */
614
+ export const experimentalResourceList = (options) => (options?.client ?? client).get({ url: '/experimental/resource', ...options });
615
+ /**
616
+ * Get LSP status
617
+ *
618
+ * Get LSP server status
619
+ */
620
+ export const lspStatus = (options) => (options?.client ?? client).get({ url: '/lsp', ...options });
621
+ /**
622
+ * Get formatter status
623
+ *
624
+ * Get formatter status
625
+ */
626
+ export const formatterStatus = (options) => (options?.client ?? client).get({ url: '/formatter', ...options });
627
+ /**
628
+ * Append TUI prompt
629
+ *
630
+ * Append prompt to the TUI
631
+ */
632
+ export const tuiAppendPrompt = (options) => (options?.client ?? client).post({
633
+ url: '/tui/append-prompt',
634
+ ...options,
635
+ headers: {
636
+ 'Content-Type': 'application/json',
637
+ ...options?.headers
638
+ }
639
+ });
640
+ /**
641
+ * Open help dialog
642
+ *
643
+ * Open the help dialog in the TUI to display user assistance information.
644
+ */
645
+ export const tuiOpenHelp = (options) => (options?.client ?? client).post({ url: '/tui/open-help', ...options });
646
+ /**
647
+ * Open sessions dialog
648
+ *
649
+ * Open the session dialog
650
+ */
651
+ export const tuiOpenSessions = (options) => (options?.client ?? client).post({ url: '/tui/open-sessions', ...options });
652
+ /**
653
+ * Open themes dialog
654
+ *
655
+ * Open the theme dialog
656
+ */
657
+ export const tuiOpenThemes = (options) => (options?.client ?? client).post({ url: '/tui/open-themes', ...options });
658
+ /**
659
+ * Open models dialog
660
+ *
661
+ * Open the model dialog
662
+ */
663
+ export const tuiOpenModels = (options) => (options?.client ?? client).post({ url: '/tui/open-models', ...options });
664
+ /**
665
+ * Submit TUI prompt
666
+ *
667
+ * Submit the prompt
668
+ */
669
+ export const tuiSubmitPrompt = (options) => (options?.client ?? client).post({ url: '/tui/submit-prompt', ...options });
670
+ /**
671
+ * Clear TUI prompt
672
+ *
673
+ * Clear the prompt
674
+ */
675
+ export const tuiClearPrompt = (options) => (options?.client ?? client).post({ url: '/tui/clear-prompt', ...options });
676
+ /**
677
+ * Execute TUI command
678
+ *
679
+ * Execute a TUI command (e.g. agent_cycle)
680
+ */
681
+ export const tuiExecuteCommand = (options) => (options?.client ?? client).post({
682
+ url: '/tui/execute-command',
683
+ ...options,
684
+ headers: {
685
+ 'Content-Type': 'application/json',
686
+ ...options?.headers
687
+ }
688
+ });
689
+ /**
690
+ * Show TUI toast
691
+ *
692
+ * Show a toast notification in the TUI
693
+ */
694
+ export const tuiShowToast = (options) => (options?.client ?? client).post({
695
+ url: '/tui/show-toast',
696
+ ...options,
697
+ headers: {
698
+ 'Content-Type': 'application/json',
699
+ ...options?.headers
700
+ }
701
+ });
702
+ /**
703
+ * Publish TUI event
704
+ *
705
+ * Publish a TUI event
706
+ */
707
+ export const tuiPublish = (options) => (options?.client ?? client).post({
708
+ url: '/tui/publish',
709
+ ...options,
710
+ headers: {
711
+ 'Content-Type': 'application/json',
712
+ ...options?.headers
713
+ }
714
+ });
715
+ /**
716
+ * Select session
717
+ *
718
+ * Navigate the TUI to display the specified session.
719
+ */
720
+ export const tuiSelectSession = (options) => (options?.client ?? client).post({
721
+ url: '/tui/select-session',
722
+ ...options,
723
+ headers: {
724
+ 'Content-Type': 'application/json',
725
+ ...options?.headers
726
+ }
727
+ });
728
+ /**
729
+ * Get next TUI request
730
+ *
731
+ * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
732
+ */
733
+ export const tuiControlNext = (options) => (options?.client ?? client).get({ url: '/tui/control/next', ...options });
734
+ /**
735
+ * Submit TUI response
736
+ *
737
+ * Submit a response to the TUI request queue to complete a pending request.
738
+ */
739
+ export const tuiControlResponse = (options) => (options?.client ?? client).post({
740
+ url: '/tui/control/response',
741
+ ...options,
742
+ headers: {
743
+ 'Content-Type': 'application/json',
744
+ ...options?.headers
745
+ }
746
+ });
747
+ /**
748
+ * Set auth credentials
749
+ *
750
+ * Set authentication credentials
751
+ */
752
+ export const authSet = (options) => (options.client ?? client).put({
753
+ url: '/auth/{providerID}',
754
+ ...options,
755
+ headers: {
756
+ 'Content-Type': 'application/json',
757
+ ...options.headers
758
+ }
759
+ });
760
+ /**
761
+ * Subscribe to events
762
+ *
763
+ * Get events
764
+ */
765
+ export const eventSubscribe = (options) => (options?.client ?? client).sse.get({ url: '/event', ...options });
766
+ //# sourceMappingURL=sdk.gen.js.map