mtmsdk 0.0.12 → 0.0.13

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,15 +1,18 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { agentList, agentCreate, getApiV2AgentsDemoChat, agentEvent, agentSchedule, agentDelete, agentGet, agentUpdate, langchatChatbotsList, langchatChatbotsUpsert, langchatChatbotsLogin, langchatChatbotsRun, langchatChatbotsDelete, langchatChatbotsGet, langchatChatbotsUpdate, langchatPlatformTypes, napcatStart, napcatGetStatus, napcatProxyOneBot11Get, napcatProxyOneBot11Post, langchatChatbotsMessagesList, langchatChatbotsMessagesGet, langchatChatbotsSessionsList, pAccountList, pAccountCreate, pAccountExport, pAccountImport, pAccountDelete, pAccountGet, pAccountUpdate, pAccountListBrowserConfigs, pAccountCreateBrowserConfig, pAccountLaunchBrowser, pAccountListSessions, pAccountCreateSession, pAccountDeleteSession, pAccountGetSession, pAccountUpdateSession, platformList, platformCreate, platformExport, platformImport, platformDelete, platformGet, platformUpdate, proxyList, proxyUpsert, proxyDelete, proxyGet, sandboxStartNapcat, napcatCheckStatus, sbServiceList, sbServiceCreate, sbServiceGetServiceTypes, sbServiceDelete, sbServiceGet, sessionGetCurrent, userGetCurrent, napcatProxyWebUiget, napcatProxyWebUipost, } from "../sdk.gen";
3
- import { queryOptions, infiniteQueryOptions, } from "@tanstack/react-query";
4
- import { client as _heyApiClient } from "../client.gen";
5
- const createQueryKey = (id, options, infinite) => {
2
+ import { infiniteQueryOptions, queryOptions, } from "@tanstack/react-query";
3
+ import { client } from "../client.gen";
4
+ import { agentCreate, agentDelete, agentEvent, agentGet, agentList, agentSchedule, agentUpdate, getApiV2AgentsDemoChat, langchatChatbotsDelete, langchatChatbotsGet, langchatChatbotsList, langchatChatbotsLogin, langchatChatbotsMessagesGet, langchatChatbotsMessagesList, langchatChatbotsRun, langchatChatbotsSessionsList, langchatChatbotsUpdate, langchatChatbotsUpsert, langchatPlatformTypes, napcatGetStatus, napcatProxyOneBot11Get, napcatProxyOneBot11Post, napcatProxyWebUiget, napcatProxyWebUipost, napcatStart, pAccountCreate, pAccountCreateBrowserConfig, pAccountCreateSession, pAccountDelete, pAccountDeleteSession, pAccountExport, pAccountGet, pAccountGetSession, pAccountImport, pAccountLaunchBrowser, pAccountList, pAccountListBrowserConfigs, pAccountListSessions, pAccountUpdate, pAccountUpdateSession, platformCreate, platformDelete, platformExport, platformGet, platformImport, platformList, platformUpdate, proxyDelete, proxyGet, proxyList, proxyUpsert, termsCreateTerminal, termsGetStats, termsHealthCheck, termsKillTerminal, termsListTerminals, termsReadOutput, termsSendInput, userGetCurrent, } from "../sdk.gen";
5
+ const createQueryKey = (id, options, infinite, tags) => {
6
6
  const params = {
7
7
  _id: id,
8
- baseUrl: (options?.client ?? _heyApiClient).getConfig().baseUrl,
8
+ baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl,
9
9
  };
10
10
  if (infinite) {
11
11
  params._infinite = infinite;
12
12
  }
13
+ if (tags) {
14
+ params.tags = tags;
15
+ }
13
16
  if (options?.body) {
14
17
  params.body = options.body;
15
18
  }
@@ -29,12 +32,12 @@ export const agentListQueryKey = (options) => createQueryKey("agentList", option
29
32
  * List agents
30
33
  * #### Controller:
31
34
  *
32
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).listAgents`
35
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).listAgents`
33
36
  *
34
37
  * #### Middlewares:
35
38
  *
36
39
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
37
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
40
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
38
41
  *
39
42
  * ---
40
43
  *
@@ -54,46 +57,16 @@ export const agentListOptions = (options) => {
54
57
  queryKey: agentListQueryKey(options),
55
58
  });
56
59
  };
57
- export const agentCreateQueryKey = (options) => createQueryKey("agentCreate", options);
58
60
  /**
59
61
  * Create agent
60
62
  * #### Controller:
61
63
  *
62
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).createAgent`
64
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).createAgent`
63
65
  *
64
66
  * #### Middlewares:
65
67
  *
66
68
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
67
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
68
- *
69
- * ---
70
- *
71
- * Create a new agent
72
- */
73
- export const agentCreateOptions = (options) => {
74
- return queryOptions({
75
- queryFn: async ({ queryKey, signal }) => {
76
- const { data } = await agentCreate({
77
- ...options,
78
- ...queryKey[0],
79
- signal,
80
- throwOnError: true,
81
- });
82
- return data;
83
- },
84
- queryKey: agentCreateQueryKey(options),
85
- });
86
- };
87
- /**
88
- * Create agent
89
- * #### Controller:
90
- *
91
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).createAgent`
92
- *
93
- * #### Middlewares:
94
- *
95
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
96
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
69
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
97
70
  *
98
71
  * ---
99
72
  *
@@ -101,10 +74,10 @@ export const agentCreateOptions = (options) => {
101
74
  */
102
75
  export const agentCreateMutation = (options) => {
103
76
  const mutationOptions = {
104
- mutationFn: async (localOptions) => {
77
+ mutationFn: async (fnOptions) => {
105
78
  const { data } = await agentCreate({
106
79
  ...options,
107
- ...localOptions,
80
+ ...fnOptions,
108
81
  throwOnError: true,
109
82
  });
110
83
  return data;
@@ -117,12 +90,12 @@ export const getApiV2AgentsDemoChatQueryKey = (options) => createQueryKey("getAp
117
90
  * demo chat
118
91
  * #### Controller:
119
92
  *
120
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).demoChat`
93
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).demoChat`
121
94
  *
122
95
  * #### Middlewares:
123
96
  *
124
97
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
125
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
98
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
126
99
  *
127
100
  * ---
128
101
  *
@@ -142,46 +115,16 @@ export const getApiV2AgentsDemoChatOptions = (options) => {
142
115
  queryKey: getApiV2AgentsDemoChatQueryKey(options),
143
116
  });
144
117
  };
145
- export const agentEventQueryKey = (options) => createQueryKey("agentEvent", options);
146
- /**
147
- * agent 事件提交
148
- * #### Controller:
149
- *
150
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).event`
151
- *
152
- * #### Middlewares:
153
- *
154
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
155
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
156
- *
157
- * ---
158
- *
159
- * agen 事件提交
160
- */
161
- export const agentEventOptions = (options) => {
162
- return queryOptions({
163
- queryFn: async ({ queryKey, signal }) => {
164
- const { data } = await agentEvent({
165
- ...options,
166
- ...queryKey[0],
167
- signal,
168
- throwOnError: true,
169
- });
170
- return data;
171
- },
172
- queryKey: agentEventQueryKey(options),
173
- });
174
- };
175
118
  /**
176
119
  * agent 事件提交
177
120
  * #### Controller:
178
121
  *
179
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).event`
122
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).event`
180
123
  *
181
124
  * #### Middlewares:
182
125
  *
183
126
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
184
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
127
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
185
128
  *
186
129
  * ---
187
130
  *
@@ -189,10 +132,10 @@ export const agentEventOptions = (options) => {
189
132
  */
190
133
  export const agentEventMutation = (options) => {
191
134
  const mutationOptions = {
192
- mutationFn: async (localOptions) => {
135
+ mutationFn: async (fnOptions) => {
193
136
  const { data } = await agentEvent({
194
137
  ...options,
195
- ...localOptions,
138
+ ...fnOptions,
196
139
  throwOnError: true,
197
140
  });
198
141
  return data;
@@ -205,12 +148,12 @@ export const agentScheduleQueryKey = (options) => createQueryKey("agentSchedule"
205
148
  * agent 事件提交
206
149
  * #### Controller:
207
150
  *
208
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).listAgentSchedule`
151
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).listAgentSchedule`
209
152
  *
210
153
  * #### Middlewares:
211
154
  *
212
155
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
213
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
156
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
214
157
  *
215
158
  * ---
216
159
  *
@@ -234,12 +177,12 @@ export const agentScheduleOptions = (options) => {
234
177
  * Delete agent
235
178
  * #### Controller:
236
179
  *
237
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).deleteAgent`
180
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).deleteAgent`
238
181
  *
239
182
  * #### Middlewares:
240
183
  *
241
184
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
242
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
185
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
243
186
  *
244
187
  * ---
245
188
  *
@@ -247,10 +190,10 @@ export const agentScheduleOptions = (options) => {
247
190
  */
248
191
  export const agentDeleteMutation = (options) => {
249
192
  const mutationOptions = {
250
- mutationFn: async (localOptions) => {
193
+ mutationFn: async (fnOptions) => {
251
194
  const { data } = await agentDelete({
252
195
  ...options,
253
- ...localOptions,
196
+ ...fnOptions,
254
197
  throwOnError: true,
255
198
  });
256
199
  return data;
@@ -263,12 +206,12 @@ export const agentGetQueryKey = (options) => createQueryKey("agentGet", options)
263
206
  * Get agent
264
207
  * #### Controller:
265
208
  *
266
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).getAgent`
209
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).getAgent`
267
210
  *
268
211
  * #### Middlewares:
269
212
  *
270
213
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
271
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
214
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
272
215
  *
273
216
  * ---
274
217
  *
@@ -292,12 +235,12 @@ export const agentGetOptions = (options) => {
292
235
  * Update agent
293
236
  * #### Controller:
294
237
  *
295
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).updateAgent`
238
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).updateAgent`
296
239
  *
297
240
  * #### Middlewares:
298
241
  *
299
242
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
300
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
243
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
301
244
  *
302
245
  * ---
303
246
  *
@@ -305,10 +248,10 @@ export const agentGetOptions = (options) => {
305
248
  */
306
249
  export const agentUpdateMutation = (options) => {
307
250
  const mutationOptions = {
308
- mutationFn: async (localOptions) => {
251
+ mutationFn: async (fnOptions) => {
309
252
  const { data } = await agentUpdate({
310
253
  ...options,
311
- ...localOptions,
254
+ ...fnOptions,
312
255
  throwOnError: true,
313
256
  });
314
257
  return data;
@@ -321,12 +264,12 @@ export const langchatChatbotsListQueryKey = (options) => createQueryKey("langcha
321
264
  * List chatbots
322
265
  * #### Controller:
323
266
  *
324
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).listChatbots`
267
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).listChatbots`
325
268
  *
326
269
  * #### Middlewares:
327
270
  *
328
271
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
329
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
272
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
330
273
  *
331
274
  * ---
332
275
  *
@@ -346,46 +289,16 @@ export const langchatChatbotsListOptions = (options) => {
346
289
  queryKey: langchatChatbotsListQueryKey(options),
347
290
  });
348
291
  };
349
- export const langchatChatbotsUpsertQueryKey = (options) => createQueryKey("langchatChatbotsUpsert", options);
350
- /**
351
- * Create or update chatbot
352
- * #### Controller:
353
- *
354
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).upsertChatbot`
355
- *
356
- * #### Middlewares:
357
- *
358
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
359
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
360
- *
361
- * ---
362
- *
363
- * Create a new chatbot or update an existing one
364
- */
365
- export const langchatChatbotsUpsertOptions = (options) => {
366
- return queryOptions({
367
- queryFn: async ({ queryKey, signal }) => {
368
- const { data } = await langchatChatbotsUpsert({
369
- ...options,
370
- ...queryKey[0],
371
- signal,
372
- throwOnError: true,
373
- });
374
- return data;
375
- },
376
- queryKey: langchatChatbotsUpsertQueryKey(options),
377
- });
378
- };
379
292
  /**
380
293
  * Create or update chatbot
381
294
  * #### Controller:
382
295
  *
383
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).upsertChatbot`
296
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).upsertChatbot`
384
297
  *
385
298
  * #### Middlewares:
386
299
  *
387
300
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
388
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
301
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
389
302
  *
390
303
  * ---
391
304
  *
@@ -393,10 +306,10 @@ export const langchatChatbotsUpsertOptions = (options) => {
393
306
  */
394
307
  export const langchatChatbotsUpsertMutation = (options) => {
395
308
  const mutationOptions = {
396
- mutationFn: async (localOptions) => {
309
+ mutationFn: async (fnOptions) => {
397
310
  const { data } = await langchatChatbotsUpsert({
398
311
  ...options,
399
- ...localOptions,
312
+ ...fnOptions,
400
313
  throwOnError: true,
401
314
  });
402
315
  return data;
@@ -404,46 +317,16 @@ export const langchatChatbotsUpsertMutation = (options) => {
404
317
  };
405
318
  return mutationOptions;
406
319
  };
407
- export const langchatChatbotsLoginQueryKey = (options) => createQueryKey("langchatChatbotsLogin", options);
408
- /**
409
- * Login chatbot
410
- * #### Controller:
411
- *
412
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).loginChatbot`
413
- *
414
- * #### Middlewares:
415
- *
416
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
417
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
418
- *
419
- * ---
420
- *
421
- * Trigger the chatbot login workflow
422
- */
423
- export const langchatChatbotsLoginOptions = (options) => {
424
- return queryOptions({
425
- queryFn: async ({ queryKey, signal }) => {
426
- const { data } = await langchatChatbotsLogin({
427
- ...options,
428
- ...queryKey[0],
429
- signal,
430
- throwOnError: true,
431
- });
432
- return data;
433
- },
434
- queryKey: langchatChatbotsLoginQueryKey(options),
435
- });
436
- };
437
320
  /**
438
321
  * Login chatbot
439
322
  * #### Controller:
440
323
  *
441
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).loginChatbot`
324
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).loginChatbot`
442
325
  *
443
326
  * #### Middlewares:
444
327
  *
445
328
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
446
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
329
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
447
330
  *
448
331
  * ---
449
332
  *
@@ -451,10 +334,10 @@ export const langchatChatbotsLoginOptions = (options) => {
451
334
  */
452
335
  export const langchatChatbotsLoginMutation = (options) => {
453
336
  const mutationOptions = {
454
- mutationFn: async (localOptions) => {
337
+ mutationFn: async (fnOptions) => {
455
338
  const { data } = await langchatChatbotsLogin({
456
339
  ...options,
457
- ...localOptions,
340
+ ...fnOptions,
458
341
  throwOnError: true,
459
342
  });
460
343
  return data;
@@ -462,46 +345,16 @@ export const langchatChatbotsLoginMutation = (options) => {
462
345
  };
463
346
  return mutationOptions;
464
347
  };
465
- export const langchatChatbotsRunQueryKey = (options) => createQueryKey("langchatChatbotsRun", options);
466
348
  /**
467
349
  * Run chatbot
468
350
  * #### Controller:
469
351
  *
470
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).runChatbot`
352
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).runChatbot`
471
353
  *
472
354
  * #### Middlewares:
473
355
  *
474
356
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
475
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
476
- *
477
- * ---
478
- *
479
- * Trigger the chatbot startup workflow
480
- */
481
- export const langchatChatbotsRunOptions = (options) => {
482
- return queryOptions({
483
- queryFn: async ({ queryKey, signal }) => {
484
- const { data } = await langchatChatbotsRun({
485
- ...options,
486
- ...queryKey[0],
487
- signal,
488
- throwOnError: true,
489
- });
490
- return data;
491
- },
492
- queryKey: langchatChatbotsRunQueryKey(options),
493
- });
494
- };
495
- /**
496
- * Run chatbot
497
- * #### Controller:
498
- *
499
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).runChatbot`
500
- *
501
- * #### Middlewares:
502
- *
503
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
504
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
357
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
505
358
  *
506
359
  * ---
507
360
  *
@@ -509,10 +362,10 @@ export const langchatChatbotsRunOptions = (options) => {
509
362
  */
510
363
  export const langchatChatbotsRunMutation = (options) => {
511
364
  const mutationOptions = {
512
- mutationFn: async (localOptions) => {
365
+ mutationFn: async (fnOptions) => {
513
366
  const { data } = await langchatChatbotsRun({
514
367
  ...options,
515
- ...localOptions,
368
+ ...fnOptions,
516
369
  throwOnError: true,
517
370
  });
518
371
  return data;
@@ -524,12 +377,12 @@ export const langchatChatbotsRunMutation = (options) => {
524
377
  * Delete chatbot
525
378
  * #### Controller:
526
379
  *
527
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).deleteChatbot`
380
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).deleteChatbot`
528
381
  *
529
382
  * #### Middlewares:
530
383
  *
531
384
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
532
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
385
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
533
386
  *
534
387
  * ---
535
388
  *
@@ -537,10 +390,10 @@ export const langchatChatbotsRunMutation = (options) => {
537
390
  */
538
391
  export const langchatChatbotsDeleteMutation = (options) => {
539
392
  const mutationOptions = {
540
- mutationFn: async (localOptions) => {
393
+ mutationFn: async (fnOptions) => {
541
394
  const { data } = await langchatChatbotsDelete({
542
395
  ...options,
543
- ...localOptions,
396
+ ...fnOptions,
544
397
  throwOnError: true,
545
398
  });
546
399
  return data;
@@ -553,12 +406,12 @@ export const langchatChatbotsGetQueryKey = (options) => createQueryKey("langchat
553
406
  * Get chatbot
554
407
  * #### Controller:
555
408
  *
556
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).getChatbot`
409
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).getChatbot`
557
410
  *
558
411
  * #### Middlewares:
559
412
  *
560
413
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
561
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
414
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
562
415
  *
563
416
  * ---
564
417
  *
@@ -582,12 +435,12 @@ export const langchatChatbotsGetOptions = (options) => {
582
435
  * Update chatbot
583
436
  * #### Controller:
584
437
  *
585
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).upsertChatbotByPath`
438
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).upsertChatbotByPath`
586
439
  *
587
440
  * #### Middlewares:
588
441
  *
589
442
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
590
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
443
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
591
444
  *
592
445
  * ---
593
446
  *
@@ -595,10 +448,10 @@ export const langchatChatbotsGetOptions = (options) => {
595
448
  */
596
449
  export const langchatChatbotsUpdateMutation = (options) => {
597
450
  const mutationOptions = {
598
- mutationFn: async (localOptions) => {
451
+ mutationFn: async (fnOptions) => {
599
452
  const { data } = await langchatChatbotsUpdate({
600
453
  ...options,
601
- ...localOptions,
454
+ ...fnOptions,
602
455
  throwOnError: true,
603
456
  });
604
457
  return data;
@@ -611,12 +464,12 @@ export const langchatPlatformTypesQueryKey = (options) => createQueryKey("langch
611
464
  * List platform types
612
465
  * #### Controller:
613
466
  *
614
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).listPlatformTypes`
467
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/langchat.(*LangchatService).listPlatformTypes`
615
468
  *
616
469
  * #### Middlewares:
617
470
  *
618
471
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
619
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
472
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
620
473
  *
621
474
  * ---
622
475
  *
@@ -636,46 +489,16 @@ export const langchatPlatformTypesOptions = (options) => {
636
489
  queryKey: langchatPlatformTypesQueryKey(options),
637
490
  });
638
491
  };
639
- export const napcatStartQueryKey = (options) => createQueryKey("napcatStart", options);
640
- /**
641
- * Start napcat service
642
- * #### Controller:
643
- *
644
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).StartNapcat`
645
- *
646
- * #### Middlewares:
647
- *
648
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
649
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
650
- *
651
- * ---
652
- *
653
- * Start napcat service with specified configuration
654
- */
655
- export const napcatStartOptions = (options) => {
656
- return queryOptions({
657
- queryFn: async ({ queryKey, signal }) => {
658
- const { data } = await napcatStart({
659
- ...options,
660
- ...queryKey[0],
661
- signal,
662
- throwOnError: true,
663
- });
664
- return data;
665
- },
666
- queryKey: napcatStartQueryKey(options),
667
- });
668
- };
669
492
  /**
670
493
  * Start napcat service
671
494
  * #### Controller:
672
495
  *
673
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).StartNapcat`
496
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).StartNapcat`
674
497
  *
675
498
  * #### Middlewares:
676
499
  *
677
500
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
678
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
501
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
679
502
  *
680
503
  * ---
681
504
  *
@@ -683,10 +506,10 @@ export const napcatStartOptions = (options) => {
683
506
  */
684
507
  export const napcatStartMutation = (options) => {
685
508
  const mutationOptions = {
686
- mutationFn: async (localOptions) => {
509
+ mutationFn: async (fnOptions) => {
687
510
  const { data } = await napcatStart({
688
511
  ...options,
689
- ...localOptions,
512
+ ...fnOptions,
690
513
  throwOnError: true,
691
514
  });
692
515
  return data;
@@ -699,12 +522,12 @@ export const napcatGetStatusQueryKey = (options) => createQueryKey("napcatGetSta
699
522
  * Get napcat status
700
523
  * #### Controller:
701
524
  *
702
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).GetStatus`
525
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).GetStatus`
703
526
  *
704
527
  * #### Middlewares:
705
528
  *
706
529
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
707
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
530
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
708
531
  *
709
532
  * ---
710
533
  *
@@ -729,12 +552,12 @@ export const napcatProxyOneBot11GetQueryKey = (options) => createQueryKey("napca
729
552
  * Proxy OneBot11 API GET requests
730
553
  * #### Controller:
731
554
  *
732
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
555
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
733
556
  *
734
557
  * #### Middlewares:
735
558
  *
736
559
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
737
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
560
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
738
561
  *
739
562
  * ---
740
563
  *
@@ -754,46 +577,16 @@ export const napcatProxyOneBot11GetOptions = (options) => {
754
577
  queryKey: napcatProxyOneBot11GetQueryKey(options),
755
578
  });
756
579
  };
757
- export const napcatProxyOneBot11PostQueryKey = (options) => createQueryKey("napcatProxyOneBot11Post", options);
758
580
  /**
759
581
  * Proxy OneBot11 API POST requests
760
582
  * #### Controller:
761
583
  *
762
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
584
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
763
585
  *
764
586
  * #### Middlewares:
765
587
  *
766
588
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
767
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
768
- *
769
- * ---
770
- *
771
- * Proxy all OneBot11 API POST requests to napcat HTTP server
772
- */
773
- export const napcatProxyOneBot11PostOptions = (options) => {
774
- return queryOptions({
775
- queryFn: async ({ queryKey, signal }) => {
776
- const { data } = await napcatProxyOneBot11Post({
777
- ...options,
778
- ...queryKey[0],
779
- signal,
780
- throwOnError: true,
781
- });
782
- return data;
783
- },
784
- queryKey: napcatProxyOneBot11PostQueryKey(options),
785
- });
786
- };
787
- /**
788
- * Proxy OneBot11 API POST requests
789
- * #### Controller:
790
- *
791
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
792
- *
793
- * #### Middlewares:
794
- *
795
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
796
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
589
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
797
590
  *
798
591
  * ---
799
592
  *
@@ -801,10 +594,10 @@ export const napcatProxyOneBot11PostOptions = (options) => {
801
594
  */
802
595
  export const napcatProxyOneBot11PostMutation = (options) => {
803
596
  const mutationOptions = {
804
- mutationFn: async (localOptions) => {
597
+ mutationFn: async (fnOptions) => {
805
598
  const { data } = await napcatProxyOneBot11Post({
806
599
  ...options,
807
- ...localOptions,
600
+ ...fnOptions,
808
601
  throwOnError: true,
809
602
  });
810
603
  return data;
@@ -817,12 +610,12 @@ export const langchatChatbotsMessagesListQueryKey = (options) => createQueryKey(
817
610
  * List OneBot11 messages
818
611
  * #### Controller:
819
612
  *
820
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListMessages`
613
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).ListMessages`
821
614
  *
822
615
  * #### Middlewares:
823
616
  *
824
617
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
825
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
618
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
826
619
  *
827
620
  * ---
828
621
  *
@@ -877,12 +670,12 @@ export const langchatChatbotsMessagesListInfiniteQueryKey = (options) => createQ
877
670
  * List OneBot11 messages
878
671
  * #### Controller:
879
672
  *
880
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListMessages`
673
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).ListMessages`
881
674
  *
882
675
  * #### Middlewares:
883
676
  *
884
677
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
885
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
678
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
886
679
  *
887
680
  * ---
888
681
  *
@@ -918,12 +711,12 @@ export const langchatChatbotsMessagesGetQueryKey = (options) => createQueryKey("
918
711
  * Get OneBot11 message
919
712
  * #### Controller:
920
713
  *
921
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).GetMessage`
714
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).GetMessage`
922
715
  *
923
716
  * #### Middlewares:
924
717
  *
925
718
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
926
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
719
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
927
720
  *
928
721
  * ---
929
722
  *
@@ -948,12 +741,12 @@ export const langchatChatbotsSessionsListQueryKey = (options) => createQueryKey(
948
741
  * List OneBot11 sessions
949
742
  * #### Controller:
950
743
  *
951
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListSessions`
744
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).ListSessions`
952
745
  *
953
746
  * #### Middlewares:
954
747
  *
955
748
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
956
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
749
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
957
750
  *
958
751
  * ---
959
752
  *
@@ -978,12 +771,12 @@ export const langchatChatbotsSessionsListInfiniteQueryKey = (options) => createQ
978
771
  * List OneBot11 sessions
979
772
  * #### Controller:
980
773
  *
981
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListSessions`
774
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/onebot11.(*OneBot11Service).ListSessions`
982
775
  *
983
776
  * #### Middlewares:
984
777
  *
985
778
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
986
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
779
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
987
780
  *
988
781
  * ---
989
782
  *
@@ -1019,12 +812,12 @@ export const pAccountListQueryKey = (options) => createQueryKey("pAccountList",
1019
812
  * List platform accounts
1020
813
  * #### Controller:
1021
814
  *
1022
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listPAccounts`
815
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).listPAccounts`
1023
816
  *
1024
817
  * #### Middlewares:
1025
818
  *
1026
819
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1027
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
820
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1028
821
  *
1029
822
  * ---
1030
823
  *
@@ -1044,46 +837,16 @@ export const pAccountListOptions = (options) => {
1044
837
  queryKey: pAccountListQueryKey(options),
1045
838
  });
1046
839
  };
1047
- export const pAccountCreateQueryKey = (options) => createQueryKey("pAccountCreate", options);
1048
840
  /**
1049
841
  * Create platform account
1050
842
  * #### Controller:
1051
843
  *
1052
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createPAccount`
844
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).createPAccount`
1053
845
  *
1054
846
  * #### Middlewares:
1055
847
  *
1056
848
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1057
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1058
- *
1059
- * ---
1060
- *
1061
- * Create a new platform account
1062
- */
1063
- export const pAccountCreateOptions = (options) => {
1064
- return queryOptions({
1065
- queryFn: async ({ queryKey, signal }) => {
1066
- const { data } = await pAccountCreate({
1067
- ...options,
1068
- ...queryKey[0],
1069
- signal,
1070
- throwOnError: true,
1071
- });
1072
- return data;
1073
- },
1074
- queryKey: pAccountCreateQueryKey(options),
1075
- });
1076
- };
1077
- /**
1078
- * Create platform account
1079
- * #### Controller:
1080
- *
1081
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createPAccount`
1082
- *
1083
- * #### Middlewares:
1084
- *
1085
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1086
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
849
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1087
850
  *
1088
851
  * ---
1089
852
  *
@@ -1091,10 +854,10 @@ export const pAccountCreateOptions = (options) => {
1091
854
  */
1092
855
  export const pAccountCreateMutation = (options) => {
1093
856
  const mutationOptions = {
1094
- mutationFn: async (localOptions) => {
857
+ mutationFn: async (fnOptions) => {
1095
858
  const { data } = await pAccountCreate({
1096
859
  ...options,
1097
- ...localOptions,
860
+ ...fnOptions,
1098
861
  throwOnError: true,
1099
862
  });
1100
863
  return data;
@@ -1107,12 +870,12 @@ export const pAccountExportQueryKey = (options) => createQueryKey("pAccountExpor
1107
870
  * Export platform accounts
1108
871
  * #### Controller:
1109
872
  *
1110
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).exportPAccounts`
873
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).exportPAccounts`
1111
874
  *
1112
875
  * #### Middlewares:
1113
876
  *
1114
877
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1115
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
878
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1116
879
  *
1117
880
  * ---
1118
881
  *
@@ -1132,46 +895,16 @@ export const pAccountExportOptions = (options) => {
1132
895
  queryKey: pAccountExportQueryKey(options),
1133
896
  });
1134
897
  };
1135
- export const pAccountImportQueryKey = (options) => createQueryKey("pAccountImport", options);
1136
898
  /**
1137
899
  * Import platform accounts
1138
900
  * #### Controller:
1139
901
  *
1140
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).importPAccounts`
902
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).importPAccounts`
1141
903
  *
1142
904
  * #### Middlewares:
1143
905
  *
1144
906
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1145
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1146
- *
1147
- * ---
1148
- *
1149
- * Import platform accounts data
1150
- */
1151
- export const pAccountImportOptions = (options) => {
1152
- return queryOptions({
1153
- queryFn: async ({ queryKey, signal }) => {
1154
- const { data } = await pAccountImport({
1155
- ...options,
1156
- ...queryKey[0],
1157
- signal,
1158
- throwOnError: true,
1159
- });
1160
- return data;
1161
- },
1162
- queryKey: pAccountImportQueryKey(options),
1163
- });
1164
- };
1165
- /**
1166
- * Import platform accounts
1167
- * #### Controller:
1168
- *
1169
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).importPAccounts`
1170
- *
1171
- * #### Middlewares:
1172
- *
1173
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1174
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
907
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1175
908
  *
1176
909
  * ---
1177
910
  *
@@ -1179,10 +912,10 @@ export const pAccountImportOptions = (options) => {
1179
912
  */
1180
913
  export const pAccountImportMutation = (options) => {
1181
914
  const mutationOptions = {
1182
- mutationFn: async (localOptions) => {
915
+ mutationFn: async (fnOptions) => {
1183
916
  const { data } = await pAccountImport({
1184
917
  ...options,
1185
- ...localOptions,
918
+ ...fnOptions,
1186
919
  throwOnError: true,
1187
920
  });
1188
921
  return data;
@@ -1194,12 +927,12 @@ export const pAccountImportMutation = (options) => {
1194
927
  * Delete platform account
1195
928
  * #### Controller:
1196
929
  *
1197
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).deletePAccount`
930
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).deletePAccount`
1198
931
  *
1199
932
  * #### Middlewares:
1200
933
  *
1201
934
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1202
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
935
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1203
936
  *
1204
937
  * ---
1205
938
  *
@@ -1207,10 +940,10 @@ export const pAccountImportMutation = (options) => {
1207
940
  */
1208
941
  export const pAccountDeleteMutation = (options) => {
1209
942
  const mutationOptions = {
1210
- mutationFn: async (localOptions) => {
943
+ mutationFn: async (fnOptions) => {
1211
944
  const { data } = await pAccountDelete({
1212
945
  ...options,
1213
- ...localOptions,
946
+ ...fnOptions,
1214
947
  throwOnError: true,
1215
948
  });
1216
949
  return data;
@@ -1223,12 +956,12 @@ export const pAccountGetQueryKey = (options) => createQueryKey("pAccountGet", op
1223
956
  * Get platform account
1224
957
  * #### Controller:
1225
958
  *
1226
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).getPAccount`
959
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).getPAccount`
1227
960
  *
1228
961
  * #### Middlewares:
1229
962
  *
1230
963
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1231
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
964
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1232
965
  *
1233
966
  * ---
1234
967
  *
@@ -1252,12 +985,12 @@ export const pAccountGetOptions = (options) => {
1252
985
  * Update platform account
1253
986
  * #### Controller:
1254
987
  *
1255
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).updatePAccount`
988
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).updatePAccount`
1256
989
  *
1257
990
  * #### Middlewares:
1258
991
  *
1259
992
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1260
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
993
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1261
994
  *
1262
995
  * ---
1263
996
  *
@@ -1265,10 +998,10 @@ export const pAccountGetOptions = (options) => {
1265
998
  */
1266
999
  export const pAccountUpdateMutation = (options) => {
1267
1000
  const mutationOptions = {
1268
- mutationFn: async (localOptions) => {
1001
+ mutationFn: async (fnOptions) => {
1269
1002
  const { data } = await pAccountUpdate({
1270
1003
  ...options,
1271
- ...localOptions,
1004
+ ...fnOptions,
1272
1005
  throwOnError: true,
1273
1006
  });
1274
1007
  return data;
@@ -1281,12 +1014,12 @@ export const pAccountListBrowserConfigsQueryKey = (options) => createQueryKey("p
1281
1014
  * List browser configs
1282
1015
  * #### Controller:
1283
1016
  *
1284
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listBrowserConfigs`
1017
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).listBrowserConfigs`
1285
1018
  *
1286
1019
  * #### Middlewares:
1287
1020
  *
1288
1021
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1289
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1022
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1290
1023
  *
1291
1024
  * ---
1292
1025
  *
@@ -1306,46 +1039,16 @@ export const pAccountListBrowserConfigsOptions = (options) => {
1306
1039
  queryKey: pAccountListBrowserConfigsQueryKey(options),
1307
1040
  });
1308
1041
  };
1309
- export const pAccountCreateBrowserConfigQueryKey = (options) => createQueryKey("pAccountCreateBrowserConfig", options);
1310
- /**
1311
- * Create browser config
1312
- * #### Controller:
1313
- *
1314
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createBrowserConfig`
1315
- *
1316
- * #### Middlewares:
1317
- *
1318
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1319
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1320
- *
1321
- * ---
1322
- *
1323
- * Create browser configuration for platform account
1324
- */
1325
- export const pAccountCreateBrowserConfigOptions = (options) => {
1326
- return queryOptions({
1327
- queryFn: async ({ queryKey, signal }) => {
1328
- const { data } = await pAccountCreateBrowserConfig({
1329
- ...options,
1330
- ...queryKey[0],
1331
- signal,
1332
- throwOnError: true,
1333
- });
1334
- return data;
1335
- },
1336
- queryKey: pAccountCreateBrowserConfigQueryKey(options),
1337
- });
1338
- };
1339
1042
  /**
1340
1043
  * Create browser config
1341
1044
  * #### Controller:
1342
1045
  *
1343
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createBrowserConfig`
1046
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).createBrowserConfig`
1344
1047
  *
1345
1048
  * #### Middlewares:
1346
1049
  *
1347
1050
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1348
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1051
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1349
1052
  *
1350
1053
  * ---
1351
1054
  *
@@ -1353,10 +1056,10 @@ export const pAccountCreateBrowserConfigOptions = (options) => {
1353
1056
  */
1354
1057
  export const pAccountCreateBrowserConfigMutation = (options) => {
1355
1058
  const mutationOptions = {
1356
- mutationFn: async (localOptions) => {
1059
+ mutationFn: async (fnOptions) => {
1357
1060
  const { data } = await pAccountCreateBrowserConfig({
1358
1061
  ...options,
1359
- ...localOptions,
1062
+ ...fnOptions,
1360
1063
  throwOnError: true,
1361
1064
  });
1362
1065
  return data;
@@ -1364,46 +1067,16 @@ export const pAccountCreateBrowserConfigMutation = (options) => {
1364
1067
  };
1365
1068
  return mutationOptions;
1366
1069
  };
1367
- export const pAccountLaunchBrowserQueryKey = (options) => createQueryKey("pAccountLaunchBrowser", options);
1368
- /**
1369
- * Launch browser for account
1370
- * #### Controller:
1371
- *
1372
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).launchBrowser`
1373
- *
1374
- * #### Middlewares:
1375
- *
1376
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1377
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1378
- *
1379
- * ---
1380
- *
1381
- * Launch browser session for platform account
1382
- */
1383
- export const pAccountLaunchBrowserOptions = (options) => {
1384
- return queryOptions({
1385
- queryFn: async ({ queryKey, signal }) => {
1386
- const { data } = await pAccountLaunchBrowser({
1387
- ...options,
1388
- ...queryKey[0],
1389
- signal,
1390
- throwOnError: true,
1391
- });
1392
- return data;
1393
- },
1394
- queryKey: pAccountLaunchBrowserQueryKey(options),
1395
- });
1396
- };
1397
1070
  /**
1398
1071
  * Launch browser for account
1399
1072
  * #### Controller:
1400
1073
  *
1401
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).launchBrowser`
1074
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).launchBrowser`
1402
1075
  *
1403
1076
  * #### Middlewares:
1404
1077
  *
1405
1078
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1406
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1079
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1407
1080
  *
1408
1081
  * ---
1409
1082
  *
@@ -1411,10 +1084,10 @@ export const pAccountLaunchBrowserOptions = (options) => {
1411
1084
  */
1412
1085
  export const pAccountLaunchBrowserMutation = (options) => {
1413
1086
  const mutationOptions = {
1414
- mutationFn: async (localOptions) => {
1087
+ mutationFn: async (fnOptions) => {
1415
1088
  const { data } = await pAccountLaunchBrowser({
1416
1089
  ...options,
1417
- ...localOptions,
1090
+ ...fnOptions,
1418
1091
  throwOnError: true,
1419
1092
  });
1420
1093
  return data;
@@ -1427,12 +1100,12 @@ export const pAccountListSessionsQueryKey = (options) => createQueryKey("pAccoun
1427
1100
  * List sessions
1428
1101
  * #### Controller:
1429
1102
  *
1430
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listSessions`
1103
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).listSessions`
1431
1104
  *
1432
1105
  * #### Middlewares:
1433
1106
  *
1434
1107
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1435
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1108
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1436
1109
  *
1437
1110
  * ---
1438
1111
  *
@@ -1452,46 +1125,16 @@ export const pAccountListSessionsOptions = (options) => {
1452
1125
  queryKey: pAccountListSessionsQueryKey(options),
1453
1126
  });
1454
1127
  };
1455
- export const pAccountCreateSessionQueryKey = (options) => createQueryKey("pAccountCreateSession", options);
1456
- /**
1457
- * Create session
1458
- * #### Controller:
1459
- *
1460
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createSession`
1461
- *
1462
- * #### Middlewares:
1463
- *
1464
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1465
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1466
- *
1467
- * ---
1468
- *
1469
- * Create session for platform account
1470
- */
1471
- export const pAccountCreateSessionOptions = (options) => {
1472
- return queryOptions({
1473
- queryFn: async ({ queryKey, signal }) => {
1474
- const { data } = await pAccountCreateSession({
1475
- ...options,
1476
- ...queryKey[0],
1477
- signal,
1478
- throwOnError: true,
1479
- });
1480
- return data;
1481
- },
1482
- queryKey: pAccountCreateSessionQueryKey(options),
1483
- });
1484
- };
1485
1128
  /**
1486
1129
  * Create session
1487
1130
  * #### Controller:
1488
1131
  *
1489
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createSession`
1132
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).createSession`
1490
1133
  *
1491
1134
  * #### Middlewares:
1492
1135
  *
1493
1136
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1494
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1137
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1495
1138
  *
1496
1139
  * ---
1497
1140
  *
@@ -1499,10 +1142,10 @@ export const pAccountCreateSessionOptions = (options) => {
1499
1142
  */
1500
1143
  export const pAccountCreateSessionMutation = (options) => {
1501
1144
  const mutationOptions = {
1502
- mutationFn: async (localOptions) => {
1145
+ mutationFn: async (fnOptions) => {
1503
1146
  const { data } = await pAccountCreateSession({
1504
1147
  ...options,
1505
- ...localOptions,
1148
+ ...fnOptions,
1506
1149
  throwOnError: true,
1507
1150
  });
1508
1151
  return data;
@@ -1514,12 +1157,12 @@ export const pAccountCreateSessionMutation = (options) => {
1514
1157
  * Delete session
1515
1158
  * #### Controller:
1516
1159
  *
1517
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).deleteSession`
1160
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).deleteSession`
1518
1161
  *
1519
1162
  * #### Middlewares:
1520
1163
  *
1521
1164
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1522
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1165
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1523
1166
  *
1524
1167
  * ---
1525
1168
  *
@@ -1527,10 +1170,10 @@ export const pAccountCreateSessionMutation = (options) => {
1527
1170
  */
1528
1171
  export const pAccountDeleteSessionMutation = (options) => {
1529
1172
  const mutationOptions = {
1530
- mutationFn: async (localOptions) => {
1173
+ mutationFn: async (fnOptions) => {
1531
1174
  const { data } = await pAccountDeleteSession({
1532
1175
  ...options,
1533
- ...localOptions,
1176
+ ...fnOptions,
1534
1177
  throwOnError: true,
1535
1178
  });
1536
1179
  return data;
@@ -1543,12 +1186,12 @@ export const pAccountGetSessionQueryKey = (options) => createQueryKey("pAccountG
1543
1186
  * Get session
1544
1187
  * #### Controller:
1545
1188
  *
1546
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).getSession`
1189
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).getSession`
1547
1190
  *
1548
1191
  * #### Middlewares:
1549
1192
  *
1550
1193
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1551
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1194
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1552
1195
  *
1553
1196
  * ---
1554
1197
  *
@@ -1572,12 +1215,12 @@ export const pAccountGetSessionOptions = (options) => {
1572
1215
  * Update session
1573
1216
  * #### Controller:
1574
1217
  *
1575
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).updateSession`
1218
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/paccount.(*PAccountService).updateSession`
1576
1219
  *
1577
1220
  * #### Middlewares:
1578
1221
  *
1579
1222
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1580
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1223
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1581
1224
  *
1582
1225
  * ---
1583
1226
  *
@@ -1585,10 +1228,10 @@ export const pAccountGetSessionOptions = (options) => {
1585
1228
  */
1586
1229
  export const pAccountUpdateSessionMutation = (options) => {
1587
1230
  const mutationOptions = {
1588
- mutationFn: async (localOptions) => {
1231
+ mutationFn: async (fnOptions) => {
1589
1232
  const { data } = await pAccountUpdateSession({
1590
1233
  ...options,
1591
- ...localOptions,
1234
+ ...fnOptions,
1592
1235
  throwOnError: true,
1593
1236
  });
1594
1237
  return data;
@@ -1601,12 +1244,12 @@ export const platformListQueryKey = (options) => createQueryKey("platformList",
1601
1244
  * List platforms
1602
1245
  * #### Controller:
1603
1246
  *
1604
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).listPlatforms`
1247
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).listPlatforms`
1605
1248
  *
1606
1249
  * #### Middlewares:
1607
1250
  *
1608
1251
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1609
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1252
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1610
1253
  *
1611
1254
  * ---
1612
1255
  *
@@ -1626,46 +1269,16 @@ export const platformListOptions = (options) => {
1626
1269
  queryKey: platformListQueryKey(options),
1627
1270
  });
1628
1271
  };
1629
- export const platformCreateQueryKey = (options) => createQueryKey("platformCreate", options);
1630
- /**
1631
- * Create platform
1632
- * #### Controller:
1633
- *
1634
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).createPlatform`
1635
- *
1636
- * #### Middlewares:
1637
- *
1638
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1639
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1640
- *
1641
- * ---
1642
- *
1643
- * Create a new platform
1644
- */
1645
- export const platformCreateOptions = (options) => {
1646
- return queryOptions({
1647
- queryFn: async ({ queryKey, signal }) => {
1648
- const { data } = await platformCreate({
1649
- ...options,
1650
- ...queryKey[0],
1651
- signal,
1652
- throwOnError: true,
1653
- });
1654
- return data;
1655
- },
1656
- queryKey: platformCreateQueryKey(options),
1657
- });
1658
- };
1659
1272
  /**
1660
1273
  * Create platform
1661
1274
  * #### Controller:
1662
1275
  *
1663
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).createPlatform`
1276
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).createPlatform`
1664
1277
  *
1665
1278
  * #### Middlewares:
1666
1279
  *
1667
1280
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1668
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1281
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1669
1282
  *
1670
1283
  * ---
1671
1284
  *
@@ -1673,10 +1286,10 @@ export const platformCreateOptions = (options) => {
1673
1286
  */
1674
1287
  export const platformCreateMutation = (options) => {
1675
1288
  const mutationOptions = {
1676
- mutationFn: async (localOptions) => {
1289
+ mutationFn: async (fnOptions) => {
1677
1290
  const { data } = await platformCreate({
1678
1291
  ...options,
1679
- ...localOptions,
1292
+ ...fnOptions,
1680
1293
  throwOnError: true,
1681
1294
  });
1682
1295
  return data;
@@ -1689,12 +1302,12 @@ export const platformExportQueryKey = (options) => createQueryKey("platformExpor
1689
1302
  * Export platforms
1690
1303
  * #### Controller:
1691
1304
  *
1692
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).exportPlatforms`
1305
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).exportPlatforms`
1693
1306
  *
1694
1307
  * #### Middlewares:
1695
1308
  *
1696
1309
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1697
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1310
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1698
1311
  *
1699
1312
  * ---
1700
1313
  *
@@ -1714,46 +1327,16 @@ export const platformExportOptions = (options) => {
1714
1327
  queryKey: platformExportQueryKey(options),
1715
1328
  });
1716
1329
  };
1717
- export const platformImportQueryKey = (options) => createQueryKey("platformImport", options);
1718
1330
  /**
1719
1331
  * Import platforms
1720
1332
  * #### Controller:
1721
1333
  *
1722
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).importPlatforms`
1334
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).importPlatforms`
1723
1335
  *
1724
1336
  * #### Middlewares:
1725
1337
  *
1726
1338
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1727
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1728
- *
1729
- * ---
1730
- *
1731
- * Import platforms data
1732
- */
1733
- export const platformImportOptions = (options) => {
1734
- return queryOptions({
1735
- queryFn: async ({ queryKey, signal }) => {
1736
- const { data } = await platformImport({
1737
- ...options,
1738
- ...queryKey[0],
1739
- signal,
1740
- throwOnError: true,
1741
- });
1742
- return data;
1743
- },
1744
- queryKey: platformImportQueryKey(options),
1745
- });
1746
- };
1747
- /**
1748
- * Import platforms
1749
- * #### Controller:
1750
- *
1751
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).importPlatforms`
1752
- *
1753
- * #### Middlewares:
1754
- *
1755
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1756
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1339
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1757
1340
  *
1758
1341
  * ---
1759
1342
  *
@@ -1761,10 +1344,10 @@ export const platformImportOptions = (options) => {
1761
1344
  */
1762
1345
  export const platformImportMutation = (options) => {
1763
1346
  const mutationOptions = {
1764
- mutationFn: async (localOptions) => {
1347
+ mutationFn: async (fnOptions) => {
1765
1348
  const { data } = await platformImport({
1766
1349
  ...options,
1767
- ...localOptions,
1350
+ ...fnOptions,
1768
1351
  throwOnError: true,
1769
1352
  });
1770
1353
  return data;
@@ -1776,12 +1359,12 @@ export const platformImportMutation = (options) => {
1776
1359
  * Delete platform
1777
1360
  * #### Controller:
1778
1361
  *
1779
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).deletePlatform`
1362
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).deletePlatform`
1780
1363
  *
1781
1364
  * #### Middlewares:
1782
1365
  *
1783
1366
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1784
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1367
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1785
1368
  *
1786
1369
  * ---
1787
1370
  *
@@ -1789,10 +1372,10 @@ export const platformImportMutation = (options) => {
1789
1372
  */
1790
1373
  export const platformDeleteMutation = (options) => {
1791
1374
  const mutationOptions = {
1792
- mutationFn: async (localOptions) => {
1375
+ mutationFn: async (fnOptions) => {
1793
1376
  const { data } = await platformDelete({
1794
1377
  ...options,
1795
- ...localOptions,
1378
+ ...fnOptions,
1796
1379
  throwOnError: true,
1797
1380
  });
1798
1381
  return data;
@@ -1805,12 +1388,12 @@ export const platformGetQueryKey = (options) => createQueryKey("platformGet", op
1805
1388
  * Get platform
1806
1389
  * #### Controller:
1807
1390
  *
1808
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).getPlatform`
1391
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).getPlatform`
1809
1392
  *
1810
1393
  * #### Middlewares:
1811
1394
  *
1812
1395
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1813
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1396
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1814
1397
  *
1815
1398
  * ---
1816
1399
  *
@@ -1834,12 +1417,12 @@ export const platformGetOptions = (options) => {
1834
1417
  * Update platform
1835
1418
  * #### Controller:
1836
1419
  *
1837
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).updatePlatform`
1420
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/platform.(*PlatformService).updatePlatform`
1838
1421
  *
1839
1422
  * #### Middlewares:
1840
1423
  *
1841
1424
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1842
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1425
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1843
1426
  *
1844
1427
  * ---
1845
1428
  *
@@ -1847,10 +1430,10 @@ export const platformGetOptions = (options) => {
1847
1430
  */
1848
1431
  export const platformUpdateMutation = (options) => {
1849
1432
  const mutationOptions = {
1850
- mutationFn: async (localOptions) => {
1433
+ mutationFn: async (fnOptions) => {
1851
1434
  const { data } = await platformUpdate({
1852
1435
  ...options,
1853
- ...localOptions,
1436
+ ...fnOptions,
1854
1437
  throwOnError: true,
1855
1438
  });
1856
1439
  return data;
@@ -1863,12 +1446,12 @@ export const proxyListQueryKey = (options) => createQueryKey("proxyList", option
1863
1446
  * List proxies
1864
1447
  * #### Controller:
1865
1448
  *
1866
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).ListProxies`
1449
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).ListProxies`
1867
1450
  *
1868
1451
  * #### Middlewares:
1869
1452
  *
1870
1453
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1871
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1454
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1872
1455
  *
1873
1456
  * ---
1874
1457
  *
@@ -1892,12 +1475,12 @@ export const proxyListOptions = (options) => {
1892
1475
  * Upsert proxy
1893
1476
  * #### Controller:
1894
1477
  *
1895
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).UpsertProxy`
1478
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).UpsertProxy`
1896
1479
  *
1897
1480
  * #### Middlewares:
1898
1481
  *
1899
1482
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1900
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1483
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1901
1484
  *
1902
1485
  * ---
1903
1486
  *
@@ -1905,10 +1488,10 @@ export const proxyListOptions = (options) => {
1905
1488
  */
1906
1489
  export const proxyUpsertMutation = (options) => {
1907
1490
  const mutationOptions = {
1908
- mutationFn: async (localOptions) => {
1491
+ mutationFn: async (fnOptions) => {
1909
1492
  const { data } = await proxyUpsert({
1910
1493
  ...options,
1911
- ...localOptions,
1494
+ ...fnOptions,
1912
1495
  throwOnError: true,
1913
1496
  });
1914
1497
  return data;
@@ -1920,12 +1503,12 @@ export const proxyUpsertMutation = (options) => {
1920
1503
  * Delete proxy
1921
1504
  * #### Controller:
1922
1505
  *
1923
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).DeleteProxy`
1506
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).DeleteProxy`
1924
1507
  *
1925
1508
  * #### Middlewares:
1926
1509
  *
1927
1510
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1928
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1511
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1929
1512
  *
1930
1513
  * ---
1931
1514
  *
@@ -1933,10 +1516,10 @@ export const proxyUpsertMutation = (options) => {
1933
1516
  */
1934
1517
  export const proxyDeleteMutation = (options) => {
1935
1518
  const mutationOptions = {
1936
- mutationFn: async (localOptions) => {
1519
+ mutationFn: async (fnOptions) => {
1937
1520
  const { data } = await proxyDelete({
1938
1521
  ...options,
1939
- ...localOptions,
1522
+ ...fnOptions,
1940
1523
  throwOnError: true,
1941
1524
  });
1942
1525
  return data;
@@ -1949,12 +1532,12 @@ export const proxyGetQueryKey = (options) => createQueryKey("proxyGet", options)
1949
1532
  * Get proxy
1950
1533
  * #### Controller:
1951
1534
  *
1952
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).GetProxy`
1535
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).GetProxy`
1953
1536
  *
1954
1537
  * #### Middlewares:
1955
1538
  *
1956
1539
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1957
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1540
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1958
1541
  *
1959
1542
  * ---
1960
1543
  *
@@ -1974,25 +1557,26 @@ export const proxyGetOptions = (options) => {
1974
1557
  queryKey: proxyGetQueryKey(options),
1975
1558
  });
1976
1559
  };
1977
- export const sandboxStartNapcatQueryKey = (options) => createQueryKey("sandboxStartNapcat", options);
1560
+ export const termsHealthCheckQueryKey = (options) => createQueryKey("termsHealthCheck", options);
1978
1561
  /**
1979
- * Start Napcat sandbox
1562
+ * Health check
1980
1563
  * #### Controller:
1981
1564
  *
1982
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).startNapcatSandbox`
1565
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).HealthCheckHandler`
1983
1566
  *
1984
1567
  * #### Middlewares:
1985
1568
  *
1986
1569
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1570
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
1987
1571
  *
1988
1572
  * ---
1989
1573
  *
1990
- * Start a Napcat sandbox instance
1574
+ * Check the health status of the terminal service
1991
1575
  */
1992
- export const sandboxStartNapcatOptions = (options) => {
1576
+ export const termsHealthCheckOptions = (options) => {
1993
1577
  return queryOptions({
1994
1578
  queryFn: async ({ queryKey, signal }) => {
1995
- const { data } = await sandboxStartNapcat({
1579
+ const { data } = await termsHealthCheck({
1996
1580
  ...options,
1997
1581
  ...queryKey[0],
1998
1582
  signal,
@@ -2000,55 +1584,29 @@ export const sandboxStartNapcatOptions = (options) => {
2000
1584
  });
2001
1585
  return data;
2002
1586
  },
2003
- queryKey: sandboxStartNapcatQueryKey(options),
1587
+ queryKey: termsHealthCheckQueryKey(options),
2004
1588
  });
2005
1589
  };
1590
+ export const termsListTerminalsQueryKey = (options) => createQueryKey("termsListTerminals", options);
2006
1591
  /**
2007
- * Start Napcat sandbox
1592
+ * List terminals
2008
1593
  * #### Controller:
2009
1594
  *
2010
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).startNapcatSandbox`
1595
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).ListTerminalsHandler`
2011
1596
  *
2012
1597
  * #### Middlewares:
2013
1598
  *
2014
1599
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1600
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2015
1601
  *
2016
1602
  * ---
2017
1603
  *
2018
- * Start a Napcat sandbox instance
1604
+ * List all terminal sessions
2019
1605
  */
2020
- export const sandboxStartNapcatMutation = (options) => {
2021
- const mutationOptions = {
2022
- mutationFn: async (localOptions) => {
2023
- const { data } = await sandboxStartNapcat({
2024
- ...options,
2025
- ...localOptions,
2026
- throwOnError: true,
2027
- });
2028
- return data;
2029
- },
2030
- };
2031
- return mutationOptions;
2032
- };
2033
- export const napcatCheckStatusQueryKey = (options) => createQueryKey("napcatCheckStatus", options);
2034
- /**
2035
- * Check sandbox status
2036
- * #### Controller:
2037
- *
2038
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).checkSandboxStatus`
2039
- *
2040
- * #### Middlewares:
2041
- *
2042
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2043
- *
2044
- * ---
2045
- *
2046
- * Check the status of specified sandbox instances
2047
- */
2048
- export const napcatCheckStatusOptions = (options) => {
1606
+ export const termsListTerminalsOptions = (options) => {
2049
1607
  return queryOptions({
2050
1608
  queryFn: async ({ queryKey, signal }) => {
2051
- const { data } = await napcatCheckStatus({
1609
+ const { data } = await termsListTerminals({
2052
1610
  ...options,
2053
1611
  ...queryKey[0],
2054
1612
  signal,
@@ -2056,29 +1614,30 @@ export const napcatCheckStatusOptions = (options) => {
2056
1614
  });
2057
1615
  return data;
2058
1616
  },
2059
- queryKey: napcatCheckStatusQueryKey(options),
1617
+ queryKey: termsListTerminalsQueryKey(options),
2060
1618
  });
2061
1619
  };
2062
1620
  /**
2063
- * Check sandbox status
1621
+ * Create terminal
2064
1622
  * #### Controller:
2065
1623
  *
2066
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).checkSandboxStatus`
1624
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).CreateTerminalHandler`
2067
1625
  *
2068
1626
  * #### Middlewares:
2069
1627
  *
2070
1628
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1629
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2071
1630
  *
2072
1631
  * ---
2073
1632
  *
2074
- * Check the status of specified sandbox instances
1633
+ * Create a new terminal session
2075
1634
  */
2076
- export const napcatCheckStatusMutation = (options) => {
1635
+ export const termsCreateTerminalMutation = (options) => {
2077
1636
  const mutationOptions = {
2078
- mutationFn: async (localOptions) => {
2079
- const { data } = await napcatCheckStatus({
1637
+ mutationFn: async (fnOptions) => {
1638
+ const { data } = await termsCreateTerminal({
2080
1639
  ...options,
2081
- ...localOptions,
1640
+ ...fnOptions,
2082
1641
  throwOnError: true,
2083
1642
  });
2084
1643
  return data;
@@ -2086,87 +1645,27 @@ export const napcatCheckStatusMutation = (options) => {
2086
1645
  };
2087
1646
  return mutationOptions;
2088
1647
  };
2089
- export const sbServiceListQueryKey = (options) => createQueryKey("sbServiceList", options);
2090
- /**
2091
- * List sandbox services
2092
- * #### Controller:
2093
- *
2094
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).listSbServices`
2095
- *
2096
- * #### Middlewares:
2097
- *
2098
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2099
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
2100
- *
2101
- * ---
2102
- *
2103
- * Get a paginated list of sandbox services for the current tenant
2104
- */
2105
- export const sbServiceListOptions = (options) => {
2106
- return queryOptions({
2107
- queryFn: async ({ queryKey, signal }) => {
2108
- const { data } = await sbServiceList({
2109
- ...options,
2110
- ...queryKey[0],
2111
- signal,
2112
- throwOnError: true,
2113
- });
2114
- return data;
2115
- },
2116
- queryKey: sbServiceListQueryKey(options),
2117
- });
2118
- };
2119
- export const sbServiceCreateQueryKey = (options) => createQueryKey("sbServiceCreate", options);
2120
1648
  /**
2121
- * Create sandbox service
1649
+ * Kill terminal
2122
1650
  * #### Controller:
2123
1651
  *
2124
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).createSbService`
1652
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).KillTerminalHandler`
2125
1653
  *
2126
1654
  * #### Middlewares:
2127
1655
  *
2128
1656
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2129
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1657
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2130
1658
  *
2131
1659
  * ---
2132
1660
  *
2133
- * Create a new sandbox service
1661
+ * Kill a terminal session
2134
1662
  */
2135
- export const sbServiceCreateOptions = (options) => {
2136
- return queryOptions({
2137
- queryFn: async ({ queryKey, signal }) => {
2138
- const { data } = await sbServiceCreate({
2139
- ...options,
2140
- ...queryKey[0],
2141
- signal,
2142
- throwOnError: true,
2143
- });
2144
- return data;
2145
- },
2146
- queryKey: sbServiceCreateQueryKey(options),
2147
- });
2148
- };
2149
- /**
2150
- * Create sandbox service
2151
- * #### Controller:
2152
- *
2153
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).createSbService`
2154
- *
2155
- * #### Middlewares:
2156
- *
2157
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2158
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
2159
- *
2160
- * ---
2161
- *
2162
- * Create a new sandbox service
2163
- */
2164
- export const sbServiceCreateMutation = (options) => {
1663
+ export const termsKillTerminalMutation = (options) => {
2165
1664
  const mutationOptions = {
2166
- mutationFn: async (localOptions) => {
2167
- const { data } = await sbServiceCreate({
1665
+ mutationFn: async (fnOptions) => {
1666
+ const { data } = await termsKillTerminal({
2168
1667
  ...options,
2169
- ...localOptions,
1668
+ ...fnOptions,
2170
1669
  throwOnError: true,
2171
1670
  });
2172
1671
  return data;
@@ -2174,57 +1673,27 @@ export const sbServiceCreateMutation = (options) => {
2174
1673
  };
2175
1674
  return mutationOptions;
2176
1675
  };
2177
- export const sbServiceGetServiceTypesQueryKey = (options) => createQueryKey("sbServiceGetServiceTypes", options);
2178
1676
  /**
2179
- * Get available service types
1677
+ * Send input to terminal
2180
1678
  * #### Controller:
2181
1679
  *
2182
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).getServiceTypes`
1680
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).SendInputHandler`
2183
1681
  *
2184
1682
  * #### Middlewares:
2185
1683
  *
2186
1684
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2187
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1685
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2188
1686
  *
2189
1687
  * ---
2190
1688
  *
2191
- * Get a list of available service types for sandbox services
1689
+ * Send input to a terminal session
2192
1690
  */
2193
- export const sbServiceGetServiceTypesOptions = (options) => {
2194
- return queryOptions({
2195
- queryFn: async ({ queryKey, signal }) => {
2196
- const { data } = await sbServiceGetServiceTypes({
2197
- ...options,
2198
- ...queryKey[0],
2199
- signal,
2200
- throwOnError: true,
2201
- });
2202
- return data;
2203
- },
2204
- queryKey: sbServiceGetServiceTypesQueryKey(options),
2205
- });
2206
- };
2207
- /**
2208
- * Delete sandbox service
2209
- * #### Controller:
2210
- *
2211
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).deleteSbService`
2212
- *
2213
- * #### Middlewares:
2214
- *
2215
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2216
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
2217
- *
2218
- * ---
2219
- *
2220
- * Delete a sandbox service
2221
- */
2222
- export const sbServiceDeleteMutation = (options) => {
1691
+ export const termsSendInputMutation = (options) => {
2223
1692
  const mutationOptions = {
2224
- mutationFn: async (localOptions) => {
2225
- const { data } = await sbServiceDelete({
1693
+ mutationFn: async (fnOptions) => {
1694
+ const { data } = await termsSendInput({
2226
1695
  ...options,
2227
- ...localOptions,
1696
+ ...fnOptions,
2228
1697
  throwOnError: true,
2229
1698
  });
2230
1699
  return data;
@@ -2232,26 +1701,26 @@ export const sbServiceDeleteMutation = (options) => {
2232
1701
  };
2233
1702
  return mutationOptions;
2234
1703
  };
2235
- export const sbServiceGetQueryKey = (options) => createQueryKey("sbServiceGet", options);
1704
+ export const termsReadOutputQueryKey = (options) => createQueryKey("termsReadOutput", options);
2236
1705
  /**
2237
- * Get sandbox service
1706
+ * Read terminal output
2238
1707
  * #### Controller:
2239
1708
  *
2240
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).getSbService`
1709
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).ReadOutputHandler`
2241
1710
  *
2242
1711
  * #### Middlewares:
2243
1712
  *
2244
1713
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2245
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1714
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2246
1715
  *
2247
1716
  * ---
2248
1717
  *
2249
- * Get a specific sandbox service by ID
1718
+ * Read output from a terminal session
2250
1719
  */
2251
- export const sbServiceGetOptions = (options) => {
1720
+ export const termsReadOutputOptions = (options) => {
2252
1721
  return queryOptions({
2253
1722
  queryFn: async ({ queryKey, signal }) => {
2254
- const { data } = await sbServiceGet({
1723
+ const { data } = await termsReadOutput({
2255
1724
  ...options,
2256
1725
  ...queryKey[0],
2257
1726
  signal,
@@ -2259,29 +1728,29 @@ export const sbServiceGetOptions = (options) => {
2259
1728
  });
2260
1729
  return data;
2261
1730
  },
2262
- queryKey: sbServiceGetQueryKey(options),
1731
+ queryKey: termsReadOutputQueryKey(options),
2263
1732
  });
2264
1733
  };
2265
- export const sessionGetCurrentQueryKey = (options) => createQueryKey("sessionGetCurrent", options);
1734
+ export const termsGetStatsQueryKey = (options) => createQueryKey("termsGetStats", options);
2266
1735
  /**
2267
- * Get current session
1736
+ * Get terminal stats
2268
1737
  * #### Controller:
2269
1738
  *
2270
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/session.(*SessionService).getSession`
1739
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).GetStatsHandler`
2271
1740
  *
2272
1741
  * #### Middlewares:
2273
1742
  *
2274
1743
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2275
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1744
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2276
1745
  *
2277
1746
  * ---
2278
1747
  *
2279
- * Get current user session information including user ID and tenant ID
1748
+ * Get statistics for a terminal session
2280
1749
  */
2281
- export const sessionGetCurrentOptions = (options) => {
1750
+ export const termsGetStatsOptions = (options) => {
2282
1751
  return queryOptions({
2283
1752
  queryFn: async ({ queryKey, signal }) => {
2284
- const { data } = await sessionGetCurrent({
1753
+ const { data } = await termsGetStats({
2285
1754
  ...options,
2286
1755
  ...queryKey[0],
2287
1756
  signal,
@@ -2289,7 +1758,7 @@ export const sessionGetCurrentOptions = (options) => {
2289
1758
  });
2290
1759
  return data;
2291
1760
  },
2292
- queryKey: sessionGetCurrentQueryKey(options),
1761
+ queryKey: termsGetStatsQueryKey(options),
2293
1762
  });
2294
1763
  };
2295
1764
  export const userGetCurrentQueryKey = (options) => createQueryKey("userGetCurrent", options);
@@ -2297,12 +1766,12 @@ export const userGetCurrentQueryKey = (options) => createQueryKey("userGetCurren
2297
1766
  * Get current user
2298
1767
  * #### Controller:
2299
1768
  *
2300
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/users.(*UserService).getCurrentUser`
1769
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/users.(*UserService).getCurrentUser`
2301
1770
  *
2302
1771
  * #### Middlewares:
2303
1772
  *
2304
1773
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2305
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1774
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2306
1775
  *
2307
1776
  * ---
2308
1777
  *
@@ -2327,12 +1796,12 @@ export const napcatProxyWebUigetQueryKey = (options) => createQueryKey("napcatPr
2327
1796
  * Proxy WebUI GET requests
2328
1797
  * #### Controller:
2329
1798
  *
2330
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1799
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
2331
1800
  *
2332
1801
  * #### Middlewares:
2333
1802
  *
2334
1803
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2335
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1804
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2336
1805
  *
2337
1806
  * ---
2338
1807
  *
@@ -2352,46 +1821,16 @@ export const napcatProxyWebUigetOptions = (options) => {
2352
1821
  queryKey: napcatProxyWebUigetQueryKey(options),
2353
1822
  });
2354
1823
  };
2355
- export const napcatProxyWebUipostQueryKey = (options) => createQueryKey("napcatProxyWebUipost", options);
2356
- /**
2357
- * Proxy WebUI POST requests
2358
- * #### Controller:
2359
- *
2360
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
2361
- *
2362
- * #### Middlewares:
2363
- *
2364
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2365
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
2366
- *
2367
- * ---
2368
- *
2369
- * Proxy all WebUI POST requests to napcat WebUI server
2370
- */
2371
- export const napcatProxyWebUipostOptions = (options) => {
2372
- return queryOptions({
2373
- queryFn: async ({ queryKey, signal }) => {
2374
- const { data } = await napcatProxyWebUipost({
2375
- ...options,
2376
- ...queryKey[0],
2377
- signal,
2378
- throwOnError: true,
2379
- });
2380
- return data;
2381
- },
2382
- queryKey: napcatProxyWebUipostQueryKey(options),
2383
- });
2384
- };
2385
1824
  /**
2386
1825
  * Proxy WebUI POST requests
2387
1826
  * #### Controller:
2388
1827
  *
2389
- * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1828
+ * `github.com/codeh007/gomtm/pkg/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
2390
1829
  *
2391
1830
  * #### Middlewares:
2392
1831
  *
2393
1832
  * - `github.com/go-fuego/fuego.defaultLogger.middleware`
2394
- * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1833
+ * - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
2395
1834
  *
2396
1835
  * ---
2397
1836
  *
@@ -2399,10 +1838,10 @@ export const napcatProxyWebUipostOptions = (options) => {
2399
1838
  */
2400
1839
  export const napcatProxyWebUipostMutation = (options) => {
2401
1840
  const mutationOptions = {
2402
- mutationFn: async (localOptions) => {
1841
+ mutationFn: async (fnOptions) => {
2403
1842
  const { data } = await napcatProxyWebUipost({
2404
1843
  ...options,
2405
- ...localOptions,
1844
+ ...fnOptions,
2406
1845
  throwOnError: true,
2407
1846
  });
2408
1847
  return data;