mtmsdk 0.0.12 → 0.0.14

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 (413) hide show
  1. package/dist/components/MustAdmin.d.ts +14 -0
  2. package/dist/components/MustAdmin.d.ts.map +1 -0
  3. package/dist/components/MustAdmin.js +37 -0
  4. package/dist/components/MustAdmin.js.map +1 -0
  5. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +137 -2073
  6. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  7. package/dist/gomtmapi/@tanstack/react-query.gen.js +118 -2085
  8. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  9. package/dist/gomtmapi/client/client.gen.d.ts +3 -0
  10. package/dist/gomtmapi/client/client.gen.d.ts.map +1 -0
  11. package/dist/{gomtmapi_v2/client/client.js → gomtmapi/client/client.gen.js} +82 -23
  12. package/dist/gomtmapi/client/client.gen.js.map +1 -0
  13. package/dist/gomtmapi/client/index.d.ts +7 -7
  14. package/dist/gomtmapi/client/index.d.ts.map +1 -1
  15. package/dist/gomtmapi/client/index.js +5 -4
  16. package/dist/gomtmapi/client/index.js.map +1 -1
  17. package/dist/gomtmapi/client/{types.d.ts → types.gen.d.ts} +19 -14
  18. package/dist/gomtmapi/client/types.gen.d.ts.map +1 -0
  19. package/dist/gomtmapi/client/types.gen.js +3 -0
  20. package/dist/gomtmapi/client/types.gen.js.map +1 -0
  21. package/dist/gomtmapi/client/{utils.d.ts → utils.gen.d.ts} +9 -21
  22. package/dist/gomtmapi/client/utils.gen.d.ts.map +1 -0
  23. package/dist/{gomtmapi_v2/client/utils.js → gomtmapi/client/utils.gen.js} +56 -110
  24. package/dist/gomtmapi/client/utils.gen.js.map +1 -0
  25. package/dist/gomtmapi/client.gen.d.ts +3 -3
  26. package/dist/gomtmapi/client.gen.d.ts.map +1 -1
  27. package/dist/gomtmapi/client.gen.js.map +1 -1
  28. package/dist/gomtmapi/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  29. package/dist/gomtmapi/core/auth.gen.d.ts.map +1 -0
  30. package/dist/gomtmapi/core/{auth.js → auth.gen.js} +2 -1
  31. package/dist/gomtmapi/core/auth.gen.js.map +1 -0
  32. package/dist/{mtgate_api/core/bodySerializer.d.ts → gomtmapi/core/bodySerializer.gen.d.ts} +2 -2
  33. package/dist/gomtmapi/core/bodySerializer.gen.d.ts.map +1 -0
  34. package/dist/{mtgate_api/core/bodySerializer.js → gomtmapi/core/bodySerializer.gen.js} +5 -1
  35. package/dist/gomtmapi/core/bodySerializer.gen.js.map +1 -0
  36. package/dist/{mtgate_api/core/params.d.ts → gomtmapi/core/params.gen.d.ts} +11 -1
  37. package/dist/gomtmapi/core/params.gen.d.ts.map +1 -0
  38. package/dist/gomtmapi/core/{params.js → params.gen.js} +2 -1
  39. package/dist/gomtmapi/core/params.gen.js.map +1 -0
  40. package/dist/{mtgate_api/core/pathSerializer.d.ts → gomtmapi/core/pathSerializer.gen.d.ts} +1 -1
  41. package/dist/gomtmapi/core/pathSerializer.gen.d.ts.map +1 -0
  42. package/dist/gomtmapi/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
  43. package/dist/gomtmapi/core/pathSerializer.gen.js.map +1 -0
  44. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts +72 -0
  45. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts.map +1 -0
  46. package/dist/gomtmapi/core/serverSentEvents.gen.js +136 -0
  47. package/dist/gomtmapi/core/serverSentEvents.gen.js.map +1 -0
  48. package/dist/{mtgate_api/core/types.d.ts → gomtmapi/core/types.gen.d.ts} +20 -15
  49. package/dist/gomtmapi/core/types.gen.d.ts.map +1 -0
  50. package/dist/gomtmapi/core/types.gen.js +3 -0
  51. package/dist/gomtmapi/core/types.gen.js.map +1 -0
  52. package/dist/gomtmapi/core/utils.gen.d.ts +20 -0
  53. package/dist/gomtmapi/core/utils.gen.d.ts.map +1 -0
  54. package/dist/gomtmapi/core/utils.gen.js +88 -0
  55. package/dist/gomtmapi/core/utils.gen.js.map +1 -0
  56. package/dist/gomtmapi/index.d.ts.map +1 -1
  57. package/dist/gomtmapi/index.js.map +1 -1
  58. package/dist/gomtmapi/schemas.gen.d.ts +806 -3746
  59. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  60. package/dist/gomtmapi/schemas.gen.js +780 -3827
  61. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  62. package/dist/gomtmapi/sdk.gen.d.ts +3 -306
  63. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  64. package/dist/gomtmapi/sdk.gen.js +53 -1338
  65. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  66. package/dist/gomtmapi/types.gen.d.ts +1186 -5364
  67. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  68. package/dist/gomtmapi/types.gen.js +8 -45
  69. package/dist/gomtmapi/types.gen.js.map +1 -1
  70. package/dist/gomtmapi/zod.gen.d.ts +1371 -4628
  71. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  72. package/dist/gomtmapi/zod.gen.js +565 -2224
  73. package/dist/gomtmapi/zod.gen.js.map +1 -1
  74. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +286 -823
  75. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  76. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +226 -787
  77. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  78. package/dist/gomtmapi_v2/client/client.gen.d.ts +3 -0
  79. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -0
  80. package/dist/{mtgate_api/client/client.js → gomtmapi_v2/client/client.gen.js} +82 -23
  81. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -0
  82. package/dist/gomtmapi_v2/client/index.d.ts +7 -7
  83. package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
  84. package/dist/gomtmapi_v2/client/index.js +5 -4
  85. package/dist/gomtmapi_v2/client/index.js.map +1 -1
  86. package/dist/{mtgate_api/client/types.d.ts → gomtmapi_v2/client/types.gen.d.ts} +19 -14
  87. package/dist/gomtmapi_v2/client/types.gen.d.ts.map +1 -0
  88. package/dist/gomtmapi_v2/client/types.gen.js +3 -0
  89. package/dist/gomtmapi_v2/client/types.gen.js.map +1 -0
  90. package/dist/{mtgate_api/client/utils.d.ts → gomtmapi_v2/client/utils.gen.d.ts} +9 -21
  91. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -0
  92. package/dist/{gomtmapi/client/utils.js → gomtmapi_v2/client/utils.gen.js} +56 -110
  93. package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -0
  94. package/dist/gomtmapi_v2/client.gen.d.ts +3 -3
  95. package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -1
  96. package/dist/gomtmapi_v2/client.gen.js.map +1 -1
  97. package/dist/{mtmai_api/core/auth.d.ts → gomtmapi_v2/core/auth.gen.d.ts} +1 -1
  98. package/dist/gomtmapi_v2/core/auth.gen.d.ts.map +1 -0
  99. package/dist/{mtmai_api/core/auth.js → gomtmapi_v2/core/auth.gen.js} +2 -1
  100. package/dist/gomtmapi_v2/core/auth.gen.js.map +1 -0
  101. package/dist/gomtmapi_v2/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
  102. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +1 -0
  103. package/dist/{gomtmapi/core/bodySerializer.js → gomtmapi_v2/core/bodySerializer.gen.js} +5 -1
  104. package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +1 -0
  105. package/dist/gomtmapi_v2/core/{params.d.ts → params.gen.d.ts} +11 -1
  106. package/dist/gomtmapi_v2/core/params.gen.d.ts.map +1 -0
  107. package/dist/{mtgate_api/core/params.js → gomtmapi_v2/core/params.gen.js} +2 -1
  108. package/dist/gomtmapi_v2/core/params.gen.js.map +1 -0
  109. package/dist/{mtmai_api/core/pathSerializer.d.ts → gomtmapi_v2/core/pathSerializer.gen.d.ts} +1 -1
  110. package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts.map +1 -0
  111. package/dist/{mtgate_api/core/pathSerializer.js → gomtmapi_v2/core/pathSerializer.gen.js} +2 -1
  112. package/dist/gomtmapi_v2/core/pathSerializer.gen.js.map +1 -0
  113. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts +72 -0
  114. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +1 -0
  115. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js +136 -0
  116. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +1 -0
  117. package/dist/{mtmai_api/core/types.d.ts → gomtmapi_v2/core/types.gen.d.ts} +20 -15
  118. package/dist/gomtmapi_v2/core/types.gen.d.ts.map +1 -0
  119. package/dist/gomtmapi_v2/core/types.gen.js +3 -0
  120. package/dist/gomtmapi_v2/core/types.gen.js.map +1 -0
  121. package/dist/gomtmapi_v2/core/utils.gen.d.ts +20 -0
  122. package/dist/gomtmapi_v2/core/utils.gen.d.ts.map +1 -0
  123. package/dist/gomtmapi_v2/core/utils.gen.js +88 -0
  124. package/dist/gomtmapi_v2/core/utils.gen.js.map +1 -0
  125. package/dist/gomtmapi_v2/index.d.ts +1 -1
  126. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  127. package/dist/gomtmapi_v2/index.js +0 -1
  128. package/dist/gomtmapi_v2/index.js.map +1 -1
  129. package/dist/gomtmapi_v2/schemas.gen.d.ts +317 -222
  130. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  131. package/dist/gomtmapi_v2/schemas.gen.js +317 -222
  132. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  133. package/dist/gomtmapi_v2/sdk.gen.d.ts +142 -156
  134. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  135. package/dist/gomtmapi_v2/sdk.gen.js +210 -233
  136. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  137. package/dist/gomtmapi_v2/types.gen.d.ts +188 -195
  138. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  139. package/dist/gomtmapi_v2/zod.gen.d.ts +474 -428
  140. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  141. package/dist/gomtmapi_v2/zod.gen.js +892 -1054
  142. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  143. package/dist/lib/adk-utils.d.ts +0 -5
  144. package/dist/lib/adk-utils.d.ts.map +1 -1
  145. package/dist/lib/adk-utils.js +31 -32
  146. package/dist/lib/adk-utils.js.map +1 -1
  147. package/dist/lib/auth-client.d.ts +5965 -0
  148. package/dist/lib/auth-client.d.ts.map +1 -0
  149. package/dist/lib/auth-client.js +29 -0
  150. package/dist/lib/auth-client.js.map +1 -0
  151. package/dist/lib/get-query-client.d.ts.map +1 -1
  152. package/dist/lib/get-query-client.js +1 -21
  153. package/dist/lib/get-query-client.js.map +1 -1
  154. package/dist/lib/mtgate_client_ss.d.ts +10 -0
  155. package/dist/lib/mtgate_client_ss.d.ts.map +1 -0
  156. package/dist/lib/mtgate_client_ss.js +24 -0
  157. package/dist/lib/mtgate_client_ss.js.map +1 -0
  158. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +367 -2123
  159. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  160. package/dist/mtgate_api/@tanstack/react-query.gen.js +142 -1018
  161. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  162. package/dist/mtgate_api/client/client.gen.d.ts +3 -0
  163. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -0
  164. package/dist/{gomtmapi/client/client.js → mtgate_api/client/client.gen.js} +82 -23
  165. package/dist/mtgate_api/client/client.gen.js.map +1 -0
  166. package/dist/mtgate_api/client/index.d.ts +7 -7
  167. package/dist/mtgate_api/client/index.d.ts.map +1 -1
  168. package/dist/mtgate_api/client/index.js +5 -4
  169. package/dist/mtgate_api/client/index.js.map +1 -1
  170. package/dist/{gomtmapi_v2/client/types.d.ts → mtgate_api/client/types.gen.d.ts} +19 -14
  171. package/dist/mtgate_api/client/types.gen.d.ts.map +1 -0
  172. package/dist/mtgate_api/client/types.gen.js +3 -0
  173. package/dist/mtgate_api/client/types.gen.js.map +1 -0
  174. package/dist/{mtmai_api/client/utils.d.ts → mtgate_api/client/utils.gen.d.ts} +9 -21
  175. package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -0
  176. package/dist/mtgate_api/client/{utils.js → utils.gen.js} +56 -110
  177. package/dist/mtgate_api/client/utils.gen.js.map +1 -0
  178. package/dist/mtgate_api/client.gen.d.ts +3 -3
  179. package/dist/mtgate_api/client.gen.d.ts.map +1 -1
  180. package/dist/mtgate_api/client.gen.js.map +1 -1
  181. package/dist/{gomtmapi_v2/core/auth.d.ts → mtgate_api/core/auth.gen.d.ts} +1 -1
  182. package/dist/mtgate_api/core/auth.gen.d.ts.map +1 -0
  183. package/dist/mtgate_api/core/{auth.js → auth.gen.js} +2 -1
  184. package/dist/mtgate_api/core/auth.gen.js.map +1 -0
  185. package/dist/{gomtmapi/core/bodySerializer.d.ts → mtgate_api/core/bodySerializer.gen.d.ts} +2 -2
  186. package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +1 -0
  187. package/dist/{mtmai_api/core/bodySerializer.js → mtgate_api/core/bodySerializer.gen.js} +5 -1
  188. package/dist/mtgate_api/core/bodySerializer.gen.js.map +1 -0
  189. package/dist/{mtmai_api/core/params.d.ts → mtgate_api/core/params.gen.d.ts} +11 -1
  190. package/dist/mtgate_api/core/params.gen.d.ts.map +1 -0
  191. package/dist/{gomtmapi_v2/core/params.js → mtgate_api/core/params.gen.js} +2 -1
  192. package/dist/mtgate_api/core/params.gen.js.map +1 -0
  193. package/dist/{gomtmapi_v2/core/pathSerializer.d.ts → mtgate_api/core/pathSerializer.gen.d.ts} +1 -1
  194. package/dist/mtgate_api/core/pathSerializer.gen.d.ts.map +1 -0
  195. package/dist/{gomtmapi_v2/core/pathSerializer.js → mtgate_api/core/pathSerializer.gen.js} +2 -1
  196. package/dist/mtgate_api/core/pathSerializer.gen.js.map +1 -0
  197. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +72 -0
  198. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +1 -0
  199. package/dist/mtgate_api/core/serverSentEvents.gen.js +136 -0
  200. package/dist/mtgate_api/core/serverSentEvents.gen.js.map +1 -0
  201. package/dist/{gomtmapi/core/types.d.ts → mtgate_api/core/types.gen.d.ts} +20 -15
  202. package/dist/mtgate_api/core/types.gen.d.ts.map +1 -0
  203. package/dist/mtgate_api/core/types.gen.js +3 -0
  204. package/dist/mtgate_api/core/types.gen.js.map +1 -0
  205. package/dist/mtgate_api/core/utils.gen.d.ts +20 -0
  206. package/dist/mtgate_api/core/utils.gen.d.ts.map +1 -0
  207. package/dist/mtgate_api/core/utils.gen.js +88 -0
  208. package/dist/mtgate_api/core/utils.gen.js.map +1 -0
  209. package/dist/mtgate_api/index.d.ts.map +1 -1
  210. package/dist/mtgate_api/index.js.map +1 -1
  211. package/dist/mtgate_api/schemas.gen.d.ts +206 -289
  212. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  213. package/dist/mtgate_api/schemas.gen.js +230 -307
  214. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  215. package/dist/mtgate_api/sdk.gen.d.ts +20 -43
  216. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  217. package/dist/mtgate_api/sdk.gen.js +88 -234
  218. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  219. package/dist/mtgate_api/types.gen.d.ts +383 -862
  220. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  221. package/dist/mtgate_api/types.gen.js.map +1 -1
  222. package/dist/mtgate_api/zod.gen.d.ts +607 -978
  223. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  224. package/dist/mtgate_api/zod.gen.js +718 -1215
  225. package/dist/mtgate_api/zod.gen.js.map +1 -1
  226. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +115 -475
  227. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
  228. package/dist/mtmai_api/@tanstack/react-query.gen.js +55 -423
  229. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
  230. package/dist/mtmai_api/client/client.gen.d.ts +3 -0
  231. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -0
  232. package/dist/mtmai_api/client/{client.js → client.gen.js} +82 -23
  233. package/dist/mtmai_api/client/client.gen.js.map +1 -0
  234. package/dist/mtmai_api/client/index.d.ts +7 -7
  235. package/dist/mtmai_api/client/index.d.ts.map +1 -1
  236. package/dist/mtmai_api/client/index.js +5 -4
  237. package/dist/mtmai_api/client/index.js.map +1 -1
  238. package/dist/mtmai_api/client/{types.d.ts → types.gen.d.ts} +19 -14
  239. package/dist/mtmai_api/client/types.gen.d.ts.map +1 -0
  240. package/dist/mtmai_api/client/types.gen.js +3 -0
  241. package/dist/mtmai_api/client/types.gen.js.map +1 -0
  242. package/dist/{gomtmapi_v2/client/utils.d.ts → mtmai_api/client/utils.gen.d.ts} +9 -21
  243. package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -0
  244. package/dist/mtmai_api/client/{utils.js → utils.gen.js} +56 -110
  245. package/dist/mtmai_api/client/utils.gen.js.map +1 -0
  246. package/dist/mtmai_api/client.gen.d.ts +3 -3
  247. package/dist/mtmai_api/client.gen.d.ts.map +1 -1
  248. package/dist/mtmai_api/client.gen.js.map +1 -1
  249. package/dist/{mtgate_api/core/auth.d.ts → mtmai_api/core/auth.gen.d.ts} +1 -1
  250. package/dist/mtmai_api/core/auth.gen.d.ts.map +1 -0
  251. package/dist/{gomtmapi_v2/core/auth.js → mtmai_api/core/auth.gen.js} +2 -1
  252. package/dist/mtmai_api/core/auth.gen.js.map +1 -0
  253. package/dist/mtmai_api/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
  254. package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +1 -0
  255. package/dist/{gomtmapi_v2/core/bodySerializer.js → mtmai_api/core/bodySerializer.gen.js} +5 -1
  256. package/dist/mtmai_api/core/bodySerializer.gen.js.map +1 -0
  257. package/dist/{gomtmapi/core/params.d.ts → mtmai_api/core/params.gen.d.ts} +11 -1
  258. package/dist/mtmai_api/core/params.gen.d.ts.map +1 -0
  259. package/dist/mtmai_api/core/{params.js → params.gen.js} +2 -1
  260. package/dist/mtmai_api/core/params.gen.js.map +1 -0
  261. package/dist/{gomtmapi/core/pathSerializer.d.ts → mtmai_api/core/pathSerializer.gen.d.ts} +1 -1
  262. package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +1 -0
  263. package/dist/mtmai_api/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
  264. package/dist/mtmai_api/core/pathSerializer.gen.js.map +1 -0
  265. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +72 -0
  266. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +1 -0
  267. package/dist/mtmai_api/core/serverSentEvents.gen.js +136 -0
  268. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +1 -0
  269. package/dist/{gomtmapi_v2/core/types.d.ts → mtmai_api/core/types.gen.d.ts} +20 -15
  270. package/dist/mtmai_api/core/types.gen.d.ts.map +1 -0
  271. package/dist/mtmai_api/core/types.gen.js +3 -0
  272. package/dist/mtmai_api/core/types.gen.js.map +1 -0
  273. package/dist/mtmai_api/core/utils.gen.d.ts +20 -0
  274. package/dist/mtmai_api/core/utils.gen.d.ts.map +1 -0
  275. package/dist/mtmai_api/core/utils.gen.js +88 -0
  276. package/dist/mtmai_api/core/utils.gen.js.map +1 -0
  277. package/dist/mtmai_api/index.d.ts.map +1 -1
  278. package/dist/mtmai_api/index.js.map +1 -1
  279. package/dist/mtmai_api/schemas.gen.d.ts +447 -90
  280. package/dist/mtmai_api/schemas.gen.d.ts.map +1 -1
  281. package/dist/mtmai_api/schemas.gen.js +561 -108
  282. package/dist/mtmai_api/schemas.gen.js.map +1 -1
  283. package/dist/mtmai_api/sdk.gen.d.ts +3 -8
  284. package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
  285. package/dist/mtmai_api/sdk.gen.js +53 -67
  286. package/dist/mtmai_api/sdk.gen.js.map +1 -1
  287. package/dist/mtmai_api/types.gen.d.ts +420 -208
  288. package/dist/mtmai_api/types.gen.d.ts.map +1 -1
  289. package/dist/mtmai_api/types.gen.js.map +1 -1
  290. package/dist/mtmai_api/zod.gen.d.ts +26092 -5524
  291. package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
  292. package/dist/mtmai_api/zod.gen.js +1391 -1362
  293. package/dist/mtmai_api/zod.gen.js.map +1 -1
  294. package/dist/store/AuthProviders.d.ts +8 -0
  295. package/dist/store/AuthProviders.d.ts.map +1 -0
  296. package/dist/store/AuthProviders.js +34 -0
  297. package/dist/store/AuthProviders.js.map +1 -0
  298. package/dist/store/{ReactQueryApiV2Provider.d.ts → GomtmProvider.d.ts} +1 -1
  299. package/dist/store/GomtmProvider.d.ts.map +1 -0
  300. package/dist/store/{ReactQueryApiV2Provider.js → GomtmProvider.js} +2 -2
  301. package/dist/store/GomtmProvider.js.map +1 -0
  302. package/dist/store/{ReactQueryProvider.d.ts → GomtmV1Provider.d.ts} +1 -1
  303. package/dist/store/GomtmV1Provider.d.ts.map +1 -0
  304. package/dist/store/{ReactQueryProvider.js → GomtmV1Provider.js} +2 -2
  305. package/dist/store/GomtmV1Provider.js.map +1 -0
  306. package/dist/store/MtgateProvider.d.ts +6015 -0
  307. package/dist/store/MtgateProvider.d.ts.map +1 -0
  308. package/dist/store/MtgateProvider.js +76 -0
  309. package/dist/store/MtgateProvider.js.map +1 -0
  310. package/dist/store/MtmsdkProvider.d.ts.map +1 -1
  311. package/dist/store/MtmsdkProvider.js +9 -12
  312. package/dist/store/MtmsdkProvider.js.map +1 -1
  313. package/package.json +68 -72
  314. package/dist/gomtmapi/client/client.d.ts +0 -3
  315. package/dist/gomtmapi/client/client.d.ts.map +0 -1
  316. package/dist/gomtmapi/client/client.js.map +0 -1
  317. package/dist/gomtmapi/client/types.d.ts.map +0 -1
  318. package/dist/gomtmapi/client/types.js +0 -2
  319. package/dist/gomtmapi/client/types.js.map +0 -1
  320. package/dist/gomtmapi/client/utils.d.ts.map +0 -1
  321. package/dist/gomtmapi/client/utils.js.map +0 -1
  322. package/dist/gomtmapi/core/auth.d.ts.map +0 -1
  323. package/dist/gomtmapi/core/auth.js.map +0 -1
  324. package/dist/gomtmapi/core/bodySerializer.d.ts.map +0 -1
  325. package/dist/gomtmapi/core/bodySerializer.js.map +0 -1
  326. package/dist/gomtmapi/core/params.d.ts.map +0 -1
  327. package/dist/gomtmapi/core/params.js.map +0 -1
  328. package/dist/gomtmapi/core/pathSerializer.d.ts.map +0 -1
  329. package/dist/gomtmapi/core/pathSerializer.js.map +0 -1
  330. package/dist/gomtmapi/core/types.d.ts.map +0 -1
  331. package/dist/gomtmapi/core/types.js +0 -2
  332. package/dist/gomtmapi/core/types.js.map +0 -1
  333. package/dist/gomtmapi_v2/client/client.d.ts +0 -3
  334. package/dist/gomtmapi_v2/client/client.d.ts.map +0 -1
  335. package/dist/gomtmapi_v2/client/client.js.map +0 -1
  336. package/dist/gomtmapi_v2/client/types.d.ts.map +0 -1
  337. package/dist/gomtmapi_v2/client/types.js +0 -2
  338. package/dist/gomtmapi_v2/client/types.js.map +0 -1
  339. package/dist/gomtmapi_v2/client/utils.d.ts.map +0 -1
  340. package/dist/gomtmapi_v2/client/utils.js.map +0 -1
  341. package/dist/gomtmapi_v2/core/auth.d.ts.map +0 -1
  342. package/dist/gomtmapi_v2/core/auth.js.map +0 -1
  343. package/dist/gomtmapi_v2/core/bodySerializer.d.ts.map +0 -1
  344. package/dist/gomtmapi_v2/core/bodySerializer.js.map +0 -1
  345. package/dist/gomtmapi_v2/core/params.d.ts.map +0 -1
  346. package/dist/gomtmapi_v2/core/params.js.map +0 -1
  347. package/dist/gomtmapi_v2/core/pathSerializer.d.ts.map +0 -1
  348. package/dist/gomtmapi_v2/core/pathSerializer.js.map +0 -1
  349. package/dist/gomtmapi_v2/core/types.d.ts.map +0 -1
  350. package/dist/gomtmapi_v2/core/types.js +0 -2
  351. package/dist/gomtmapi_v2/core/types.js.map +0 -1
  352. package/dist/lib/ai-types.d.ts +0 -61
  353. package/dist/lib/ai-types.d.ts.map +0 -1
  354. package/dist/lib/ai-types.js +0 -15
  355. package/dist/lib/ai-types.js.map +0 -1
  356. package/dist/lib/constants.d.ts +0 -40
  357. package/dist/lib/constants.d.ts.map +0 -1
  358. package/dist/lib/constants.js +0 -40
  359. package/dist/lib/constants.js.map +0 -1
  360. package/dist/lib/d1-utils.d.ts +0 -5
  361. package/dist/lib/d1-utils.d.ts.map +0 -1
  362. package/dist/lib/d1-utils.js +0 -36
  363. package/dist/lib/d1-utils.js.map +0 -1
  364. package/dist/lib/mtmutils.d.ts +0 -2
  365. package/dist/lib/mtmutils.d.ts.map +0 -1
  366. package/dist/lib/mtmutils.js +0 -9
  367. package/dist/lib/mtmutils.js.map +0 -1
  368. package/dist/mtgate_api/client/client.d.ts +0 -3
  369. package/dist/mtgate_api/client/client.d.ts.map +0 -1
  370. package/dist/mtgate_api/client/client.js.map +0 -1
  371. package/dist/mtgate_api/client/types.d.ts.map +0 -1
  372. package/dist/mtgate_api/client/types.js +0 -2
  373. package/dist/mtgate_api/client/types.js.map +0 -1
  374. package/dist/mtgate_api/client/utils.d.ts.map +0 -1
  375. package/dist/mtgate_api/client/utils.js.map +0 -1
  376. package/dist/mtgate_api/core/auth.d.ts.map +0 -1
  377. package/dist/mtgate_api/core/auth.js.map +0 -1
  378. package/dist/mtgate_api/core/bodySerializer.d.ts.map +0 -1
  379. package/dist/mtgate_api/core/bodySerializer.js.map +0 -1
  380. package/dist/mtgate_api/core/params.d.ts.map +0 -1
  381. package/dist/mtgate_api/core/params.js.map +0 -1
  382. package/dist/mtgate_api/core/pathSerializer.d.ts.map +0 -1
  383. package/dist/mtgate_api/core/pathSerializer.js.map +0 -1
  384. package/dist/mtgate_api/core/types.d.ts.map +0 -1
  385. package/dist/mtgate_api/core/types.js +0 -2
  386. package/dist/mtgate_api/core/types.js.map +0 -1
  387. package/dist/mtmai_api/client/client.d.ts +0 -3
  388. package/dist/mtmai_api/client/client.d.ts.map +0 -1
  389. package/dist/mtmai_api/client/client.js.map +0 -1
  390. package/dist/mtmai_api/client/types.d.ts.map +0 -1
  391. package/dist/mtmai_api/client/types.js +0 -2
  392. package/dist/mtmai_api/client/types.js.map +0 -1
  393. package/dist/mtmai_api/client/utils.d.ts.map +0 -1
  394. package/dist/mtmai_api/client/utils.js.map +0 -1
  395. package/dist/mtmai_api/core/auth.d.ts.map +0 -1
  396. package/dist/mtmai_api/core/auth.js.map +0 -1
  397. package/dist/mtmai_api/core/bodySerializer.d.ts.map +0 -1
  398. package/dist/mtmai_api/core/bodySerializer.js.map +0 -1
  399. package/dist/mtmai_api/core/params.d.ts.map +0 -1
  400. package/dist/mtmai_api/core/params.js.map +0 -1
  401. package/dist/mtmai_api/core/pathSerializer.d.ts.map +0 -1
  402. package/dist/mtmai_api/core/pathSerializer.js.map +0 -1
  403. package/dist/mtmai_api/core/types.d.ts.map +0 -1
  404. package/dist/mtmai_api/core/types.js +0 -2
  405. package/dist/mtmai_api/core/types.js.map +0 -1
  406. package/dist/store/ReactQueryApiV2Provider.d.ts.map +0 -1
  407. package/dist/store/ReactQueryApiV2Provider.js.map +0 -1
  408. package/dist/store/ReactQueryCfApiProvider.d.ts +0 -9
  409. package/dist/store/ReactQueryCfApiProvider.d.ts.map +0 -1
  410. package/dist/store/ReactQueryCfApiProvider.js +0 -26
  411. package/dist/store/ReactQueryCfApiProvider.js.map +0 -1
  412. package/dist/store/ReactQueryProvider.d.ts.map +0 -1
  413. package/dist/store/ReactQueryProvider.js.map +0 -1
@@ -1,22 +1,22 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { client as _heyApiClient } from "./client.gen";
2
+ import { client } from "./client.gen";
3
3
  /**
4
4
  * List agents
5
5
  * #### Controller:
6
6
  *
7
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).listAgents`
7
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).listAgents`
8
8
  *
9
9
  * #### Middlewares:
10
10
  *
11
11
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
12
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
12
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
13
13
  *
14
14
  * ---
15
15
  *
16
16
  * Get a paginated list of agents for the current tenant
17
17
  */
18
18
  export const agentList = (options) => {
19
- return (options?.client ?? _heyApiClient).get({
19
+ return (options?.client ?? client).get({
20
20
  url: "/api/v2/agents",
21
21
  ...options,
22
22
  });
@@ -25,19 +25,19 @@ export const agentList = (options) => {
25
25
  * Create agent
26
26
  * #### Controller:
27
27
  *
28
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).createAgent`
28
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).createAgent`
29
29
  *
30
30
  * #### Middlewares:
31
31
  *
32
32
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
33
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
33
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
34
34
  *
35
35
  * ---
36
36
  *
37
37
  * Create a new agent
38
38
  */
39
39
  export const agentCreate = (options) => {
40
- return (options.client ?? _heyApiClient).post({
40
+ return (options.client ?? client).post({
41
41
  url: "/api/v2/agents",
42
42
  ...options,
43
43
  headers: {
@@ -50,19 +50,19 @@ export const agentCreate = (options) => {
50
50
  * demo chat
51
51
  * #### Controller:
52
52
  *
53
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).demoChat`
53
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).demoChat`
54
54
  *
55
55
  * #### Middlewares:
56
56
  *
57
57
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
58
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
58
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
59
59
  *
60
60
  * ---
61
61
  *
62
62
  *
63
63
  */
64
64
  export const getApiV2AgentsDemoChat = (options) => {
65
- return (options?.client ?? _heyApiClient).get({
65
+ return (options?.client ?? client).get({
66
66
  url: "/api/v2/agents/demo-chat",
67
67
  ...options,
68
68
  });
@@ -71,19 +71,19 @@ export const getApiV2AgentsDemoChat = (options) => {
71
71
  * agent 事件提交
72
72
  * #### Controller:
73
73
  *
74
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).event`
74
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).event`
75
75
  *
76
76
  * #### Middlewares:
77
77
  *
78
78
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
79
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
79
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
80
80
  *
81
81
  * ---
82
82
  *
83
83
  * agen 事件提交
84
84
  */
85
85
  export const agentEvent = (options) => {
86
- return (options.client ?? _heyApiClient).post({
86
+ return (options.client ?? client).post({
87
87
  url: "/api/v2/agents/event",
88
88
  ...options,
89
89
  headers: {
@@ -96,19 +96,19 @@ export const agentEvent = (options) => {
96
96
  * agent 事件提交
97
97
  * #### Controller:
98
98
  *
99
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).listAgentSchedule`
99
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).listAgentSchedule`
100
100
  *
101
101
  * #### Middlewares:
102
102
  *
103
103
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
104
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
104
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
105
105
  *
106
106
  * ---
107
107
  *
108
108
  * agen 事件提交
109
109
  */
110
110
  export const agentSchedule = (options) => {
111
- return (options?.client ?? _heyApiClient).get({
111
+ return (options?.client ?? client).get({
112
112
  url: "/api/v2/agents/schedule",
113
113
  ...options,
114
114
  });
@@ -117,19 +117,19 @@ export const agentSchedule = (options) => {
117
117
  * Delete agent
118
118
  * #### Controller:
119
119
  *
120
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).deleteAgent`
120
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).deleteAgent`
121
121
  *
122
122
  * #### Middlewares:
123
123
  *
124
124
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
125
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
125
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
126
126
  *
127
127
  * ---
128
128
  *
129
129
  * Delete an agent
130
130
  */
131
131
  export const agentDelete = (options) => {
132
- return (options.client ?? _heyApiClient).delete({
132
+ return (options.client ?? client).delete({
133
133
  url: "/api/v2/agents/{agentId}",
134
134
  ...options,
135
135
  });
@@ -138,19 +138,19 @@ export const agentDelete = (options) => {
138
138
  * Get agent
139
139
  * #### Controller:
140
140
  *
141
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).getAgent`
141
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).getAgent`
142
142
  *
143
143
  * #### Middlewares:
144
144
  *
145
145
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
146
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
146
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
147
147
  *
148
148
  * ---
149
149
  *
150
150
  * Get a specific agent by ID
151
151
  */
152
152
  export const agentGet = (options) => {
153
- return (options.client ?? _heyApiClient).get({
153
+ return (options.client ?? client).get({
154
154
  url: "/api/v2/agents/{agentId}",
155
155
  ...options,
156
156
  });
@@ -159,19 +159,19 @@ export const agentGet = (options) => {
159
159
  * Update agent
160
160
  * #### Controller:
161
161
  *
162
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).updateAgent`
162
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).updateAgent`
163
163
  *
164
164
  * #### Middlewares:
165
165
  *
166
166
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
167
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
167
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
168
168
  *
169
169
  * ---
170
170
  *
171
171
  * Update an existing agent
172
172
  */
173
173
  export const agentUpdate = (options) => {
174
- return (options.client ?? _heyApiClient).put({
174
+ return (options.client ?? client).put({
175
175
  url: "/api/v2/agents/{agentId}",
176
176
  ...options,
177
177
  headers: {
@@ -184,19 +184,19 @@ export const agentUpdate = (options) => {
184
184
  * List chatbots
185
185
  * #### Controller:
186
186
  *
187
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).listChatbots`
187
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).listChatbots`
188
188
  *
189
189
  * #### Middlewares:
190
190
  *
191
191
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
192
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
192
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
193
193
  *
194
194
  * ---
195
195
  *
196
196
  * Get a paginated list of chatbots for the current tenant
197
197
  */
198
198
  export const langchatChatbotsList = (options) => {
199
- return (options?.client ?? _heyApiClient).get({
199
+ return (options?.client ?? client).get({
200
200
  url: "/api/v2/langchat/chatbots",
201
201
  ...options,
202
202
  });
@@ -205,19 +205,19 @@ export const langchatChatbotsList = (options) => {
205
205
  * Create or update chatbot
206
206
  * #### Controller:
207
207
  *
208
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).upsertChatbot`
208
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).upsertChatbot`
209
209
  *
210
210
  * #### Middlewares:
211
211
  *
212
212
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
213
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
213
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
214
214
  *
215
215
  * ---
216
216
  *
217
217
  * Create a new chatbot or update an existing one
218
218
  */
219
219
  export const langchatChatbotsUpsert = (options) => {
220
- return (options.client ?? _heyApiClient).post({
220
+ return (options.client ?? client).post({
221
221
  url: "/api/v2/langchat/chatbots",
222
222
  ...options,
223
223
  headers: {
@@ -230,19 +230,19 @@ export const langchatChatbotsUpsert = (options) => {
230
230
  * Login chatbot
231
231
  * #### Controller:
232
232
  *
233
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).loginChatbot`
233
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).loginChatbot`
234
234
  *
235
235
  * #### Middlewares:
236
236
  *
237
237
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
238
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
238
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
239
239
  *
240
240
  * ---
241
241
  *
242
242
  * Trigger the chatbot login workflow
243
243
  */
244
244
  export const langchatChatbotsLogin = (options) => {
245
- return (options.client ?? _heyApiClient).post({
245
+ return (options.client ?? client).post({
246
246
  url: "/api/v2/langchat/chatbots/login",
247
247
  ...options,
248
248
  headers: {
@@ -255,19 +255,19 @@ export const langchatChatbotsLogin = (options) => {
255
255
  * Run chatbot
256
256
  * #### Controller:
257
257
  *
258
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).runChatbot`
258
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).runChatbot`
259
259
  *
260
260
  * #### Middlewares:
261
261
  *
262
262
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
263
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
263
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
264
264
  *
265
265
  * ---
266
266
  *
267
267
  * Trigger the chatbot startup workflow
268
268
  */
269
269
  export const langchatChatbotsRun = (options) => {
270
- return (options.client ?? _heyApiClient).post({
270
+ return (options.client ?? client).post({
271
271
  url: "/api/v2/langchat/chatbots/run",
272
272
  ...options,
273
273
  headers: {
@@ -280,19 +280,19 @@ export const langchatChatbotsRun = (options) => {
280
280
  * Delete chatbot
281
281
  * #### Controller:
282
282
  *
283
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).deleteChatbot`
283
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).deleteChatbot`
284
284
  *
285
285
  * #### Middlewares:
286
286
  *
287
287
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
288
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
288
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
289
289
  *
290
290
  * ---
291
291
  *
292
292
  * Delete a chatbot
293
293
  */
294
294
  export const langchatChatbotsDelete = (options) => {
295
- return (options.client ?? _heyApiClient).delete({
295
+ return (options.client ?? client).delete({
296
296
  url: "/api/v2/langchat/chatbots/{chatbotId}",
297
297
  ...options,
298
298
  });
@@ -301,19 +301,19 @@ export const langchatChatbotsDelete = (options) => {
301
301
  * Get chatbot
302
302
  * #### Controller:
303
303
  *
304
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).getChatbot`
304
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).getChatbot`
305
305
  *
306
306
  * #### Middlewares:
307
307
  *
308
308
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
309
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
309
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
310
310
  *
311
311
  * ---
312
312
  *
313
313
  * Get a specific chatbot by ID
314
314
  */
315
315
  export const langchatChatbotsGet = (options) => {
316
- return (options.client ?? _heyApiClient).get({
316
+ return (options.client ?? client).get({
317
317
  url: "/api/v2/langchat/chatbots/{chatbotId}",
318
318
  ...options,
319
319
  });
@@ -322,19 +322,19 @@ export const langchatChatbotsGet = (options) => {
322
322
  * Update chatbot
323
323
  * #### Controller:
324
324
  *
325
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).upsertChatbotByPath`
325
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).upsertChatbotByPath`
326
326
  *
327
327
  * #### Middlewares:
328
328
  *
329
329
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
330
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
330
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
331
331
  *
332
332
  * ---
333
333
  *
334
334
  * Update an existing chatbot
335
335
  */
336
336
  export const langchatChatbotsUpdate = (options) => {
337
- return (options.client ?? _heyApiClient).put({
337
+ return (options.client ?? client).put({
338
338
  url: "/api/v2/langchat/chatbots/{chatbotId}",
339
339
  ...options,
340
340
  headers: {
@@ -347,19 +347,19 @@ export const langchatChatbotsUpdate = (options) => {
347
347
  * List platform types
348
348
  * #### Controller:
349
349
  *
350
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).listPlatformTypes`
350
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).listPlatformTypes`
351
351
  *
352
352
  * #### Middlewares:
353
353
  *
354
354
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
355
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
355
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
356
356
  *
357
357
  * ---
358
358
  *
359
359
  * Get available platform types
360
360
  */
361
361
  export const langchatPlatformTypes = (options) => {
362
- return (options?.client ?? _heyApiClient).get({
362
+ return (options?.client ?? client).get({
363
363
  url: "/api/v2/langchat/platform-types",
364
364
  ...options,
365
365
  });
@@ -368,19 +368,19 @@ export const langchatPlatformTypes = (options) => {
368
368
  * Start napcat service
369
369
  * #### Controller:
370
370
  *
371
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).StartNapcat`
371
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).StartNapcat`
372
372
  *
373
373
  * #### Middlewares:
374
374
  *
375
375
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
376
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
376
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
377
377
  *
378
378
  * ---
379
379
  *
380
380
  * Start napcat service with specified configuration
381
381
  */
382
382
  export const napcatStart = (options) => {
383
- return (options.client ?? _heyApiClient).post({
383
+ return (options.client ?? client).post({
384
384
  url: "/api/v2/napcat/start",
385
385
  ...options,
386
386
  headers: {
@@ -393,19 +393,19 @@ export const napcatStart = (options) => {
393
393
  * Get napcat status
394
394
  * #### Controller:
395
395
  *
396
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).GetStatus`
396
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).GetStatus`
397
397
  *
398
398
  * #### Middlewares:
399
399
  *
400
400
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
401
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
401
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
402
402
  *
403
403
  * ---
404
404
  *
405
405
  * Get current napcat running status
406
406
  */
407
407
  export const napcatGetStatus = (options) => {
408
- return (options?.client ?? _heyApiClient).get({
408
+ return (options?.client ?? client).get({
409
409
  url: "/api/v2/napcat/status",
410
410
  ...options,
411
411
  });
@@ -414,19 +414,19 @@ export const napcatGetStatus = (options) => {
414
414
  * Proxy OneBot11 API GET requests
415
415
  * #### Controller:
416
416
  *
417
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
417
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
418
418
  *
419
419
  * #### Middlewares:
420
420
  *
421
421
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
422
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
422
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
423
423
  *
424
424
  * ---
425
425
  *
426
426
  * Proxy all OneBot11 API GET requests to napcat HTTP server
427
427
  */
428
428
  export const napcatProxyOneBot11Get = (options) => {
429
- return (options?.client ?? _heyApiClient).get({
429
+ return (options?.client ?? client).get({
430
430
  url: "/api/v2/onebot11/*",
431
431
  ...options,
432
432
  });
@@ -435,19 +435,19 @@ export const napcatProxyOneBot11Get = (options) => {
435
435
  * Proxy OneBot11 API POST requests
436
436
  * #### Controller:
437
437
  *
438
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
438
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
439
439
  *
440
440
  * #### Middlewares:
441
441
  *
442
442
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
443
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
443
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
444
444
  *
445
445
  * ---
446
446
  *
447
447
  * Proxy all OneBot11 API POST requests to napcat HTTP server
448
448
  */
449
449
  export const napcatProxyOneBot11Post = (options) => {
450
- return (options?.client ?? _heyApiClient).post({
450
+ return (options?.client ?? client).post({
451
451
  url: "/api/v2/onebot11/*",
452
452
  ...options,
453
453
  });
@@ -456,19 +456,19 @@ export const napcatProxyOneBot11Post = (options) => {
456
456
  * List OneBot11 messages
457
457
  * #### Controller:
458
458
  *
459
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListMessages`
459
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).ListMessages`
460
460
  *
461
461
  * #### Middlewares:
462
462
  *
463
463
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
464
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
464
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
465
465
  *
466
466
  * ---
467
467
  *
468
468
  * Get a list of OneBot11 messages with optional filtering
469
469
  */
470
470
  export const langchatChatbotsMessagesList = (options) => {
471
- return (options?.client ?? _heyApiClient).get({
471
+ return (options?.client ?? client).get({
472
472
  url: "/api/v2/onebot11/messages",
473
473
  ...options,
474
474
  });
@@ -477,19 +477,19 @@ export const langchatChatbotsMessagesList = (options) => {
477
477
  * Get OneBot11 message
478
478
  * #### Controller:
479
479
  *
480
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).GetMessage`
480
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).GetMessage`
481
481
  *
482
482
  * #### Middlewares:
483
483
  *
484
484
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
485
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
485
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
486
486
  *
487
487
  * ---
488
488
  *
489
489
  * Get a specific OneBot11 message by ID
490
490
  */
491
491
  export const langchatChatbotsMessagesGet = (options) => {
492
- return (options.client ?? _heyApiClient).get({
492
+ return (options.client ?? client).get({
493
493
  url: "/api/v2/onebot11/messages/{id}",
494
494
  ...options,
495
495
  });
@@ -498,19 +498,19 @@ export const langchatChatbotsMessagesGet = (options) => {
498
498
  * List OneBot11 sessions
499
499
  * #### Controller:
500
500
  *
501
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListSessions`
501
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).ListSessions`
502
502
  *
503
503
  * #### Middlewares:
504
504
  *
505
505
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
506
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
506
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
507
507
  *
508
508
  * ---
509
509
  *
510
510
  * Get a list of OneBot11 sessions with optional filtering
511
511
  */
512
512
  export const langchatChatbotsSessionsList = (options) => {
513
- return (options?.client ?? _heyApiClient).get({
513
+ return (options?.client ?? client).get({
514
514
  url: "/api/v2/onebot11/sessions",
515
515
  ...options,
516
516
  });
@@ -519,19 +519,19 @@ export const langchatChatbotsSessionsList = (options) => {
519
519
  * List platform accounts
520
520
  * #### Controller:
521
521
  *
522
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listPAccounts`
522
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).listPAccounts`
523
523
  *
524
524
  * #### Middlewares:
525
525
  *
526
526
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
527
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
527
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
528
528
  *
529
529
  * ---
530
530
  *
531
531
  * Get list of platform accounts with pagination
532
532
  */
533
533
  export const pAccountList = (options) => {
534
- return (options?.client ?? _heyApiClient).get({
534
+ return (options?.client ?? client).get({
535
535
  url: "/api/v2/paccounts",
536
536
  ...options,
537
537
  });
@@ -540,19 +540,19 @@ export const pAccountList = (options) => {
540
540
  * Create platform account
541
541
  * #### Controller:
542
542
  *
543
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createPAccount`
543
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).createPAccount`
544
544
  *
545
545
  * #### Middlewares:
546
546
  *
547
547
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
548
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
548
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
549
549
  *
550
550
  * ---
551
551
  *
552
552
  * Create a new platform account
553
553
  */
554
554
  export const pAccountCreate = (options) => {
555
- return (options.client ?? _heyApiClient).post({
555
+ return (options.client ?? client).post({
556
556
  url: "/api/v2/paccounts",
557
557
  ...options,
558
558
  headers: {
@@ -565,19 +565,19 @@ export const pAccountCreate = (options) => {
565
565
  * Export platform accounts
566
566
  * #### Controller:
567
567
  *
568
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).exportPAccounts`
568
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).exportPAccounts`
569
569
  *
570
570
  * #### Middlewares:
571
571
  *
572
572
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
573
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
573
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
574
574
  *
575
575
  * ---
576
576
  *
577
577
  * Export all platform accounts data
578
578
  */
579
579
  export const pAccountExport = (options) => {
580
- return (options?.client ?? _heyApiClient).get({
580
+ return (options?.client ?? client).get({
581
581
  url: "/api/v2/paccounts/export",
582
582
  ...options,
583
583
  });
@@ -586,19 +586,19 @@ export const pAccountExport = (options) => {
586
586
  * Import platform accounts
587
587
  * #### Controller:
588
588
  *
589
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).importPAccounts`
589
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).importPAccounts`
590
590
  *
591
591
  * #### Middlewares:
592
592
  *
593
593
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
594
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
594
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
595
595
  *
596
596
  * ---
597
597
  *
598
598
  * Import platform accounts data
599
599
  */
600
600
  export const pAccountImport = (options) => {
601
- return (options.client ?? _heyApiClient).post({
601
+ return (options.client ?? client).post({
602
602
  url: "/api/v2/paccounts/import",
603
603
  ...options,
604
604
  headers: {
@@ -611,19 +611,19 @@ export const pAccountImport = (options) => {
611
611
  * Delete platform account
612
612
  * #### Controller:
613
613
  *
614
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).deletePAccount`
614
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).deletePAccount`
615
615
  *
616
616
  * #### Middlewares:
617
617
  *
618
618
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
619
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
619
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
620
620
  *
621
621
  * ---
622
622
  *
623
623
  * Delete platform account by ID
624
624
  */
625
625
  export const pAccountDelete = (options) => {
626
- return (options.client ?? _heyApiClient).delete({
626
+ return (options.client ?? client).delete({
627
627
  url: "/api/v2/paccounts/{accountId}",
628
628
  ...options,
629
629
  });
@@ -632,19 +632,19 @@ export const pAccountDelete = (options) => {
632
632
  * Get platform account
633
633
  * #### Controller:
634
634
  *
635
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).getPAccount`
635
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).getPAccount`
636
636
  *
637
637
  * #### Middlewares:
638
638
  *
639
639
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
640
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
640
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
641
641
  *
642
642
  * ---
643
643
  *
644
644
  * Get platform account by ID
645
645
  */
646
646
  export const pAccountGet = (options) => {
647
- return (options.client ?? _heyApiClient).get({
647
+ return (options.client ?? client).get({
648
648
  url: "/api/v2/paccounts/{accountId}",
649
649
  ...options,
650
650
  });
@@ -653,19 +653,19 @@ export const pAccountGet = (options) => {
653
653
  * Update platform account
654
654
  * #### Controller:
655
655
  *
656
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).updatePAccount`
656
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).updatePAccount`
657
657
  *
658
658
  * #### Middlewares:
659
659
  *
660
660
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
661
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
661
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
662
662
  *
663
663
  * ---
664
664
  *
665
665
  * Update platform account by ID
666
666
  */
667
667
  export const pAccountUpdate = (options) => {
668
- return (options.client ?? _heyApiClient).put({
668
+ return (options.client ?? client).put({
669
669
  url: "/api/v2/paccounts/{accountId}",
670
670
  ...options,
671
671
  headers: {
@@ -678,19 +678,19 @@ export const pAccountUpdate = (options) => {
678
678
  * List browser configs
679
679
  * #### Controller:
680
680
  *
681
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listBrowserConfigs`
681
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).listBrowserConfigs`
682
682
  *
683
683
  * #### Middlewares:
684
684
  *
685
685
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
686
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
686
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
687
687
  *
688
688
  * ---
689
689
  *
690
690
  * List browser configurations for platform account
691
691
  */
692
692
  export const pAccountListBrowserConfigs = (options) => {
693
- return (options.client ?? _heyApiClient).get({
693
+ return (options.client ?? client).get({
694
694
  url: "/api/v2/paccounts/{accountId}/browser/configs",
695
695
  ...options,
696
696
  });
@@ -699,19 +699,19 @@ export const pAccountListBrowserConfigs = (options) => {
699
699
  * Create browser config
700
700
  * #### Controller:
701
701
  *
702
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createBrowserConfig`
702
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).createBrowserConfig`
703
703
  *
704
704
  * #### Middlewares:
705
705
  *
706
706
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
707
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
707
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
708
708
  *
709
709
  * ---
710
710
  *
711
711
  * Create browser configuration for platform account
712
712
  */
713
713
  export const pAccountCreateBrowserConfig = (options) => {
714
- return (options.client ?? _heyApiClient).post({
714
+ return (options.client ?? client).post({
715
715
  url: "/api/v2/paccounts/{accountId}/browser/configs",
716
716
  ...options,
717
717
  headers: {
@@ -724,19 +724,19 @@ export const pAccountCreateBrowserConfig = (options) => {
724
724
  * Launch browser for account
725
725
  * #### Controller:
726
726
  *
727
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).launchBrowser`
727
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).launchBrowser`
728
728
  *
729
729
  * #### Middlewares:
730
730
  *
731
731
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
732
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
732
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
733
733
  *
734
734
  * ---
735
735
  *
736
736
  * Launch browser session for platform account
737
737
  */
738
738
  export const pAccountLaunchBrowser = (options) => {
739
- return (options.client ?? _heyApiClient).post({
739
+ return (options.client ?? client).post({
740
740
  url: "/api/v2/paccounts/{accountId}/browser/launch",
741
741
  ...options,
742
742
  });
@@ -745,19 +745,19 @@ export const pAccountLaunchBrowser = (options) => {
745
745
  * List sessions
746
746
  * #### Controller:
747
747
  *
748
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listSessions`
748
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).listSessions`
749
749
  *
750
750
  * #### Middlewares:
751
751
  *
752
752
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
753
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
753
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
754
754
  *
755
755
  * ---
756
756
  *
757
757
  * List sessions for platform account
758
758
  */
759
759
  export const pAccountListSessions = (options) => {
760
- return (options.client ?? _heyApiClient).get({
760
+ return (options.client ?? client).get({
761
761
  url: "/api/v2/paccounts/{accountId}/sessions",
762
762
  ...options,
763
763
  });
@@ -766,19 +766,19 @@ export const pAccountListSessions = (options) => {
766
766
  * Create session
767
767
  * #### Controller:
768
768
  *
769
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createSession`
769
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).createSession`
770
770
  *
771
771
  * #### Middlewares:
772
772
  *
773
773
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
774
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
774
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
775
775
  *
776
776
  * ---
777
777
  *
778
778
  * Create session for platform account
779
779
  */
780
780
  export const pAccountCreateSession = (options) => {
781
- return (options.client ?? _heyApiClient).post({
781
+ return (options.client ?? client).post({
782
782
  url: "/api/v2/paccounts/{accountId}/sessions",
783
783
  ...options,
784
784
  headers: {
@@ -791,19 +791,19 @@ export const pAccountCreateSession = (options) => {
791
791
  * Delete session
792
792
  * #### Controller:
793
793
  *
794
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).deleteSession`
794
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).deleteSession`
795
795
  *
796
796
  * #### Middlewares:
797
797
  *
798
798
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
799
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
799
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
800
800
  *
801
801
  * ---
802
802
  *
803
803
  * Delete session by ID
804
804
  */
805
805
  export const pAccountDeleteSession = (options) => {
806
- return (options.client ?? _heyApiClient).delete({
806
+ return (options.client ?? client).delete({
807
807
  url: "/api/v2/paccounts/{accountId}/sessions/{sessionId}",
808
808
  ...options,
809
809
  });
@@ -812,19 +812,19 @@ export const pAccountDeleteSession = (options) => {
812
812
  * Get session
813
813
  * #### Controller:
814
814
  *
815
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).getSession`
815
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).getSession`
816
816
  *
817
817
  * #### Middlewares:
818
818
  *
819
819
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
820
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
820
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
821
821
  *
822
822
  * ---
823
823
  *
824
824
  * Get session by ID
825
825
  */
826
826
  export const pAccountGetSession = (options) => {
827
- return (options.client ?? _heyApiClient).get({
827
+ return (options.client ?? client).get({
828
828
  url: "/api/v2/paccounts/{accountId}/sessions/{sessionId}",
829
829
  ...options,
830
830
  });
@@ -833,19 +833,19 @@ export const pAccountGetSession = (options) => {
833
833
  * Update session
834
834
  * #### Controller:
835
835
  *
836
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).updateSession`
836
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).updateSession`
837
837
  *
838
838
  * #### Middlewares:
839
839
  *
840
840
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
841
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
841
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
842
842
  *
843
843
  * ---
844
844
  *
845
845
  * Update session by ID
846
846
  */
847
847
  export const pAccountUpdateSession = (options) => {
848
- return (options.client ?? _heyApiClient).put({
848
+ return (options.client ?? client).put({
849
849
  url: "/api/v2/paccounts/{accountId}/sessions/{sessionId}",
850
850
  ...options,
851
851
  headers: {
@@ -858,19 +858,19 @@ export const pAccountUpdateSession = (options) => {
858
858
  * List platforms
859
859
  * #### Controller:
860
860
  *
861
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).listPlatforms`
861
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).listPlatforms`
862
862
  *
863
863
  * #### Middlewares:
864
864
  *
865
865
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
866
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
866
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
867
867
  *
868
868
  * ---
869
869
  *
870
870
  * Get list of platforms with pagination
871
871
  */
872
872
  export const platformList = (options) => {
873
- return (options?.client ?? _heyApiClient).get({
873
+ return (options?.client ?? client).get({
874
874
  url: "/api/v2/platforms",
875
875
  ...options,
876
876
  });
@@ -879,19 +879,19 @@ export const platformList = (options) => {
879
879
  * Create platform
880
880
  * #### Controller:
881
881
  *
882
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).createPlatform`
882
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).createPlatform`
883
883
  *
884
884
  * #### Middlewares:
885
885
  *
886
886
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
887
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
887
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
888
888
  *
889
889
  * ---
890
890
  *
891
891
  * Create a new platform
892
892
  */
893
893
  export const platformCreate = (options) => {
894
- return (options.client ?? _heyApiClient).post({
894
+ return (options.client ?? client).post({
895
895
  url: "/api/v2/platforms",
896
896
  ...options,
897
897
  headers: {
@@ -904,19 +904,19 @@ export const platformCreate = (options) => {
904
904
  * Export platforms
905
905
  * #### Controller:
906
906
  *
907
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).exportPlatforms`
907
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).exportPlatforms`
908
908
  *
909
909
  * #### Middlewares:
910
910
  *
911
911
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
912
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
912
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
913
913
  *
914
914
  * ---
915
915
  *
916
916
  * Export all platforms data
917
917
  */
918
918
  export const platformExport = (options) => {
919
- return (options?.client ?? _heyApiClient).get({
919
+ return (options?.client ?? client).get({
920
920
  url: "/api/v2/platforms/export",
921
921
  ...options,
922
922
  });
@@ -925,19 +925,19 @@ export const platformExport = (options) => {
925
925
  * Import platforms
926
926
  * #### Controller:
927
927
  *
928
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).importPlatforms`
928
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).importPlatforms`
929
929
  *
930
930
  * #### Middlewares:
931
931
  *
932
932
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
933
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
933
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
934
934
  *
935
935
  * ---
936
936
  *
937
937
  * Import platforms data
938
938
  */
939
939
  export const platformImport = (options) => {
940
- return (options.client ?? _heyApiClient).post({
940
+ return (options.client ?? client).post({
941
941
  url: "/api/v2/platforms/import",
942
942
  ...options,
943
943
  headers: {
@@ -950,19 +950,19 @@ export const platformImport = (options) => {
950
950
  * Delete platform
951
951
  * #### Controller:
952
952
  *
953
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).deletePlatform`
953
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).deletePlatform`
954
954
  *
955
955
  * #### Middlewares:
956
956
  *
957
957
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
958
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
958
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
959
959
  *
960
960
  * ---
961
961
  *
962
962
  * Delete platform by ID
963
963
  */
964
964
  export const platformDelete = (options) => {
965
- return (options.client ?? _heyApiClient).delete({
965
+ return (options.client ?? client).delete({
966
966
  url: "/api/v2/platforms/{platformId}",
967
967
  ...options,
968
968
  });
@@ -971,19 +971,19 @@ export const platformDelete = (options) => {
971
971
  * Get platform
972
972
  * #### Controller:
973
973
  *
974
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).getPlatform`
974
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).getPlatform`
975
975
  *
976
976
  * #### Middlewares:
977
977
  *
978
978
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
979
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
979
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
980
980
  *
981
981
  * ---
982
982
  *
983
983
  * Get platform by ID
984
984
  */
985
985
  export const platformGet = (options) => {
986
- return (options.client ?? _heyApiClient).get({
986
+ return (options.client ?? client).get({
987
987
  url: "/api/v2/platforms/{platformId}",
988
988
  ...options,
989
989
  });
@@ -992,19 +992,19 @@ export const platformGet = (options) => {
992
992
  * Update platform
993
993
  * #### Controller:
994
994
  *
995
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).updatePlatform`
995
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).updatePlatform`
996
996
  *
997
997
  * #### Middlewares:
998
998
  *
999
999
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1000
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1000
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1001
1001
  *
1002
1002
  * ---
1003
1003
  *
1004
1004
  * Update platform by ID
1005
1005
  */
1006
1006
  export const platformUpdate = (options) => {
1007
- return (options.client ?? _heyApiClient).put({
1007
+ return (options.client ?? client).put({
1008
1008
  url: "/api/v2/platforms/{platformId}",
1009
1009
  ...options,
1010
1010
  headers: {
@@ -1017,19 +1017,19 @@ export const platformUpdate = (options) => {
1017
1017
  * List proxies
1018
1018
  * #### Controller:
1019
1019
  *
1020
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).ListProxies`
1020
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).ListProxies`
1021
1021
  *
1022
1022
  * #### Middlewares:
1023
1023
  *
1024
1024
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1025
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1025
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1026
1026
  *
1027
1027
  * ---
1028
1028
  *
1029
1029
  * Get a paginated list of proxies for the current tenant
1030
1030
  */
1031
1031
  export const proxyList = (options) => {
1032
- return (options?.client ?? _heyApiClient).get({
1032
+ return (options?.client ?? client).get({
1033
1033
  url: "/api/v2/proxies",
1034
1034
  ...options,
1035
1035
  });
@@ -1038,19 +1038,19 @@ export const proxyList = (options) => {
1038
1038
  * Upsert proxy
1039
1039
  * #### Controller:
1040
1040
  *
1041
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).UpsertProxy`
1041
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).UpsertProxy`
1042
1042
  *
1043
1043
  * #### Middlewares:
1044
1044
  *
1045
1045
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1046
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1046
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1047
1047
  *
1048
1048
  * ---
1049
1049
  *
1050
1050
  * Create or update a proxy
1051
1051
  */
1052
1052
  export const proxyUpsert = (options) => {
1053
- return (options.client ?? _heyApiClient).put({
1053
+ return (options.client ?? client).put({
1054
1054
  url: "/api/v2/proxies/upsert",
1055
1055
  ...options,
1056
1056
  headers: {
@@ -1063,19 +1063,19 @@ export const proxyUpsert = (options) => {
1063
1063
  * Delete proxy
1064
1064
  * #### Controller:
1065
1065
  *
1066
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).DeleteProxy`
1066
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).DeleteProxy`
1067
1067
  *
1068
1068
  * #### Middlewares:
1069
1069
  *
1070
1070
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1071
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1071
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1072
1072
  *
1073
1073
  * ---
1074
1074
  *
1075
1075
  * Delete a proxy
1076
1076
  */
1077
1077
  export const proxyDelete = (options) => {
1078
- return (options.client ?? _heyApiClient).delete({
1078
+ return (options.client ?? client).delete({
1079
1079
  url: "/api/v2/proxies/{proxyId}",
1080
1080
  ...options,
1081
1081
  });
@@ -1084,110 +1084,83 @@ export const proxyDelete = (options) => {
1084
1084
  * Get proxy
1085
1085
  * #### Controller:
1086
1086
  *
1087
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).GetProxy`
1087
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).GetProxy`
1088
1088
  *
1089
1089
  * #### Middlewares:
1090
1090
  *
1091
1091
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1092
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1092
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1093
1093
  *
1094
1094
  * ---
1095
1095
  *
1096
1096
  * Get a specific proxy by ID
1097
1097
  */
1098
1098
  export const proxyGet = (options) => {
1099
- return (options.client ?? _heyApiClient).get({
1099
+ return (options.client ?? client).get({
1100
1100
  url: "/api/v2/proxies/{proxyId}",
1101
1101
  ...options,
1102
1102
  });
1103
1103
  };
1104
1104
  /**
1105
- * Start Napcat sandbox
1105
+ * Health check
1106
1106
  * #### Controller:
1107
1107
  *
1108
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).startNapcatSandbox`
1108
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).HealthCheckHandler`
1109
1109
  *
1110
1110
  * #### Middlewares:
1111
1111
  *
1112
1112
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1113
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1113
1114
  *
1114
1115
  * ---
1115
1116
  *
1116
- * Start a Napcat sandbox instance
1117
+ * Check the health status of the terminal service
1117
1118
  */
1118
- export const sandboxStartNapcat = (options) => {
1119
- return (options.client ?? _heyApiClient).post({
1120
- url: "/api/v2/sandbox/",
1119
+ export const termsHealthCheck = (options) => {
1120
+ return (options?.client ?? client).get({
1121
+ url: "/api/v2/terms/health",
1121
1122
  ...options,
1122
- headers: {
1123
- "Content-Type": "*/*",
1124
- ...options.headers,
1125
- },
1126
- });
1127
- };
1128
- /**
1129
- * Check sandbox status
1130
- * #### Controller:
1131
- *
1132
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).checkSandboxStatus`
1133
- *
1134
- * #### Middlewares:
1135
- *
1136
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1137
- *
1138
- * ---
1139
- *
1140
- * Check the status of specified sandbox instances
1141
- */
1142
- export const napcatCheckStatus = (options) => {
1143
- return (options.client ?? _heyApiClient).post({
1144
- url: "/api/v2/sandbox/check-status",
1145
- ...options,
1146
- headers: {
1147
- "Content-Type": "*/*",
1148
- ...options.headers,
1149
- },
1150
1123
  });
1151
1124
  };
1152
1125
  /**
1153
- * List sandbox services
1126
+ * List terminals
1154
1127
  * #### Controller:
1155
1128
  *
1156
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).listSbServices`
1129
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).ListTerminalsHandler`
1157
1130
  *
1158
1131
  * #### Middlewares:
1159
1132
  *
1160
1133
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1161
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1134
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1162
1135
  *
1163
1136
  * ---
1164
1137
  *
1165
- * Get a paginated list of sandbox services for the current tenant
1138
+ * List all terminal sessions
1166
1139
  */
1167
- export const sbServiceList = (options) => {
1168
- return (options?.client ?? _heyApiClient).get({
1169
- url: "/api/v2/sbservices",
1140
+ export const termsListTerminals = (options) => {
1141
+ return (options?.client ?? client).get({
1142
+ url: "/api/v2/terms/terminals",
1170
1143
  ...options,
1171
1144
  });
1172
1145
  };
1173
1146
  /**
1174
- * Create sandbox service
1147
+ * Create terminal
1175
1148
  * #### Controller:
1176
1149
  *
1177
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).createSbService`
1150
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).CreateTerminalHandler`
1178
1151
  *
1179
1152
  * #### Middlewares:
1180
1153
  *
1181
1154
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1182
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1155
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1183
1156
  *
1184
1157
  * ---
1185
1158
  *
1186
- * Create a new sandbox service
1159
+ * Create a new terminal session
1187
1160
  */
1188
- export const sbServiceCreate = (options) => {
1189
- return (options.client ?? _heyApiClient).post({
1190
- url: "/api/v2/sbservices",
1161
+ export const termsCreateTerminal = (options) => {
1162
+ return (options.client ?? client).post({
1163
+ url: "/api/v2/terms/terminals",
1191
1164
  ...options,
1192
1165
  headers: {
1193
1166
  "Content-Type": "*/*",
@@ -1196,86 +1169,90 @@ export const sbServiceCreate = (options) => {
1196
1169
  });
1197
1170
  };
1198
1171
  /**
1199
- * Get available service types
1172
+ * Kill terminal
1200
1173
  * #### Controller:
1201
1174
  *
1202
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).getServiceTypes`
1175
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).KillTerminalHandler`
1203
1176
  *
1204
1177
  * #### Middlewares:
1205
1178
  *
1206
1179
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1207
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1180
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1208
1181
  *
1209
1182
  * ---
1210
1183
  *
1211
- * Get a list of available service types for sandbox services
1184
+ * Kill a terminal session
1212
1185
  */
1213
- export const sbServiceGetServiceTypes = (options) => {
1214
- return (options?.client ?? _heyApiClient).get({
1215
- url: "/api/v2/sbservices/service-types",
1186
+ export const termsKillTerminal = (options) => {
1187
+ return (options.client ?? client).delete({
1188
+ url: "/api/v2/terms/terminals/{id}",
1216
1189
  ...options,
1217
1190
  });
1218
1191
  };
1219
1192
  /**
1220
- * Delete sandbox service
1193
+ * Send input to terminal
1221
1194
  * #### Controller:
1222
1195
  *
1223
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).deleteSbService`
1196
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).SendInputHandler`
1224
1197
  *
1225
1198
  * #### Middlewares:
1226
1199
  *
1227
1200
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1228
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1201
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1229
1202
  *
1230
1203
  * ---
1231
1204
  *
1232
- * Delete a sandbox service
1205
+ * Send input to a terminal session
1233
1206
  */
1234
- export const sbServiceDelete = (options) => {
1235
- return (options.client ?? _heyApiClient).delete({
1236
- url: "/api/v2/sbservices/{serviceId}",
1207
+ export const termsSendInput = (options) => {
1208
+ return (options.client ?? client).post({
1209
+ url: "/api/v2/terms/terminals/{id}/input",
1237
1210
  ...options,
1211
+ headers: {
1212
+ "Content-Type": "*/*",
1213
+ ...options.headers,
1214
+ },
1238
1215
  });
1239
1216
  };
1240
1217
  /**
1241
- * Get sandbox service
1218
+ * Read terminal output
1242
1219
  * #### Controller:
1243
1220
  *
1244
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).getSbService`
1221
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).ReadOutputHandler`
1245
1222
  *
1246
1223
  * #### Middlewares:
1247
1224
  *
1248
1225
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1249
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1226
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1250
1227
  *
1251
1228
  * ---
1252
1229
  *
1253
- * Get a specific sandbox service by ID
1230
+ * Read output from a terminal session
1254
1231
  */
1255
- export const sbServiceGet = (options) => {
1256
- return (options.client ?? _heyApiClient).get({
1257
- url: "/api/v2/sbservices/{serviceId}",
1232
+ export const termsReadOutput = (options) => {
1233
+ return (options.client ?? client).get({
1234
+ url: "/api/v2/terms/terminals/{id}/output",
1258
1235
  ...options,
1259
1236
  });
1260
1237
  };
1261
1238
  /**
1262
- * Get current session
1239
+ * Get terminal stats
1263
1240
  * #### Controller:
1264
1241
  *
1265
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/session.(*SessionService).getSession`
1242
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).GetStatsHandler`
1266
1243
  *
1267
1244
  * #### Middlewares:
1268
1245
  *
1269
1246
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1270
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1247
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1271
1248
  *
1272
1249
  * ---
1273
1250
  *
1274
- * Get current user session information including user ID and tenant ID
1251
+ * Get statistics for a terminal session
1275
1252
  */
1276
- export const sessionGetCurrent = (options) => {
1277
- return (options?.client ?? _heyApiClient).get({
1278
- url: "/api/v2/session/current",
1253
+ export const termsGetStats = (options) => {
1254
+ return (options.client ?? client).get({
1255
+ url: "/api/v2/terms/terminals/{id}/stats",
1279
1256
  ...options,
1280
1257
  });
1281
1258
  };
@@ -1283,19 +1260,19 @@ export const sessionGetCurrent = (options) => {
1283
1260
  * Get current user
1284
1261
  * #### Controller:
1285
1262
  *
1286
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/users.(*UserService).getCurrentUser`
1263
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/users.(*UserService).getCurrentUser`
1287
1264
  *
1288
1265
  * #### Middlewares:
1289
1266
  *
1290
1267
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1291
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1268
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1292
1269
  *
1293
1270
  * ---
1294
1271
  *
1295
1272
  * Get current user information
1296
1273
  */
1297
1274
  export const userGetCurrent = (options) => {
1298
- return (options?.client ?? _heyApiClient).get({
1275
+ return (options?.client ?? client).get({
1299
1276
  url: "/api/v2/users/current",
1300
1277
  ...options,
1301
1278
  });
@@ -1304,19 +1281,19 @@ export const userGetCurrent = (options) => {
1304
1281
  * Proxy WebUI GET requests
1305
1282
  * #### Controller:
1306
1283
  *
1307
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1284
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1308
1285
  *
1309
1286
  * #### Middlewares:
1310
1287
  *
1311
1288
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1312
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1289
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1313
1290
  *
1314
1291
  * ---
1315
1292
  *
1316
1293
  * Proxy all WebUI GET requests to napcat WebUI server
1317
1294
  */
1318
1295
  export const napcatProxyWebUiget = (options) => {
1319
- return (options?.client ?? _heyApiClient).get({
1296
+ return (options?.client ?? client).get({
1320
1297
  url: "/api/v2/webui/*",
1321
1298
  ...options,
1322
1299
  });
@@ -1325,19 +1302,19 @@ export const napcatProxyWebUiget = (options) => {
1325
1302
  * Proxy WebUI POST requests
1326
1303
  * #### Controller:
1327
1304
  *
1328
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1305
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1329
1306
  *
1330
1307
  * #### Middlewares:
1331
1308
  *
1332
1309
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1333
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1310
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1334
1311
  *
1335
1312
  * ---
1336
1313
  *
1337
1314
  * Proxy all WebUI POST requests to napcat WebUI server
1338
1315
  */
1339
1316
  export const napcatProxyWebUipost = (options) => {
1340
- return (options?.client ?? _heyApiClient).post({
1317
+ return (options?.client ?? client).post({
1341
1318
  url: "/api/v2/webui/*",
1342
1319
  ...options,
1343
1320
  });